2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR 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 bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
883 --with-python=DIR Include Python support. DIR is the Python base
884 install directory, default is to search through
885 a number of common places for the Python files.
886 --with-tcp-wrappers=DIR enable tcpwrappers support
888 Include OpenSSL support. DIR is the OpenSSL base
889 --with-working-dir=PATH specify path of Bacula working directory
890 --with-scriptdir=PATH specify path of Bacula scripts directory
891 --with-dump-email=EMAIL dump email address
892 --with-job-email=EMAIL job output email address
893 --with-smtp-host=HOST SMTP mail host address
894 --with-pid-dir=PATH specify location of Bacula pid files
895 --with-subsys-dir=PATH specify location of Bacula subsys file
896 --with-baseport=PORT specify base port address for daemons
897 --with-dir-password=PASSWORD specify Director's password
898 --with-fd-password=PASSWORD specify Client's password
899 --with-sd-password=PASSWORD specify Storage daemon's password
900 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
901 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
902 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
903 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
904 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
905 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
906 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
907 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
908 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
909 --with-dir-user=USER specify user for Director daemon
910 --with-dir-group=GROUP specify group for Director daemon
911 --with-sd-user=USER specify user for Storage daemon
912 --with-sd-group=GROUP specify group for Storage daemon
913 --with-fd-user=USER specify user for File daemon
914 --with-fd-group=GROUP specify group for File daemon
915 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
916 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
917 base install directory, defaults to /usr/local/pgsql
919 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
920 install directory, default is to search through
921 a number of common places for the MySQL files.
923 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
924 install directory, default is to search through
925 a number of common places for the MySQL files.
927 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
928 install directory, default is to search through
929 a number of common places for the SQLite3 files.
931 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
932 install directory, default is to search through
933 a number of common places for the SQLite files.
934 --with-x use the X Window System
936 Some influential environment variables:
937 CC C compiler command
938 CFLAGS C compiler flags
939 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
940 nonstandard directory <lib dir>
941 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
942 headers in a nonstandard directory <include dir>
943 CXX C++ compiler command
944 CXXFLAGS C++ compiler flags
947 Use these variables to override the choices made by `configure' or to help
948 it to find libraries and programs with nonstandard names/locations.
953 if test "$ac_init_help" = "recursive"; then
954 # If there are subdirs, report their specific --help.
956 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
957 test -d $ac_dir || continue
960 if test "$ac_dir" != .; then
961 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
962 # A "../" for each directory in $ac_dir_suffix.
963 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
965 ac_dir_suffix= ac_top_builddir=
969 .) # No --srcdir option. We are building in place.
971 if test -z "$ac_top_builddir"; then
974 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
976 [\\/]* | ?:[\\/]* ) # Absolute path.
977 ac_srcdir=$srcdir$ac_dir_suffix;
978 ac_top_srcdir=$srcdir ;;
980 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
981 ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 # Do not use `cd foo && pwd` to compute absolute paths, because
985 # the directories may not exist.
987 .) ac_abs_builddir="$ac_dir";;
990 .) ac_abs_builddir=`pwd`;;
991 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
992 *) ac_abs_builddir=`pwd`/"$ac_dir";;
995 case $ac_abs_builddir in
996 .) ac_abs_top_builddir=${ac_top_builddir}.;;
998 case ${ac_top_builddir}. in
999 .) ac_abs_top_builddir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1001 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1004 case $ac_abs_builddir in
1005 .) ac_abs_srcdir=$ac_srcdir;;
1008 .) ac_abs_srcdir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1010 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1013 case $ac_abs_builddir in
1014 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 case $ac_top_srcdir in
1017 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1019 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024 # Check for guested configure; otherwise get Cygnus style configure.
1025 if test -f $ac_srcdir/configure.gnu; then
1027 $SHELL $ac_srcdir/configure.gnu --help=recursive
1028 elif test -f $ac_srcdir/configure; then
1030 $SHELL $ac_srcdir/configure --help=recursive
1031 elif test -f $ac_srcdir/configure.ac ||
1032 test -f $ac_srcdir/configure.in; then
1034 $ac_configure --help
1036 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1042 test -n "$ac_init_help" && exit 0
1043 if $ac_init_version; then
1046 Copyright (C) 2003 Free Software Foundation, Inc.
1047 This configure script is free software; the Free Software Foundation
1048 gives unlimited permission to copy, distribute and modify it.
1054 This file contains any messages produced by compilers while
1055 running configure, to aid debugging if configure makes a mistake.
1057 It was created by $as_me, which was
1058 generated by GNU Autoconf 2.59. Invocation command line was
1069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1076 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1078 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1079 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1081 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1082 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1083 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1084 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1092 test -z "$as_dir" && as_dir=.
1093 echo "PATH: $as_dir"
1108 # Keep a trace of the command line.
1109 # Strip out --no-create and --no-recursion so they do not pile up.
1110 # Strip out --silent because we don't want to record it for future runs.
1111 # Also quote any args containing shell meta-characters.
1112 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_must_keep_next=false
1123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1127 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1131 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1133 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1134 if test $ac_must_keep_next = true; then
1135 ac_must_keep_next=false # Got value, back to normal.
1138 *=* | --config-cache | -C | -disable-* | --disable-* \
1139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1141 | -with-* | --with-* | -without-* | --without-* | --x)
1142 case "$ac_configure_args0 " in
1143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1146 -* ) ac_must_keep_next=true ;;
1149 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1150 # Get rid of the leading space.
1156 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1157 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1159 # When interrupted or exit'd, cleanup temporary files, and complete
1160 # config.log. We remove comments because anyway the quotes in there
1161 # would cause problems or look ugly.
1162 # WARNING: Be sure not to use single quotes in there, as some shells,
1163 # such as our DU 5.0 friend, will then `close' the trap.
1164 trap 'exit_status=$?
1165 # Save into config.log some information that might help in debugging.
1170 ## ---------------- ##
1171 ## Cache variables. ##
1172 ## ---------------- ##
1175 # The following way of writing the cache mishandles newlines in values,
1178 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1181 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1186 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1193 ## ----------------- ##
1194 ## Output variables. ##
1195 ## ----------------- ##
1198 for ac_var in $ac_subst_vars
1200 eval ac_val=$`echo $ac_var`
1201 echo "$ac_var='"'"'$ac_val'"'"'"
1205 if test -n "$ac_subst_files"; then
1212 for ac_var in $ac_subst_files
1214 eval ac_val=$`echo $ac_var`
1215 echo "$ac_var='"'"'$ac_val'"'"'"
1220 if test -s confdefs.h; then
1227 sed "/^$/d" confdefs.h | sort
1230 test "$ac_signal" != 0 &&
1231 echo "$as_me: caught signal $ac_signal"
1232 echo "$as_me: exit $exit_status"
1234 rm -f core *.core &&
1235 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1238 for ac_signal in 1 2 13 15; do
1239 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1244 rm -rf conftest* confdefs.h
1245 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1248 # Predefined preprocessor variables.
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_NAME "$PACKAGE_NAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_STRING "$PACKAGE_STRING"
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1275 # Let the site file select an alternate cache file if it wants to.
1276 # Prefer explicitly selected file to automatically selected ones.
1277 if test -z "$CONFIG_SITE"; then
1278 if test "x$prefix" != xNONE; then
1279 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1281 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284 for ac_site_file in $CONFIG_SITE; do
1285 if test -r "$ac_site_file"; then
1286 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1287 echo "$as_me: loading site script $ac_site_file" >&6;}
1288 sed 's/^/| /' "$ac_site_file" >&5
1293 if test -r "$cache_file"; then
1294 # Some versions of bash will fail to source /dev/null (special
1295 # files actually), so we avoid doing that.
1296 if test -f "$cache_file"; then
1297 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1298 echo "$as_me: loading cache $cache_file" >&6;}
1300 [\\/]* | ?:[\\/]* ) . $cache_file;;
1301 *) . ./$cache_file;;
1305 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1306 echo "$as_me: creating cache $cache_file" >&6;}
1310 # Check that the precious variables saved in the cache have kept the same
1312 ac_cache_corrupted=false
1313 for ac_var in `(set) 2>&1 |
1314 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1316 eval ac_new_set=\$ac_env_${ac_var}_set
1317 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1318 eval ac_new_val="\$ac_env_${ac_var}_value"
1319 case $ac_old_set,$ac_new_set in
1321 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1323 ac_cache_corrupted=: ;;
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1327 ac_cache_corrupted=: ;;
1330 if test "x$ac_old_val" != "x$ac_new_val"; then
1331 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1333 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1334 echo "$as_me: former value: $ac_old_val" >&2;}
1335 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1336 echo "$as_me: current value: $ac_new_val" >&2;}
1337 ac_cache_corrupted=:
1340 # Pass precious variables to config.status.
1341 if test "$ac_new_set" = set; then
1343 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1344 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1345 *) ac_arg=$ac_var=$ac_new_val ;;
1347 case " $ac_configure_args " in
1348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1349 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1353 if $ac_cache_corrupted; then
1354 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1355 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1356 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1357 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1358 { (exit 1); exit 1; }; }
1362 ac_cpp='$CPP $CPPFLAGS'
1363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1391 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1423 # Extract the first word of "$ac_prog", so it can be a program name with args.
1424 set dummy $ac_prog; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 TRUEPRG=$ac_cv_path_TRUEPRG
1454 if test -n "$TRUEPRG"; then
1455 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1456 echo "${ECHO_T}$TRUEPRG" >&6
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1462 test -n "$TRUEPRG" && break
1464 test -n "$TRUEPRG" || TRUEPRG=":"
1466 for ac_prog in false
1468 # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy $ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 FALSEPRG=$ac_cv_path_FALSEPRG
1499 if test -n "$FALSEPRG"; then
1500 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1501 echo "${ECHO_T}$FALSEPRG" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 test -n "$FALSEPRG" && break
1509 test -n "$FALSEPRG" || FALSEPRG=":"
1514 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 echo "configuring for bacula $VERSION ($DATE)"
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1563 if test -z "$ac_cv_prog_CC"; then
1565 # Extract the first word of "gcc", so it can be a program name with args.
1566 set dummy gcc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="gcc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1643 if test -z "$ac_cv_prog_CC"; then
1645 # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="cc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 # Extract the first word of "cc", so it can be a program name with args.
1688 set dummy cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706 ac_prog_rejected=yes
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 if test $ac_prog_rejected = yes; then
1717 # We found a bogon in the path, so make sure we never use it.
1718 set dummy $ac_cv_prog_CC
1720 if test $# != 0; then
1721 # We chose a different compiler from the bogus one.
1722 # However, it has the same basename, so the bogon will be chosen
1723 # first if we set CC to just the basename; use the full file name.
1725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1731 if test -n "$CC"; then
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1740 if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 if test -n "$CC"; then
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1779 test -n "$CC" && break
1782 if test -z "$CC"; then
1786 # Extract the first word of "$ac_prog", so it can be a program name with args.
1787 set dummy $ac_prog; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="$ac_prog"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1821 test -n "$ac_ct_CC" && break
1830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }
1836 # Provide some information about the compiler.
1837 echo "$as_me:$LINENO:" \
1838 "checking for C compiler version" >&5
1839 ac_compiler=`set X $ac_compile; echo $2`
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841 (eval $ac_compiler --version </dev/null >&5) 2>&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846 (eval $ac_compiler -v </dev/null >&5) 2>&5
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }
1850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851 (eval $ac_compiler -V </dev/null >&5) 2>&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }
1856 cat >conftest.$ac_ext <<_ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1876 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 (eval $ac_link_default) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # Find the output, starting from the most likely. This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1894 test -f "$ac_file" || continue
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899 # This is the source file.
1902 # We found the default executable, but exeext='' is most
1906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 # FIXME: I believe we export ac_cv_exeext for Libtool,
1908 # but it would be cool to find out if it's true. Does anybody
1909 # maintain Libtool? --akim.
1917 echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924 { (exit 77); exit 77; }; }
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 if test "$cross_compiling" = maybe; then
1949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file in conftest.exe conftest conftest.*; do
1983 test -f "$ac_file" || continue
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 cat >conftest.$ac_ext <<_ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>conftest.er1
2084 grep -v '^ *+' conftest.er1 >conftest.err
2086 cat conftest.err >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -z "$ac_c_werror_flag"
2090 || test ! -s conftest.err'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115 GCC=`test $ac_compiler_gnu = yes && echo yes`
2116 ac_test_CFLAGS=${CFLAGS+set}
2117 ac_save_CFLAGS=$CFLAGS
2119 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_g+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1 >conftest.err
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173 CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175 if test "$GCC" = yes; then
2181 if test "$GCC" = yes; then
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 ac_cv_prog_cc_stdc=no
2194 cat >conftest.$ac_ext <<_ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2218 s = g (p, va_arg (v,int));
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224 function prototypes and stuff, but not '\xHH' hex character constants.
2225 These don't provoke an error unfortunately, instead are silently treated
2226 as 'x'. The following induces an error, until -std1 is added to get
2227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228 array size at least. It's necessary to write '\x00'==0 to get something
2229 that's true only with -std1. */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX -qlanglvl=ansi
2249 # Ultrix and OSF/1 -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions -Aa -D_HPUX_SOURCE
2252 # SVR4 -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255 CC="$ac_save_CC $ac_arg"
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2260 grep -v '^ *+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag"
2266 || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 ac_cv_prog_cc_stdc=$ac_arg
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.err conftest.$ac_objext
2287 rm -f conftest.$ac_ext conftest.$ac_objext
2292 case "x$ac_cv_prog_cc_stdc" in
2294 echo "$as_me:$LINENO: result: none needed" >&5
2295 echo "${ECHO_T}none needed" >&6 ;;
2297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299 CC="$CC $ac_cv_prog_cc_stdc" ;;
2302 # Some people use a C++ compiler to compile C. Since we use `exit',
2303 # in C++ we need to declare it. In case someone uses the same compiler
2304 # for both compiling C and C++ we need to have the C++ compiler decide
2305 # the declaration of exit, since it's the most demanding environment.
2306 cat >conftest.$ac_ext <<_ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 for ac_declaration in \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_c_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2406 grep -v '^ *+' conftest.er1 >conftest.err
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 if test -n "$ac_declaration"; then
2434 echo '#ifdef __cplusplus' >>confdefs.h
2435 echo $ac_declaration >>confdefs.h
2436 echo '#endif' >>confdefs.h
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 ac_cpp='$CXXCPP $CPPFLAGS'
2453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_CXX+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CXX"; then
2467 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$CXX"; then
2487 echo "$as_me:$LINENO: result: $CXX" >&5
2488 echo "${ECHO_T}$CXX" >&6
2490 echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$CXX" && break
2497 if test -z "$CXX"; then
2499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2501 # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 if test -n "$ac_ct_CXX"; then
2509 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_ac_ct_CXX="$ac_prog"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2528 if test -n "$ac_ct_CXX"; then
2529 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2530 echo "${ECHO_T}$ac_ct_CXX" >&6
2532 echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2536 test -n "$ac_ct_CXX" && break
2538 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO:" \
2546 "checking for C++ compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2549 (eval $ac_compiler --version </dev/null >&5) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2554 (eval $ac_compiler -v </dev/null >&5) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2559 (eval $ac_compiler -V </dev/null >&5) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2564 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_cxx_werror_flag"
2597 || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622 GXX=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CXXFLAGS=${CXXFLAGS+set}
2624 ac_save_CXXFLAGS=$CXXFLAGS
2626 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cxx_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_cxx_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 ac_cv_prog_cxx_g=yes
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2679 if test "$ac_test_CXXFLAGS" = set; then
2680 CXXFLAGS=$ac_save_CXXFLAGS
2681 elif test $ac_cv_prog_cxx_g = yes; then
2682 if test "$GXX" = yes; then
2688 if test "$GXX" = yes; then
2694 for ac_declaration in \
2696 'extern "C" void std::exit (int) throw (); using std::exit;' \
2697 'extern "C" void std::exit (int); using std::exit;' \
2698 'extern "C" void exit (int) throw ();' \
2699 'extern "C" void exit (int);' \
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_cxx_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_cxx_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 if test -n "$ac_declaration"; then
2795 echo '#ifdef __cplusplus' >>confdefs.h
2796 echo $ac_declaration >>confdefs.h
2797 echo '#endif' >>confdefs.h
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test "x$CC" != xcc; then
2807 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2810 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2813 set dummy $CC; ac_cc=`echo $2 |
2814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); };
2848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849 if test "x$CC" != xcc; then
2850 # Test first that cc exists at all.
2851 if { ac_try='cc -c conftest.$ac_ext >&5'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); };
2872 # cc exists but doesn't like -o.
2873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2878 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884 echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2930 # include <limits.h>
2932 # include <assert.h>
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2953 if test -z "$ac_cpp_err"; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
3002 rm -f conftest.err conftest.$ac_ext
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3037 # include <limits.h>
3039 # include <assert.h>
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3060 if test -z "$ac_cpp_err"; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3109 rm -f conftest.err conftest.$ac_ext
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for egrep" >&5
3132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3133 if test "${ac_cv_prog_egrep+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3137 then ac_cv_prog_egrep='grep -E'
3138 else ac_cv_prog_egrep='egrep'
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3143 EGREP=$ac_cv_prog_egrep
3146 if test $ac_cv_c_compiler_gnu = yes; then
3147 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3148 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 ac_pattern="Autoconf.*'x'"
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164 ac_cv_prog_gcc_traditional=yes
3166 ac_cv_prog_gcc_traditional=no
3171 if test $ac_cv_prog_gcc_traditional = no; then
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183 ac_cv_prog_gcc_traditional=yes
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3190 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3191 if test $ac_cv_prog_gcc_traditional = yes; then
3192 CC="$CC -traditional"
3196 if test "x$CC" = xgcc
3198 cat >>confdefs.h <<\_ACEOF
3204 # Find a good install program. We prefer a C program (faster),
3205 # so one script is as good as another. But avoid the broken or
3206 # incompatible versions:
3207 # SysV /etc/install, /usr/sbin/install
3208 # SunOS /usr/etc/install
3209 # IRIX /sbin/install
3211 # AmigaOS /C/install, which installs bootblocks on floppy discs
3212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215 # OS/2's system install, which has a completely different semantic
3216 # ./install, which can be erroneously created by make from ./install.sh.
3217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219 if test -z "$INSTALL"; then
3220 if test "${ac_cv_path_install+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 # Account for people who put trailing slashes in PATH elements.
3230 ./ | .// | /cC/* | \
3231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3235 # OSF1 and SCO ODT 3.0 have their own names for install.
3236 # Don't use installbsd from OSF since it installs stuff as root
3238 for ac_prog in ginstall scoinst install; do
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241 if test $ac_prog = install &&
3242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243 # AIX install. It has an incompatible calling convention.
3245 elif test $ac_prog = install &&
3246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247 # program-specific install script used by HP pwplus--don't use.
3250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3262 if test "${ac_cv_path_install+set}" = set; then
3263 INSTALL=$ac_cv_path_install
3265 # As a last resort, use the slow shell script. We don't cache a
3266 # path for INSTALL within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the path is relative.
3269 INSTALL=$ac_install_sh
3272 echo "$as_me:$LINENO: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_RANLIB+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$RANLIB"; then
3292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 RANLIB=$ac_cv_prog_RANLIB
3311 if test -n "$RANLIB"; then
3312 echo "$as_me:$LINENO: result: $RANLIB" >&5
3313 echo "${ECHO_T}$RANLIB" >&6
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3320 if test -z "$ac_cv_prog_RANLIB"; then
3321 ac_ct_RANLIB=$RANLIB
3322 # Extract the first word of "ranlib", so it can be a program name with args.
3323 set dummy ranlib; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$ac_ct_RANLIB"; then
3330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_RANLIB="ranlib"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3350 if test -n "$ac_ct_RANLIB"; then
3351 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3352 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3358 RANLIB=$ac_ct_RANLIB
3360 RANLIB="$ac_cv_prog_RANLIB"
3363 # Extract the first word of "mv", so it can be a program name with args.
3364 set dummy mv; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_path_MV+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3395 if test -n "$MV"; then
3396 echo "$as_me:$LINENO: result: $MV" >&5
3397 echo "${ECHO_T}$MV" >&6
3399 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3403 # Extract the first word of "rm", so it can be a program name with args.
3404 set dummy rm; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_path_RM+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3435 if test -n "$RM"; then
3436 echo "$as_me:$LINENO: result: $RM" >&5
3437 echo "${ECHO_T}$RM" >&6
3439 echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3443 # Extract the first word of "cp", so it can be a program name with args.
3444 set dummy cp; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_path_CP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3475 if test -n "$CP"; then
3476 echo "$as_me:$LINENO: result: $CP" >&5
3477 echo "${ECHO_T}$CP" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3483 # Extract the first word of "sed", so it can be a program name with args.
3484 set dummy sed; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_path_SED+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3515 if test -n "$SED"; then
3516 echo "$as_me:$LINENO: result: $SED" >&5
3517 echo "${ECHO_T}$SED" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 # Extract the first word of "echo", so it can be a program name with args.
3524 set dummy echo; ac_word=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_path_ECHO+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3553 ECHO=$ac_cv_path_ECHO
3555 if test -n "$ECHO"; then
3556 echo "$as_me:$LINENO: result: $ECHO" >&5
3557 echo "${ECHO_T}$ECHO" >&6
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3563 # Extract the first word of "cmp", so it can be a program name with args.
3564 set dummy cmp; ac_word=$2
3565 echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_path_CMP+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3595 if test -n "$CMP"; then
3596 echo "$as_me:$LINENO: result: $CMP" >&5
3597 echo "${ECHO_T}$CMP" >&6
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 # Extract the first word of "tbl", so it can be a program name with args.
3604 set dummy tbl; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_path_TBL+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3635 if test -n "$TBL"; then
3636 echo "$as_me:$LINENO: result: $TBL" >&5
3637 echo "${ECHO_T}$TBL" >&6
3639 echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3643 # Extract the first word of "ar", so it can be a program name with args.
3644 set dummy ar; ac_word=$2
3645 echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_path_AR+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3675 if test -n "$AR"; then
3676 echo "$as_me:$LINENO: result: $AR" >&5
3677 echo "${ECHO_T}$AR" >&6
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 # Extract the first word of "openssl", so it can be a program name with args.
3684 set dummy openssl; ac_word=$2
3685 echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3687 if test "${ac_cv_path_OPENSSL+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3713 OPENSSL=$ac_cv_path_OPENSSL
3715 if test -n "$OPENSSL"; then
3716 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3717 echo "${ECHO_T}$OPENSSL" >&6
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 # Extract the first word of "mtx", so it can be a program name with args.
3724 set dummy mtx; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_path_MTX+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3755 if test -n "$MTX"; then
3756 echo "$as_me:$LINENO: result: $MTX" >&5
3757 echo "${ECHO_T}$MTX" >&6
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 # Extract the first word of "mkisofs", so it can be a program name with args.
3764 set dummy mkisofs; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_path_MKISOFS+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3793 MKISOFS=$ac_cv_path_MKISOFS
3795 if test -n "$MKISOFS"; then
3796 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3797 echo "${ECHO_T}$MKISOFS" >&6
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 # Extract the first word of "python", so it can be a program name with args.
3804 set dummy python; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_path_PYTHON+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3833 PYTHON=$ac_cv_path_PYTHON
3835 if test -n "$PYTHON"; then
3836 echo "$as_me:$LINENO: result: $PYTHON" >&5
3837 echo "${ECHO_T}$PYTHON" >&6
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3843 # Extract the first word of "growisofs", so it can be a program name with args.
3844 set dummy growisofs; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3873 GROWISOFS=$ac_cv_path_GROWISOFS
3875 if test -n "$GROWISOFS"; then
3876 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3877 echo "${ECHO_T}$GROWISOFS" >&6
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3884 set dummy dvd+rw-mediainfo; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 case $DVDRWMEDIAINFO in
3892 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3913 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3915 if test -n "$DVDRWMEDIAINFO"; then
3916 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 # Extract the first word of "pkg-config", so it can be a program name with args.
3924 set dummy pkg-config; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3953 PKGCONFIG=$ac_cv_path_PKGCONFIG
3955 if test -n "$PKGCONFIG"; then
3956 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3957 echo "${ECHO_T}$PKGCONFIG" >&6
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3963 # Extract the first word of "wx-config", so it can be a program name with args.
3964 set dummy wx-config; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="/opt/gnome/bin/wx-config"
3993 WXCONFIG=$ac_cv_path_WXCONFIG
3995 if test -n "$WXCONFIG"; then
3996 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3997 echo "${ECHO_T}$WXCONFIG" >&6
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4003 # Extract the first word of "cdrecord", so it can be a program name with args.
4004 set dummy cdrecord; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_path_CDRECORD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4033 CDRECORD=$ac_cv_path_CDRECORD
4035 if test -n "$CDRECORD"; then
4036 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4037 echo "${ECHO_T}$CDRECORD" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 # Extract the first word of "pidof", so it can be a program name with args.
4044 set dummy pidof; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_path_PIDOF+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4073 PIDOF=$ac_cv_path_PIDOF
4075 if test -n "$PIDOF"; then
4076 echo "$as_me:$LINENO: result: $PIDOF" >&5
4077 echo "${ECHO_T}$PIDOF" >&6
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4083 for ac_prog in gawk mawk nawk awk
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_AWK+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if test -n "$AWK"; then
4093 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_AWK="$ac_prog"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$AWK"; then
4113 echo "$as_me:$LINENO: result: $AWK" >&5
4114 echo "${ECHO_T}$AWK" >&6
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4120 test -n "$AWK" && break
4123 # Some AWK programs fail, so test it and warn the user
4124 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4125 { if ((prog == $2) || (("(" prog ")") == $2) ||
4126 (("" prog "") == $2) ||
4127 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4129 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4130 The regex engine of $AWK is too broken to be used you
4131 might want to install GNU AWK.
4132 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4133 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4134 The regex engine of $AWK is too broken to be used you
4135 might want to install GNU AWK.
4136 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4137 { (exit 1); exit 1; }; }
4140 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4141 set dummy $THE_AWK; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_path_AWK+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4172 if test -n "$AWK"; then
4173 echo "$as_me:$LINENO: result: $AWK" >&5
4174 echo "${ECHO_T}$AWK" >&6
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4181 test -n "$ARFLAG" || ARFLAGS="cr"
4194 # Make sure we can run config.sub.
4195 $ac_config_sub sun4 >/dev/null 2>&1 ||
4196 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4197 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4198 { (exit 1); exit 1; }; }
4200 echo "$as_me:$LINENO: checking build system type" >&5
4201 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4202 if test "${ac_cv_build+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 ac_cv_build_alias=$build_alias
4206 test -z "$ac_cv_build_alias" &&
4207 ac_cv_build_alias=`$ac_config_guess`
4208 test -z "$ac_cv_build_alias" &&
4209 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4210 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4211 { (exit 1); exit 1; }; }
4212 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4213 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4214 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4215 { (exit 1); exit 1; }; }
4218 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4219 echo "${ECHO_T}$ac_cv_build" >&6
4221 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4222 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4223 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4227 echo "$as_me:$LINENO: checking host system type" >&5
4228 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4229 if test "${ac_cv_host+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 ac_cv_host_alias=$host_alias
4233 test -z "$ac_cv_host_alias" &&
4234 ac_cv_host_alias=$ac_cv_build_alias
4235 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4236 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4237 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4238 { (exit 1); exit 1; }; }
4241 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4242 echo "${ECHO_T}$ac_cv_host" >&6
4244 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4245 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4246 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4250 *cygwin* ) CYGWIN=yes;;
4254 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4260 HAVE_SUN_OS_FALSE='#'
4262 HAVE_SUN_OS_TRUE='#'
4265 cat >>confdefs.h <<\_ACEOF
4266 #define HAVE_SUN_OS 1
4274 HAVE_SUN_OS_FALSE='#'
4276 HAVE_SUN_OS_TRUE='#'
4281 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4287 HAVE_OSF1_OS_FALSE='#'
4289 HAVE_OSF1_OS_TRUE='#'
4292 cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_OSF1_OS 1
4301 HAVE_OSF1_OS_FALSE='#'
4303 HAVE_OSF1_OS_TRUE='#'
4308 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4314 HAVE_AIX_OS_FALSE='#'
4316 HAVE_AIX_OS_TRUE='#'
4319 cat >>confdefs.h <<\_ACEOF
4320 #define HAVE_AIX_OS 1
4328 HAVE_AIX_OS_FALSE='#'
4330 HAVE_AIX_OS_TRUE='#'
4335 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4341 HAVE_HPUX_OS_FALSE='#'
4343 HAVE_HPUX_OS_TRUE='#'
4346 cat >>confdefs.h <<\_ACEOF
4347 #define HAVE_HPUX_OS 1
4355 HAVE_HPUX_OS_FALSE='#'
4357 HAVE_HPUX_OS_TRUE='#'
4362 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4368 HAVE_LINUX_OS_FALSE='#'
4370 HAVE_LINUX_OS_TRUE='#'
4371 HAVE_LINUX_OS_FALSE=
4373 cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_LINUX_OS 1
4382 HAVE_LINUX_OS_FALSE='#'
4384 HAVE_LINUX_OS_TRUE='#'
4385 HAVE_LINUX_OS_FALSE=
4389 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4394 HAVE_FREEBSD_OS_TRUE=
4395 HAVE_FREEBSD_OS_FALSE='#'
4397 HAVE_FREEBSD_OS_TRUE='#'
4398 HAVE_FREEBSD_OS_FALSE=
4400 cat >>confdefs.h <<\_ACEOF
4401 #define HAVE_FREEBSD_OS 1
4408 HAVE_FREEBSD_OS_TRUE=
4409 HAVE_FREEBSD_OS_FALSE='#'
4411 HAVE_FREEBSD_OS_TRUE='#'
4412 HAVE_FREEBSD_OS_FALSE=
4416 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4421 HAVE_NETBSD_OS_TRUE=
4422 HAVE_NETBSD_OS_FALSE='#'
4424 HAVE_NETBSD_OS_TRUE='#'
4425 HAVE_NETBSD_OS_FALSE=
4427 cat >>confdefs.h <<\_ACEOF
4428 #define HAVE_NETBSD_OS 1
4435 HAVE_NETBSD_OS_TRUE=
4436 HAVE_NETBSD_OS_FALSE='#'
4438 HAVE_NETBSD_OS_TRUE='#'
4439 HAVE_NETBSD_OS_FALSE=
4443 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4448 HAVE_OPENBSD_OS_TRUE=
4449 HAVE_OPENBSD_OS_FALSE='#'
4451 HAVE_OPENBSD_OS_TRUE='#'
4452 HAVE_OPENBSD_OS_FALSE=
4454 cat >>confdefs.h <<\_ACEOF
4455 #define HAVE_OPENBSD_OS 1
4462 HAVE_OPENBSD_OS_TRUE=
4463 HAVE_OPENBSD_OS_FALSE='#'
4465 HAVE_OPENBSD_OS_TRUE='#'
4466 HAVE_OPENBSD_OS_FALSE=
4470 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4476 HAVE_BSDI_OS_FALSE='#'
4478 HAVE_BSDI_OS_TRUE='#'
4481 cat >>confdefs.h <<\_ACEOF
4482 #define HAVE_BSDI_OS 1
4490 HAVE_BSDI_OS_FALSE='#'
4492 HAVE_BSDI_OS_TRUE='#'
4497 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4503 HAVE_SGI_OS_FALSE='#'
4505 HAVE_SGI_OS_TRUE='#'
4508 cat >>confdefs.h <<\_ACEOF
4509 #define HAVE_SGI_OS 1
4517 HAVE_SGI_OS_FALSE='#'
4519 HAVE_SGI_OS_TRUE='#'
4524 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4530 HAVE_IRIX_OS_FALSE='#'
4532 HAVE_IRIX_OS_TRUE='#'
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_IRIX_OS 1
4544 HAVE_IRIX_OS_FALSE='#'
4546 HAVE_IRIX_OS_TRUE='#'
4551 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4556 HAVE_DARWIN_OS_TRUE=
4557 HAVE_DARWIN_OS_FALSE='#'
4559 HAVE_DARWIN_OS_TRUE='#'
4560 HAVE_DARWIN_OS_FALSE=
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_DARWIN_OS 1
4570 HAVE_DARWIN_OS_TRUE=
4571 HAVE_DARWIN_OS_FALSE='#'
4573 HAVE_DARWIN_OS_TRUE='#'
4574 HAVE_DARWIN_OS_FALSE=
4579 # -----------------------------------------------------------
4580 # ----------------------------------------------------------
4581 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4582 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4583 if test "x$DISTNAME" != "x"
4585 echo "distname set to $DISTNAME"
4586 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4589 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4592 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4595 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4598 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4601 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4604 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4607 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4610 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4613 elif test -f /etc/SuSE-release
4616 elif test -d /etc/SuSEconfig
4619 elif test -f /etc/mandrake-release
4622 elif test -f /etc/whitebox-release
4625 elif test -f /etc/redhat-release
4628 elif test -f /etc/gentoo-release
4631 elif test -f /etc/debian_version
4634 elif test -f /etc/slackware-version
4637 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4640 elif test -f /etc/engarde-version
4643 elif test "$CYGWIN" = yes
4646 cat >>confdefs.h <<\_ACEOF
4647 #define HAVE_CYGWIN 1
4653 echo "$as_me:$LINENO: result: done" >&5
4654 echo "${ECHO_T}done" >&6
4657 # -----------------------------------------------------------
4658 # ----------------------------------------------------------
4663 INSIDE_GNOME_COMMON_TRUE=
4664 INSIDE_GNOME_COMMON_FALSE='#'
4666 INSIDE_GNOME_COMMON_TRUE='#'
4667 INSIDE_GNOME_COMMON_FALSE=
4670 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4672 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4675 # ------------------------------------------------------------------
4676 # If the user has not set --prefix, we set our default to nothing.
4677 # In this case, if the user has not set --sysconfdir, we set it
4678 # to the package default of /etc/bacula. If either --prefix or
4679 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4680 # ------------------------------------------------------------------
4681 if test x${prefix} = xNONE ; then
4682 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4683 sysconfdir=/etc/bacula
4687 sysconfdir=`eval echo ${sysconfdir}`
4689 # -------------------------------------------------------------------------
4690 # If the user has not set --exec-prefix, we default to ${prefix}
4691 # -------------------------------------------------------------------------
4692 if test x${exec_prefix} = xNONE ; then
4693 exec_prefix=${prefix}
4696 # ------------------------------------------------------------------
4697 # If the user has not set --sbindir, we set our default as /sbin
4698 # ------------------------------------------------------------------
4699 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4700 sbindir=${exec_prefix}/sbin
4702 sbindir=`eval echo ${sbindir}`
4704 # ------------------------------------------------------------------
4705 # All list of languages for which a translation exist. Each
4706 # language is separated by a space.
4707 # ------------------------------------------------------------------
4710 for ac_prog in msgfmt
4712 # Extract the first word of "$ac_prog", so it can be a program name with args.
4713 set dummy $ac_prog; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_path_MSGFMT+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 MSGFMT=$ac_cv_path_MSGFMT
4743 if test -n "$MSGFMT"; then
4744 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4745 echo "${ECHO_T}$MSGFMT" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4751 test -n "$MSGFMT" && break
4753 test -n "$MSGFMT" || MSGFMT="no"
4755 if test "$MSGFMT" = "no"
4757 echo 'msgfmt program not found, disabling NLS !'
4759 USE_INCLUDED_LIBINTL=no
4768 support_postgresql=no
4769 support_smartalloc=yes
4770 support_readline=yes
4773 support_wx_console=no
4776 support_static_tools=no
4777 support_static_fd=no
4778 support_static_sd=no
4779 support_static_dir=no
4780 support_static_cons=no
4782 build_client_only=no
4788 # -------------------------------------------
4789 # gnome (default off)
4790 # -------------------------------------------
4791 # Check whether --enable-gnome or --disable-gnome was given.
4792 if test "${enable_gnome+set}" = set; then
4793 enableval="$enable_gnome"
4794 if test x$enableval = xyes; then
4800 if test x$support_gnome = xyes; then
4801 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4803 if test $pkg = 0; then
4804 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4805 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4806 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4807 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4812 GNOME_DIR=src/gnome2-console
4813 gnome_version="Version 2.x"
4826 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4827 if test "${with_gnome_includes+set}" = set; then
4828 withval="$with_gnome_includes"
4830 CFLAGS="$CFLAGS -I$withval"
4835 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4836 if test "${with_gnome_libs+set}" = set; then
4837 withval="$with_gnome_libs"
4839 LDFLAGS="$LDFLAGS -L$withval"
4840 gnome_prefix=$withval
4845 # Check whether --with-gnome or --without-gnome was given.
4846 if test "${with_gnome+set}" = set; then
4847 withval="$with_gnome"
4848 if test x$withval = xyes; then
4852 if test "x$withval" = xno; then
4856 LDFLAGS="$LDFLAGS -L$withval/lib"
4857 CFLAGS="$CFLAGS -I$withval/include"
4858 gnome_prefix=$withval/lib
4865 if test "x$want_gnome" = xyes; then
4867 # Extract the first word of "gnome-config", so it can be a program name with args.
4868 set dummy gnome-config; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 case $GNOME_CONFIG in
4876 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4897 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4899 if test -n "$GNOME_CONFIG"; then
4900 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4901 echo "${ECHO_T}$GNOME_CONFIG" >&6
4903 echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6
4907 if test "$GNOME_CONFIG" = "no"; then
4908 no_gnome_config="yes"
4910 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4911 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4912 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4913 echo "$as_me:$LINENO: result: yes" >&5
4914 echo "${ECHO_T}yes" >&6
4917 # Extract the first word of "orbit-config", so it can be a program name with args.
4918 set dummy orbit-config; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 case $ORBIT_CONFIG in
4926 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4947 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4949 if test -n "$ORBIT_CONFIG"; then
4950 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4951 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4957 # Extract the first word of "orbit-idl", so it can be a program name with args.
4958 set dummy orbit-idl; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4987 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4989 if test -n "$ORBIT_IDL"; then
4990 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4991 echo "${ECHO_T}$ORBIT_IDL" >&6
4993 echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6
4997 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4998 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4999 if test "${gnome_cv_orbit_found+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5004 gnome_cv_orbit_found=no
5006 gnome_cv_orbit_found=yes
5010 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5011 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5014 if test x$gnome_cv_orbit_found = xyes; then
5016 HAVE_ORBIT_FALSE='#'
5021 if test x$gnome_cv_orbit_found = xyes; then
5023 ORBIT_CFLAGS=`orbit-config --cflags client server`
5024 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5028 if test xfail = xfailure; then
5029 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5030 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5031 { (exit 1); exit 1; }; }
5035 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5036 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5037 if test "${gnome_cv_gnorba_found+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 gnome_cv_gnorba_found=no
5042 if test x$gnome_cv_orbit_found = xyes; then
5043 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5044 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5045 if test -n "$GNORBA_LIBS"; then
5046 gnome_cv_gnorba_found=yes
5051 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5052 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5055 if test x$gnome_cv_gnorba_found = xyes; then
5057 HAVE_GNORBA_FALSE='#'
5059 HAVE_GNORBA_TRUE='#'
5062 if test x$gnome_cv_orbit_found = xyes; then
5064 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5065 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5069 if test xfail = xfailure; then
5070 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5071 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5072 { (exit 1); exit 1; }; }
5076 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5077 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5078 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5079 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5080 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5081 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5082 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 no_gnome_config="yes"
5091 if test x$exec_prefix = xNONE; then
5092 if test x$prefix = xNONE; then
5093 gnome_prefix=$ac_default_prefix/lib
5095 gnome_prefix=$prefix/lib
5098 gnome_prefix=`eval echo \`echo $libdir\``
5101 if test "$no_gnome_config" = "yes"; then
5102 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5103 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5104 if test -f $gnome_prefix/gnomeConf.sh; then
5105 echo "$as_me:$LINENO: result: found" >&5
5106 echo "${ECHO_T}found" >&6
5107 echo "loading gnome configuration from" \
5108 "$gnome_prefix/gnomeConf.sh"
5109 . $gnome_prefix/gnomeConf.sh
5112 echo "$as_me:$LINENO: result: not found" >&5
5113 echo "${ECHO_T}not found" >&6
5114 if test xfail = xfail; then
5115 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5116 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5117 { (exit 1); exit 1; }; }
5126 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5127 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5131 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5132 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5133 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5136 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5137 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5138 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5141 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5142 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5143 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5145 echo "$as_me:$LINENO: result: unknown library" >&5
5146 echo "${ECHO_T}unknown library" >&6
5148 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5149 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5154 GNOME_DIR=src/gnome-console
5155 gnome_version="Version 1.4"
5161 # -------------------------------------------
5162 # wx-console (default off)
5163 # -------------------------------------------
5164 # Check whether --enable-wx-console or --disable-wx-console was given.
5165 if test "${enable_wx_console+set}" = set; then
5166 enableval="$enable_wx_console"
5167 if test x$enableval = xyes; then
5168 support_wx_console=yes
5173 if test x$support_wx_console = xyes; then
5174 abc=`$WXCONFIG --cppflags`
5176 if test $pkg = 0; then
5177 WXCONS_CPPFLAGS=`$WXCONFIG --unicode=no --cppflags`
5178 WXCONS_LDFLAGS=`$WXCONFIG --unicode=no --libs`
5181 WX_DIR=src/wx-console
5184 echo "wx-config program not found. wx-console disabled."
5186 support_wx_console=no
5192 # -------------------------------------------
5193 # tray-monitor (default off)
5194 # -------------------------------------------
5195 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5196 if test "${enable_tray_monitor+set}" = set; then
5197 enableval="$enable_tray_monitor"
5198 if test x$enableval = xyes; then
5199 support_tray_monitor=yes
5204 if test x$support_tray_monitor = xyes; then
5205 abc=`$PKGCONFIG --exists gtk+-2.0`
5207 if test $pkg = 0; then
5208 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5209 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5212 TRAY_MONITOR_DIR=src/tray-monitor
5213 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5215 if test $pkg = 0; then
5216 cat >>confdefs.h <<\_ACEOF
5217 #define HAVE_GTK_2_4 1
5225 # -------------------------------------------
5226 # smartalloc (default off)
5227 # -------------------------------------------
5228 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5229 if test "${enable_smartalloc+set}" = set; then
5230 enableval="$enable_smartalloc"
5231 if test x$enableval = xno; then
5232 support_smartalloc=no
5236 if test x$support_smartalloc = xyes; then
5237 cat >>confdefs.h <<\_ACEOF
5238 #define SMARTALLOC 1
5243 # -------------------------------------------
5244 # static-tools (default off)
5245 # -------------------------------------------
5246 # Check whether --enable-static-tools or --disable-static-tools was given.
5247 if test "${enable_static_tools+set}" = set; then
5248 enableval="$enable_static_tools"
5249 if test x$enableval = xyes; then
5250 support_static_tools=yes
5255 if test x$support_static_tools = xyes; then
5256 TTOOL_LDFLAGS="-static"
5260 # -------------------------------------------
5261 # static-fd (default off)
5262 # -------------------------------------------
5263 # Check whether --enable-static-fd or --disable-static-fd was given.
5264 if test "${enable_static_fd+set}" = set; then
5265 enableval="$enable_static_fd"
5266 if test x$enableval = xyes; then
5267 support_static_fd=yes
5272 if test x$support_static_fd = xyes; then
5273 STATIC_FD="static-bacula-fd"
5277 # -------------------------------------------
5278 # static-sd (default off)
5279 # -------------------------------------------
5280 # Check whether --enable-static-sd or --disable-static-sd was given.
5281 if test "${enable_static_sd+set}" = set; then
5282 enableval="$enable_static_sd"
5283 if test x$enableval = xyes; then
5284 support_static_sd=yes
5289 if test x$support_static_sd = xyes; then
5290 STATIC_SD="static-bacula-sd"
5294 # -------------------------------------------
5295 # static-dir (default off)
5296 # -------------------------------------------
5297 # Check whether --enable-static-dir or --disable-static-dir was given.
5298 if test "${enable_static_dir+set}" = set; then
5299 enableval="$enable_static_dir"
5300 if test x$enableval = xyes; then
5301 support_static_dir=yes
5306 if test x$support_static_dir = xyes; then
5307 STATIC_DIR="static-bacula-dir"
5311 # -------------------------------------------
5312 # static-cons (default off)
5313 # -------------------------------------------
5314 # Check whether --enable-static-cons or --disable-static-cons was given.
5315 if test "${enable_static_cons+set}" = set; then
5316 enableval="$enable_static_cons"
5317 if test x$enableval = xyes; then
5318 support_static_cons=yes
5325 if test x$support_static_cons = xyes; then
5326 STATIC_CONS="static-bconsole"
5327 STATIC_GNOME_CONS="static-gnome-console"
5328 STATIC_WX_CONS="static-wx-console"
5334 # -------------------------------------------
5335 # client_only (default off)
5336 # -------------------------------------------
5337 # Check whether --enable-client-only or --disable-client-only was given.
5338 if test "${enable_client_only+set}" = set; then
5339 enableval="$enable_client_only"
5340 if test x$enableval = xyes; then
5341 build_client_only=yes
5346 if test x$build_client_only = xno; then
5353 # ---------------------------------------------------
5354 # Check for conio (Bacula readline substitute)(
5355 # ---------------------------------------------------
5356 # this allows you to turn it completely off
5357 # Check whether --enable-conio or --disable-conio was given.
5358 if test "${enable_conio+set}" = set; then
5359 enableval="$enable_conio"
5360 if test x$enableval = xno; then
5366 if test x$support_conio = xyes; then
5367 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5369 if test "${ac_cv_header_stdc+set}" = set; then
5370 echo $ECHO_N "(cached) $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. */
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_header_stdc=yes
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_cv_header_stdc=no
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5422 if test $ac_cv_header_stdc = yes; then
5423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5424 cat >conftest.$ac_ext <<_ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "memchr" >/dev/null 2>&1; then
5437 ac_cv_header_stdc=no
5443 if test $ac_cv_header_stdc = yes; then
5444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 $EGREP "free" >/dev/null 2>&1; then
5458 ac_cv_header_stdc=no
5464 if test $ac_cv_header_stdc = yes; then
5465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5466 if test "$cross_compiling" = yes; then
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5476 #if ((' ' & 0x0FF) == 0x020)
5477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5480 # define ISLOWER(c) \
5481 (('a' <= (c) && (c) <= 'i') \
5482 || ('j' <= (c) && (c) <= 'r') \
5483 || ('s' <= (c) && (c) <= 'z'))
5484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5492 for (i = 0; i < 256; i++)
5493 if (XOR (islower (i), ISLOWER (i))
5494 || toupper (i) != TOUPPER (i))
5499 rm -f conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501 (eval $ac_link) 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5512 echo "$as_me: program exited with status $ac_status" >&5
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5517 ac_cv_header_stdc=no
5519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5523 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5524 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5525 if test $ac_cv_header_stdc = yes; then
5527 cat >>confdefs.h <<\_ACEOF
5528 #define STDC_HEADERS 1
5533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5544 inttypes.h stdint.h unistd.h
5546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 $ac_includes_default
5560 #include <$ac_header>
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag"
5572 || test ! -s conftest.err'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 eval "$as_ac_Header=yes"
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 eval "$as_ac_Header=no"
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596 cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606 echo "$as_me:$LINENO: checking for termcap.h" >&5
5607 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5608 if test "${ac_cv_header_termcap_h+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5612 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5614 # Is the header compilable?
5615 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5616 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5624 #include <termcap.h>
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_header_compiler=yes
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ac_header_compiler=no
5655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5657 echo "${ECHO_T}$ac_header_compiler" >&6
5659 # Is the header present?
5660 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5661 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <termcap.h>
5670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } >/dev/null; then
5678 if test -s conftest.err; then
5679 ac_cpp_err=$ac_c_preproc_warn_flag
5680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5687 if test -z "$ac_cpp_err"; then
5688 ac_header_preproc=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_header_preproc=no
5695 rm -f conftest.err conftest.$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5697 echo "${ECHO_T}$ac_header_preproc" >&6
5699 # So? What about this header?
5700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5702 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5703 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5705 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5706 ac_header_preproc=yes
5709 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5710 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5712 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5714 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5716 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5718 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5719 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5720 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5723 ## ------------------------------------------ ##
5724 ## Report this to the AC_PACKAGE_NAME lists. ##
5725 ## ------------------------------------------ ##
5728 sed "s/^/$as_me: WARNING: /" >&2
5731 echo "$as_me:$LINENO: checking for termcap.h" >&5
5732 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5733 if test "${ac_cv_header_termcap_h+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 ac_cv_header_termcap_h=$ac_header_preproc
5738 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5739 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5742 if test $ac_cv_header_termcap_h = yes; then
5743 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5744 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5745 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 ac_check_lib_save_LIBS=$LIBS
5749 LIBS="-ltermcap $LIBS"
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5757 /* Override any gcc2 internal prototype to avoid an error. */
5761 /* We use char because int might match the return type of a gcc2
5762 builtin and then its argument prototype would still apply. */
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774 (eval $ac_link) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_lib_termcap_tgetent=yes
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 ac_cv_lib_termcap_tgetent=no
5801 rm -f conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5805 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5806 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5807 if test $ac_cv_lib_termcap_tgetent = yes; then
5808 CONS_LIBS="-ltermcap"
5814 cat >>confdefs.h <<\_ACEOF
5815 #define HAVE_CONIO 1
5820 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5821 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5822 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lncurses $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851 (eval $ac_link) 2>conftest.er1
5853 grep -v '^ *+' conftest.er1 >conftest.err
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -z "$ac_c_werror_flag"
5859 || test ! -s conftest.err'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try='test -s conftest$ac_exeext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 ac_cv_lib_ncurses_tgetent=yes
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 ac_cv_lib_ncurses_tgetent=no
5878 rm -f conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5880 LIBS=$ac_check_lib_save_LIBS
5882 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5883 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5884 if test $ac_cv_lib_ncurses_tgetent = yes; then
5885 CONS_LIBS="-lncurses"
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_CONIO 1
5905 for ac_header in curses.h
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909 echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917 # Is the header compilable?
5918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5920 cat >conftest.$ac_ext <<_ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5927 #include <$ac_header>
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_header_compiler=yes
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_header_compiler=no
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5960 echo "${ECHO_T}$ac_header_compiler" >&6
5962 # Is the header present?
5963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 #include <$ac_header>
5973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5976 grep -v '^ *+' conftest.er1 >conftest.err
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } >/dev/null; then
5981 if test -s conftest.err; then
5982 ac_cpp_err=$ac_c_preproc_warn_flag
5983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5990 if test -z "$ac_cpp_err"; then
5991 ac_header_preproc=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_header_preproc=no
5998 rm -f conftest.err conftest.$ac_ext
5999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6000 echo "${ECHO_T}$ac_header_preproc" >&6
6002 # So? What about this header?
6003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6009 ac_header_preproc=yes
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6026 ## ------------------------------------------ ##
6027 ## Report this to the AC_PACKAGE_NAME lists. ##
6028 ## ------------------------------------------ ##
6031 sed "s/^/$as_me: WARNING: /" >&2
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 eval "$as_ac_Header=\$ac_header_preproc"
6041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6046 cat >>confdefs.h <<_ACEOF
6047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6054 echo "$as_me:$LINENO: checking for term.h" >&5
6055 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6056 if test "${ac_cv_header_term_h+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_header_term_h=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_header_term_h=no
6101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6104 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6105 if test $ac_cv_header_term_h = yes; then
6106 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6107 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6108 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_check_lib_save_LIBS=$LIBS
6112 LIBS="-lcurses $LIBS"
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_lib_curses_tgetent=yes
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_cv_lib_curses_tgetent=no
6164 rm -f conftest.err conftest.$ac_objext \
6165 conftest$ac_exeext conftest.$ac_ext
6166 LIBS=$ac_check_lib_save_LIBS
6168 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6169 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6170 if test $ac_cv_lib_curses_tgetent = yes; then
6171 CONS_LIBS="-lcurses"
6177 cat >>confdefs.h <<\_ACEOF
6178 #define HAVE_CONIO 1
6186 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6197 # ---------------------------------------------------
6198 # Check for readline support/directory (default off)
6199 # ---------------------------------------------------
6200 # this allows you to turn it completely off
6201 # Check whether --enable-readline or --disable-readline was given.
6202 if test "${enable_readline+set}" = set; then
6203 enableval="$enable_readline"
6204 if test x$enableval = xno; then
6211 if test x$support_readline = xyes; then
6213 # Check whether --with-readline or --without-readline was given.
6214 if test "${with_readline+set}" = set; then
6215 withval="$with_readline"
6217 case "$with_readline" in
6220 if test "$with_readline" != "yes"; then
6221 CONS_INC="-I${with_readline}"
6222 CONS_LDFLAGS="-L$with_readline"
6224 with_readline="/usr/include/readline"
6226 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6229 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6236 # Is the header compilable?
6237 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6238 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 #include <${with_readline}/readline.h>
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_header_compiler=yes
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_header_compiler=no
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6
6281 # Is the header present?
6282 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6283 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <${with_readline}/readline.h>
6292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295 grep -v '^ *+' conftest.er1 >conftest.err
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } >/dev/null; then
6300 if test -s conftest.err; then
6301 ac_cpp_err=$ac_c_preproc_warn_flag
6302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6309 if test -z "$ac_cpp_err"; then
6310 ac_header_preproc=yes
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 ac_header_preproc=no
6317 rm -f conftest.err conftest.$ac_ext
6318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6319 echo "${ECHO_T}$ac_header_preproc" >&6
6321 # So? What about this header?
6322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6324 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6325 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6327 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6328 ac_header_preproc=yes
6331 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6332 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6334 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6336 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6338 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6340 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6342 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6345 ## ------------------------------------------ ##
6346 ## Report this to the AC_PACKAGE_NAME lists. ##
6347 ## ------------------------------------------ ##
6350 sed "s/^/$as_me: WARNING: /" >&2
6353 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6354 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 eval "$as_ac_Header=\$ac_header_preproc"
6360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6365 cat >>confdefs.h <<\_ACEOF
6366 #define HAVE_READLINE 1
6369 CONS_LIBS="-lreadline -ltermcap"
6374 echo "readline.h not found. readline turned off ..."
6386 # check for standard readline library
6387 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6389 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6390 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6394 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6396 # Is the header compilable?
6397 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6398 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6406 #include </usr/include/readline/readline.h>
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_header_compiler=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_header_compiler=no
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6439 echo "${ECHO_T}$ac_header_compiler" >&6
6441 # Is the header present?
6442 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6443 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include </usr/include/readline/readline.h>
6452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev/null; then
6460 if test -s conftest.err; then
6461 ac_cpp_err=$ac_c_preproc_warn_flag
6462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6469 if test -z "$ac_cpp_err"; then
6470 ac_header_preproc=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_header_preproc=no
6477 rm -f conftest.err conftest.$ac_ext
6478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6479 echo "${ECHO_T}$ac_header_preproc" >&6
6481 # So? What about this header?
6482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6484 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6485 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6487 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6488 ac_header_preproc=yes
6491 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6492 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6494 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6496 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6498 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6500 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6502 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6505 ## ------------------------------------------ ##
6506 ## Report this to the AC_PACKAGE_NAME lists. ##
6507 ## ------------------------------------------ ##
6510 sed "s/^/$as_me: WARNING: /" >&2
6513 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6514 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6515 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6520 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6521 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6524 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_READLINE 1
6530 CONS_INC="-I/usr/include/readline"
6531 CONS_LIBS="-lreadline -ltermcap"
6535 # Did not find standard library, so try Bacula's default
6536 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6539 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546 # Is the header compilable?
6547 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6548 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 $ac_includes_default
6556 #include <${TOP_DIR}/depkgs/readline/readline.h>
6558 rm -f conftest.$ac_objext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560 (eval $ac_compile) 2>conftest.er1
6562 grep -v '^ *+' conftest.er1 >conftest.err
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest.$ac_objext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 ac_header_compiler=yes
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_header_compiler=no
6587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6589 echo "${ECHO_T}$ac_header_compiler" >&6
6591 # Is the header present?
6592 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6593 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 #include <${TOP_DIR}/depkgs/readline/readline.h>
6602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1 >conftest.err
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } >/dev/null; then
6610 if test -s conftest.err; then
6611 ac_cpp_err=$ac_c_preproc_warn_flag
6612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6619 if test -z "$ac_cpp_err"; then
6620 ac_header_preproc=yes
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_header_preproc=no
6627 rm -f conftest.err conftest.$ac_ext
6628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6629 echo "${ECHO_T}$ac_header_preproc" >&6
6631 # So? What about this header?
6632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6634 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6635 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6637 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6638 ac_header_preproc=yes
6641 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6642 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6644 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6646 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6648 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6650 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6652 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6655 ## ------------------------------------------ ##
6656 ## Report this to the AC_PACKAGE_NAME lists. ##
6657 ## ------------------------------------------ ##
6660 sed "s/^/$as_me: WARNING: /" >&2
6663 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6664 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 eval "$as_ac_Header=\$ac_header_preproc"
6670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_READLINE 1
6680 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6681 CONS_LIBS="-lreadline -lhistory -ltermcap"
6682 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6683 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6687 echo "readline.h not found. readline turned off ..."
6713 # Minimal stuff for readline Makefile configuration
6716 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6717 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6718 if test "${ac_cv_header_stat_broken+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 cat >conftest.$ac_ext <<_ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 #include <sys/types.h>
6728 #include <sys/stat.h>
6730 #if defined(S_ISBLK) && defined(S_IFDIR)
6731 # if S_ISBLK (S_IFDIR)
6736 #if defined(S_ISBLK) && defined(S_IFCHR)
6737 # if S_ISBLK (S_IFCHR)
6742 #if defined(S_ISLNK) && defined(S_IFREG)
6743 # if S_ISLNK (S_IFREG)
6748 #if defined(S_ISSOCK) && defined(S_IFREG)
6749 # if S_ISSOCK (S_IFREG)
6755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756 $EGREP "You lose" >/dev/null 2>&1; then
6757 ac_cv_header_stat_broken=yes
6759 ac_cv_header_stat_broken=no
6764 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6765 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6766 if test $ac_cv_header_stat_broken = yes; then
6768 cat >>confdefs.h <<\_ACEOF
6769 #define STAT_MACROS_BROKEN 1
6780 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6781 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6782 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6783 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <sys/types.h>
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807 (eval $ac_compile) 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 eval "$as_ac_Header=yes"
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 eval "$as_ac_Header=no"
6834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839 cat >>confdefs.h <<_ACEOF
6840 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6843 ac_header_dirent=$ac_hdr; break
6847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6848 if test $ac_header_dirent = dirent.h; then
6849 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6850 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6851 if test "${ac_cv_search_opendir+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 ac_func_search_save_LIBS=$LIBS
6855 ac_cv_search_opendir=no
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6863 /* Override any gcc2 internal prototype to avoid an error. */
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try='test -s conftest$ac_exeext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_cv_search_opendir="none required"
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6906 rm -f conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6908 if test "$ac_cv_search_opendir" = no; then
6909 for ac_lib in dir; do
6910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6918 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -z "$ac_c_werror_flag"
6943 || test ! -s conftest.err'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; } &&
6949 { ac_try='test -s conftest$ac_exeext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 ac_cv_search_opendir="-l$ac_lib"
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6962 rm -f conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6966 LIBS=$ac_func_search_save_LIBS
6968 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6969 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6970 if test "$ac_cv_search_opendir" != no; then
6971 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6976 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6977 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6978 if test "${ac_cv_search_opendir+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 ac_func_search_save_LIBS=$LIBS
6982 ac_cv_search_opendir=no
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_search_opendir="none required"
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7033 rm -f conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 if test "$ac_cv_search_opendir" = no; then
7037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7045 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
7064 grep -v '^ *+' conftest.er1 >conftest.err
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_c_werror_flag"
7070 || test ! -s conftest.err'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_search_opendir="-l$ac_lib"
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7089 rm -f conftest.err conftest.$ac_objext \
7090 conftest$ac_exeext conftest.$ac_ext
7093 LIBS=$ac_func_search_save_LIBS
7095 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7096 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7097 if test "$ac_cv_search_opendir" != no; then
7098 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7112 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7115 echo "$as_me:$LINENO: checking for $ac_func" >&5
7116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7117 if eval "test \"\${$as_ac_var+set}\" = set"; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.$ac_ext <<_ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7128 #define $ac_func innocuous_$ac_func
7130 /* System header to define __stub macros and hopefully few prototypes,
7131 which can conflict with char $ac_func (); below.
7132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 <limits.h> exists even on freestanding compilers. */
7136 # include <limits.h>
7138 # include <assert.h>
7143 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7151 /* The GNU C library defines this for functions which it implements
7152 to always fail with ENOSYS. Some functions are actually named
7153 something starting with __ and the normal name is an alias. */
7154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7157 char (*f) () = $ac_func;
7166 return f != $ac_func;
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 eval "$as_ac_var=yes"
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 eval "$as_ac_var=no"
7200 rm -f conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7205 if test `eval echo '${'$as_ac_var'}'` = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215 for ac_func in nanosleep nl_langinfo
7217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7218 echo "$as_me:$LINENO: checking for $ac_func" >&5
7219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7220 if eval "test \"\${$as_ac_var+set}\" = set"; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7231 #define $ac_func innocuous_$ac_func
7233 /* System header to define __stub macros and hopefully few prototypes,
7234 which can conflict with char $ac_func (); below.
7235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236 <limits.h> exists even on freestanding compilers. */
7239 # include <limits.h>
7241 # include <assert.h>
7246 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 char (*f) () = $ac_func;
7269 return f != $ac_func;
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_c_werror_flag"
7284 || test ! -s conftest.err'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } &&
7290 { ac_try='test -s conftest$ac_exeext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 eval "$as_ac_var=yes"
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 eval "$as_ac_var=no"
7303 rm -f conftest.err conftest.$ac_objext \
7304 conftest$ac_exeext conftest.$ac_ext
7306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7308 if test `eval echo '${'$as_ac_var'}'` = yes; then
7309 cat >>confdefs.h <<_ACEOF
7310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7317 for ac_header in varargs.h
7319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo "$as_me:$LINENO: checking for $ac_header" >&5
7322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7329 # Is the header compilable?
7330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7339 #include <$ac_header>
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7345 grep -v '^ *+' conftest.er1 >conftest.err
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_header_compiler=yes
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_header_compiler=no
7370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7372 echo "${ECHO_T}$ac_header_compiler" >&6
7374 # Is the header present?
7375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 #include <$ac_header>
7385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } >/dev/null; then
7393 if test -s conftest.err; then
7394 ac_cpp_err=$ac_c_preproc_warn_flag
7395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7402 if test -z "$ac_cpp_err"; then
7403 ac_header_preproc=yes
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 ac_header_preproc=no
7410 rm -f conftest.err conftest.$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7412 echo "${ECHO_T}$ac_header_preproc" >&6
7414 # So? What about this header?
7415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7421 ac_header_preproc=yes
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7438 ## ------------------------------------------ ##
7439 ## Report this to the AC_PACKAGE_NAME lists. ##
7440 ## ------------------------------------------ ##
7443 sed "s/^/$as_me: WARNING: /" >&2
7446 echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 eval "$as_ac_Header=\$ac_header_preproc"
7453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7467 # End of readline/conio stuff
7468 # -----------------------------------------------------------------------
7470 # -----------------------------------------------------------------------
7471 # Check for Python support
7473 echo "$as_me:$LINENO: checking for Python support" >&5
7474 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7476 # Check whether --with-python or --without-python was given.
7477 if test "${with_python+set}" = set; then
7478 withval="$with_python"
7482 if test "$withval" != "no"; then
7483 if test "$withval" = "yes"; then
7484 if test -f /usr/include/python2.2/Python.h; then
7485 PYTHON_INCDIR=-I/usr/include/python2.2
7486 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7487 elif test -f /usr/include/python2.3/Python.h; then
7488 PYTHON_INCDIR=-I/usr/include/python2.3
7489 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7490 elif test -f /usr/include/python2.4/Python.h; then
7491 PYTHON_INCDIR=-I/usr/include/python2.4
7492 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7493 elif test -f $prefix/include/Python.h; then
7494 PYTHON_INCDIR=-I$prefix/include
7495 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7497 echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7500 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7501 { (exit 1); exit 1; }; }
7504 if test -f $withval/Python.h; then
7505 PYTHON_INCDIR=-I$withval
7506 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7507 elif test -f $withval/include/Python.h; then
7508 PYTHON_INCDIR=-I$withval/include
7509 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7514 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7515 { (exit 1); exit 1; }; }
7518 cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_PYTHON 1
7522 echo "$as_me:$LINENO: result: yes" >&5
7523 echo "${ECHO_T}yes" >&6
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7533 echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7542 # Find where sockets are (especially for Solaris)
7543 # Do this before the TCP Wrappers test since tcp wrappers
7544 # uses the socket library and some linkers are stupid.
7546 echo "$as_me:$LINENO: checking for socket" >&5
7547 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7548 if test "${ac_cv_func_socket+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 cat >conftest.$ac_ext <<_ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7559 #define socket innocuous_socket
7561 /* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char socket (); below.
7563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7564 <limits.h> exists even on freestanding compilers. */
7567 # include <limits.h>
7569 # include <assert.h>
7574 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_socket) || defined (__stub___socket)
7588 char (*f) () = socket;
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_func_socket=yes
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_func_socket=no
7631 rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7635 echo "${ECHO_T}$ac_cv_func_socket" >&6
7636 if test $ac_cv_func_socket = yes; then
7637 echo "$as_me:$LINENO: result: using libc's socket" >&5
7638 echo "${ECHO_T}using libc's socket" >&6
7641 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7642 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7643 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_check_lib_save_LIBS=$LIBS
7648 cat >conftest.$ac_ext <<_ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7655 /* Override any gcc2 internal prototype to avoid an error. */
7659 /* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7670 rm -f conftest.$ac_objext conftest$ac_exeext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7672 (eval $ac_link) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_lib_xnet_socket=yes
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_lib_xnet_socket=no
7699 rm -f conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 LIBS=$ac_check_lib_save_LIBS
7703 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7704 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7705 if test $ac_cv_lib_xnet_socket = yes; then
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_LIBXNET 1
7715 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7716 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7717 if test "${ac_cv_lib_socket_socket+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 ac_check_lib_save_LIBS=$LIBS
7721 LIBS="-lsocket $LIBS"
7722 cat >conftest.$ac_ext <<_ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_lib_socket_socket=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_lib_socket_socket=no
7773 rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7775 LIBS=$ac_check_lib_save_LIBS
7777 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7778 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7779 if test $ac_cv_lib_socket_socket = yes; then
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_LIBSOCKET 1
7784 LIBS="-lsocket $LIBS"
7789 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7791 if test "${ac_cv_lib_inet_socket+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 ac_check_lib_save_LIBS=$LIBS
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7803 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag"
7828 || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_lib_inet_socket=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_cv_lib_inet_socket=no
7847 rm -f conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849 LIBS=$ac_check_lib_save_LIBS
7851 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7852 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7853 if test $ac_cv_lib_inet_socket = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_LIBINET 1
7866 # -----------------------------------------------------------
7867 # Check whether user wants TCP wrappers support (default off)
7868 # -----------------------------------------------------------
7871 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7872 if test "${with_tcp_wrappers+set}" = set; then
7873 withval="$with_tcp_wrappers"
7875 if test "x$withval" != "xno" ; then
7877 LIBS="$saved_LIBS -lwrap"
7878 echo "$as_me:$LINENO: checking for libwrap" >&5
7879 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7887 int deny_severity = 0;
7888 int allow_severity = 0;
7889 struct request_info *req;
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>conftest.er1
7902 grep -v '^ *+' conftest.er1 >conftest.err
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest$ac_exeext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7921 echo "$as_me:$LINENO: result: yes" >&5
7922 echo "${ECHO_T}yes" >&6
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_LIBWRAP 1
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7934 LIBS="$saved_LIBS -lwrap -lnsl"
7935 cat >conftest.$ac_ext <<_ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7942 int deny_severity = 0;
7943 int allow_severity = 0;
7944 struct request_info *req;
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7976 echo "$as_me:$LINENO: result: yes" >&5
7977 echo "${ECHO_T}yes" >&6
7978 cat >>confdefs.h <<\_ACEOF
7979 #define HAVE_LIBWRAP 1
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7989 echo "$as_me: error: *** libwrap missing" >&2;}
7990 { (exit 1); exit 1; }; }
7993 rm -f conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7997 rm -f conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
8004 # -----------------------------------------------------------
8005 # Check whether OpenSSL is available
8006 # -----------------------------------------------------------
8007 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8008 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8010 # Check whether --with-openssl or --without-openssl was given.
8011 if test "${with_openssl+set}" = set; then
8012 withval="$with_openssl"
8013 with_openssl_directory=${withval}
8016 if test "x$with_openssl_directory" != "xno"; then
8017 OPENSSL_LIBS="-lssl -lcrypto"
8020 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8021 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8022 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8026 saved_CFLAGS="$CFLAGS"
8027 LIBS="$saved_LIBS $OPENSSL_LIBS"
8028 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8030 cat >conftest.$ac_ext <<_ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 #include <openssl/ssl.h>
8040 CRYPTO_set_id_callback(NULL);
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8075 rm -f conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8079 CFLAGS="$saved_CFLAGS"
8081 if test "$support_tls" = "yes"; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_OPENSSL 1
8088 cat >>confdefs.h <<\_ACEOF
8099 echo "$as_me:$LINENO: result: $support_tls" >&5
8100 echo "${ECHO_T}$support_tls" >&6
8106 # ------------------------------------------
8107 # Where to place working dir
8108 # ------------------------------------------
8109 working_dir=`eval echo ${prefix}/var/bacula/working`
8111 # Check whether --with-working-dir or --without-working-dir was given.
8112 if test "${with_working_dir+set}" = set; then
8113 withval="$with_working_dir"
8115 if test "x$withval" != "xno" ; then
8116 working_dir=$withval
8125 # ------------------------------------------
8126 # Where to place scriptdir (script files)
8127 # ------------------------------------------
8128 scriptdir=`eval echo ${sysconfdir}`
8130 # Check whether --with-scriptdir or --without-scriptdir was given.
8131 if test "${with_scriptdir+set}" = set; then
8132 withval="$with_scriptdir"
8134 if test "x$withval" != "xno" ; then
8144 # ------------------------------------------
8145 # Where to send dump email
8146 # ------------------------------------------
8147 dump_email=root@localhost
8149 # Check whether --with-dump-email or --without-dump-email was given.
8150 if test "${with_dump_email+set}" = set; then
8151 withval="$with_dump_email"
8153 if test "x$withval" != "xno" ; then
8162 # ------------------------------------------
8163 # Where to send job email
8164 # ------------------------------------------
8165 job_email=root@localhost
8167 # Check whether --with-job-email or --without-job-email was given.
8168 if test "${with_job_email+set}" = set; then
8169 withval="$with_job_email"
8171 if test "x$withval" != "xno" ; then
8180 # ------------------------------------------
8181 # Where to find smtp host
8182 # ------------------------------------------
8185 # Check whether --with-smtp_host or --without-smtp_host was given.
8186 if test "${with_smtp_host+set}" = set; then
8187 withval="$with_smtp_host"
8189 if test "x$withval" != "xno" ; then
8199 # ------------------------------------
8200 # Where to place pid files
8201 # ------------------------------------
8204 # Check whether --with-pid-dir or --without-pid-dir was given.
8205 if test "${with_pid_dir+set}" = set; then
8206 withval="$with_pid_dir"
8208 if test "x$withval" != "xno" ; then
8215 cat >>confdefs.h <<_ACEOF
8216 #define _PATH_BACULA_PIDDIR "$piddir"
8222 # ------------------------------------
8223 # Where to place subsys "lock file"
8224 # ------------------------------------
8225 subsysdir=/var/run/subsys
8227 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8228 if test "${with_subsys_dir+set}" = set; then
8229 withval="$with_subsys_dir"
8231 if test "x$withval" != "xno" ; then
8242 # ------------------------------------
8243 # Where to start assigning ports
8244 # ------------------------------------
8247 # Check whether --with-baseport or --without-baseport was given.
8248 if test "${with_baseport+set}" = set; then
8249 withval="$with_baseport"
8251 if test "x$withval" != "xno" ; then
8259 dir_port=`expr $baseport`
8260 fd_port=`expr $baseport + 1`
8261 sd_port=`expr $fd_port + 1`
8268 # ------------------------------------------
8269 # Generate passwords
8270 # ------------------------------------------
8273 # Check whether --with-dir-password or --without-dir-password was given.
8274 if test "${with_dir_password+set}" = set; then
8275 withval="$with_dir_password"
8277 if test "x$withval" != "xno" ; then
8278 dir_password=$withval
8284 if test "x$dir_password" = "x" ; then
8285 if test "x$OPENSSL" = "xnone" ; then
8286 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8287 key=`autoconf/randpass 33`
8289 key=`openssl rand -base64 33`
8296 # Check whether --with-fd-password or --without-fd-password was given.
8297 if test "${with_fd_password+set}" = set; then
8298 withval="$with_fd_password"
8300 if test "x$withval" != "xno" ; then
8301 fd_password=$withval
8307 if test "x$fd_password" = "x" ; then
8308 if test "x$OPENSSL" = "xnone" ; then
8309 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8310 key=`autoconf/randpass 37`
8312 key=`openssl rand -base64 33`
8319 # Check whether --with-sd-password or --without-sd-password was given.
8320 if test "${with_sd_password+set}" = set; then
8321 withval="$with_sd_password"
8323 if test "x$withval" != "xno" ; then
8324 sd_password=$withval
8330 if test "x$sd_password" = "x" ; then
8331 if test "x$OPENSSL" = "xnone" ; then
8332 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8333 key=`autoconf/randpass 41`
8335 key=`openssl rand -base64 33`
8342 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8343 if test "${with_mon_dir_password+set}" = set; then
8344 withval="$with_mon_dir_password"
8346 if test "x$withval" != "xno" ; then
8347 mon_dir_password=$withval
8353 if test "x$mon_dir_password" = "x" ; then
8354 if test "x$OPENSSL" = "xnone" ; then
8355 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8356 key=`autoconf/randpass 33`
8358 key=`openssl rand -base64 33`
8360 mon_dir_password=$key
8365 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8366 if test "${with_mon_fd_password+set}" = set; then
8367 withval="$with_mon_fd_password"
8369 if test "x$withval" != "xno" ; then
8370 mon_fd_password=$withval
8376 if test "x$mon_fd_password" = "x" ; then
8377 if test "x$OPENSSL" = "xnone" ; then
8378 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8379 key=`autoconf/randpass 37`
8381 key=`openssl rand -base64 33`
8383 mon_fd_password=$key
8388 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8389 if test "${with_mon_sd_password+set}" = set; then
8390 withval="$with_mon_sd_password"
8392 if test "x$withval" != "xno" ; then
8393 mon_sd_password=$withval
8399 if test "x$mon_sd_password" = "x" ; then
8400 if test "x$OPENSSL" = "xnone" ; then
8401 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8402 key=`autoconf/randpass 41`
8404 key=`openssl rand -base64 33`
8406 mon_sd_password=$key
8416 # -------------------------------------------------------------------------
8417 # Set variables for bimagemgr installation
8418 # -------------------------------------------------------------------------
8419 bimagemgr_cgidir=/var/www/cgi-bin
8421 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8422 if test "${with_bimagemgr_cgidir+set}" = set; then
8423 withval="$with_bimagemgr_cgidir"
8425 if test "x$withval" != "xno" ; then
8426 bimagemgr_cgidir=$withval
8432 bimagemgr_docdir=/var/www/html
8434 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8435 if test "${with_bimagemgr_docdir+set}" = set; then
8436 withval="$with_bimagemgr_docdir"
8438 if test "x$withval" != "xno" ; then
8439 bimagemgr_docdir=$withval
8445 bimagemgr_binowner=root
8447 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8448 if test "${with_bimagemgr_binowner+set}" = set; then
8449 withval="$with_bimagemgr_binowner"
8451 if test "x$withval" != "xno" ; then
8452 bimagemgr_binowner=$withval
8458 bimagemgr_bingroup=root
8460 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8461 if test "${with_bimagemgr_bingroup+set}" = set; then
8462 withval="$with_bimagemgr_bingroup"
8464 if test "x$withval" != "xno" ; then
8465 bimagemgr_bingroup=$withval
8471 bimagemgr_dataowner=apache
8473 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8474 if test "${with_bimagemgr_dataowner+set}" = set; then
8475 withval="$with_bimagemgr_dataowner"
8477 if test "x$withval" != "xno" ; then
8478 bimagemgr_dataowner=$withval
8484 bimagemgr_datagroup=apache
8486 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8487 if test "${with_bimagemgr_datagroup+set}" = set; then
8488 withval="$with_bimagemgr_datagroup"
8490 if test "x$withval" != "xno" ; then
8491 bimagemgr_datagroup=$withval
8505 # Handle users and groups for each daemon
8509 # Check whether --with-dir_user or --without-dir_user was given.
8510 if test "${with_dir_user+set}" = set; then
8511 withval="$with_dir_user"
8513 if test "x$withval" != "x" ; then
8522 # Check whether --with-dir_group or --without-dir_group was given.
8523 if test "${with_dir_group+set}" = set; then
8524 withval="$with_dir_group"
8526 if test "x$withval" != "x" ; then
8535 # Check whether --with-sd_user or --without-sd_user was given.
8536 if test "${with_sd_user+set}" = set; then
8537 withval="$with_sd_user"
8539 if test "x$withval" != "x" ; then
8548 # Check whether --with-sd_group or --without-sd_group was given.
8549 if test "${with_sd_group+set}" = set; then
8550 withval="$with_sd_group"
8552 if test "x$withval" != "x" ; then
8561 # Check whether --with-fd_user or --without-fd_user was given.
8562 if test "${with_fd_user+set}" = set; then
8563 withval="$with_fd_user"
8565 if test "x$withval" != "x" ; then
8574 # Check whether --with-fd_group or --without-fd_group was given.
8575 if test "${with_fd_group+set}" = set; then
8576 withval="$with_fd_group"
8578 if test "x$withval" != "x" ; then
8596 # allow setting default executable permissions
8600 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8601 if test "${with_sbin_perm+set}" = set; then
8602 withval="$with_sbin_perm"
8604 if test "x$withval" != "x" ; then
8613 # ------------------------------------------------
8614 # Bacula check for various SQL database engines
8615 # ------------------------------------------------
8618 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8619 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8621 # Check whether --with-postgresql or --without-postgresql was given.
8622 if test "${with_postgresql+set}" = set; then
8623 withval="$with_postgresql"
8625 if test "$withval" != "no"; then
8626 if test "$db_found" = "yes"; then
8627 echo "$as_me:$LINENO: result: error" >&5
8628 echo "${ECHO_T}error" >&6
8629 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8630 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8631 { (exit 1); exit 1; }; };
8633 if test "$withval" = "yes"; then
8634 if test -f /usr/local/include/libpq-fe.h; then
8635 POSTGRESQL_INCDIR=/usr/local/include
8636 POSTGRESQL_LIBDIR=/usr/local/lib
8637 POSTGRESQL_BINDIR=/usr/local/bin
8638 elif test -f /usr/include/libpq-fe.h; then
8639 POSTGRESQL_INCDIR=/usr/include
8640 POSTGRESQL_LIBDIR=/usr/lib
8641 POSTGRESQL_BINDIR=/usr/bin
8642 elif test -f /usr/include/pgsql/libpq-fe.h; then
8643 POSTGRESQL_INCDIR=/usr/include/pgsql
8644 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8645 POSTGRESQL_BINDIR=/usr/bin
8646 elif test -f /usr/include/postgresql/libpq-fe.h; then
8647 POSTGRESQL_INCDIR=/usr/include/postgresql
8648 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8649 POSTGRESQL_BINDIR=/usr/bin
8651 echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8653 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8654 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8655 { (exit 1); exit 1; }; }
8657 elif test -f $withval/include/libpq-fe.h; then
8658 POSTGRESQL_INCDIR=$withval/include
8659 POSTGRESQL_LIBDIR=$withval/lib
8660 POSTGRESQL_BINDIR=$withval/bin
8661 elif test -f $withval/include/postgresql/libpq-fe.h; then
8662 POSTGRESQL_INCDIR=$withval/include/postgresql
8663 POSTGRESQL_LIBDIR=$withval/lib
8664 POSTGRESQL_BINDIR=$withval/bin
8666 echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8668 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8669 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8670 { (exit 1); exit 1; }; }
8672 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8673 echo "$as_me:$LINENO: checking for crypt" >&5
8674 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8675 if test "${ac_cv_func_crypt+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8686 #define crypt innocuous_crypt
8688 /* System header to define __stub macros and hopefully few prototypes,
8689 which can conflict with char crypt (); below.
8690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8691 <limits.h> exists even on freestanding compilers. */
8694 # include <limits.h>
8696 # include <assert.h>
8701 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8709 /* The GNU C library defines this for functions which it implements
8710 to always fail with ENOSYS. Some functions are actually named
8711 something starting with __ and the normal name is an alias. */
8712 #if defined (__stub_crypt) || defined (__stub___crypt)
8715 char (*f) () = crypt;
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_func_crypt=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8758 rm -f conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8761 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8762 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8763 if test $ac_cv_func_crypt = yes; then
8766 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8767 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8768 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-lcrypt $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any gcc2 internal prototype to avoid an error. */
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_lib_crypt_crypt=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_cv_lib_crypt_crypt=no
8824 rm -f conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8828 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8829 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8830 if test $ac_cv_lib_crypt_crypt = yes; then
8831 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8836 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8837 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8838 SQL_BINDIR=$POSTGRESQL_BINDIR
8839 cat >>confdefs.h <<\_ACEOF
8840 #define HAVE_POSTGRESQL 1
8843 echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6
8846 support_postgresql=yes
8850 echo "$as_me:$LINENO: result: no" >&5
8851 echo "${ECHO_T}no" >&6
8856 echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6
8868 echo "$as_me:$LINENO: checking for MySQL support" >&5
8869 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8871 # Check whether --with-mysql or --without-mysql was given.
8872 if test "${with_mysql+set}" = set; then
8873 withval="$with_mysql"
8875 if test "$withval" != "no"; then
8876 if test "$withval" = "yes"; then
8877 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8878 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8879 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8880 MYSQL_BINDIR=/usr/local/mysql/bin
8881 elif test -f /usr/include/mysql/mysql.h; then
8882 MYSQL_INCDIR=/usr/include/mysql
8883 MYSQL_LIBDIR=/usr/lib/mysql
8884 MYSQL_BINDIR=/usr/bin
8885 elif test -f /usr/include/mysql.h; then
8886 MYSQL_INCDIR=/usr/include
8887 MYSQL_LIBDIR=/usr/lib
8888 MYSQL_BINDIR=/usr/bin
8889 elif test -f /usr/local/include/mysql/mysql.h; then
8890 MYSQL_INCDIR=/usr/local/include/mysql
8891 MYSQL_LIBDIR=/usr/local/lib/mysql
8892 MYSQL_BINDIR=/usr/local/bin
8893 elif test -f /usr/local/include/mysql.h; then
8894 MYSQL_INCDIR=/usr/local/include
8895 MYSQL_LIBDIR=/usr/local/lib
8896 MYSQL_BINDIR=/usr/local/bin
8898 echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6
8900 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8901 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8902 { (exit 1); exit 1; }; }
8905 if test -f $withval/include/mysql/mysql.h; then
8906 MYSQL_INCDIR=$withval/include/mysql
8907 MYSQL_LIBDIR=$withval/lib/mysql
8908 MYSQL_BINDIR=$withval/bin
8909 elif test -f $withval/include/mysql.h; then
8910 MYSQL_INCDIR=$withval/include
8911 MYSQL_LIBDIR=$withval/lib
8912 MYSQL_BINDIR=$withval/bin
8914 echo "$as_me:$LINENO: result: no" >&5
8915 echo "${ECHO_T}no" >&6
8916 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8917 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8918 { (exit 1); exit 1; }; }
8921 SQL_INCLUDE=-I$MYSQL_INCDIR
8922 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8923 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8924 cat >>confdefs.h <<\_ACEOF
8925 #define HAVE_THREAD_SAFE_MYSQL 1
8929 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8931 SQL_BINDIR=$MYSQL_BINDIR
8933 cat >>confdefs.h <<\_ACEOF
8934 #define HAVE_MYSQL 1
8937 echo "$as_me:$LINENO: result: yes" >&5
8938 echo "${ECHO_T}yes" >&6
8945 echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8953 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8954 if test "${with_embedded_mysql+set}" = set; then
8955 withval="$with_embedded_mysql"
8957 if test "$withval" != "no"; then
8958 if test "$withval" = "yes"; then
8959 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8960 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8961 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8962 MYSQL_BINDIR=/usr/local/mysql/bin
8963 elif test -f /usr/include/mysql/mysql.h; then
8964 MYSQL_INCDIR=/usr/include/mysql
8965 MYSQL_LIBDIR=/usr/lib/mysql
8966 MYSQL_BINDIR=/usr/bin
8967 elif test -f /usr/include/mysql.h; then
8968 MYSQL_INCDIR=/usr/include
8969 MYSQL_LIBDIR=/usr/lib
8970 MYSQL_BINDIR=/usr/bin
8971 elif test -f /usr/local/include/mysql/mysql.h; then
8972 MYSQL_INCDIR=/usr/local/include/mysql
8973 MYSQL_LIBDIR=/usr/local/lib/mysql
8974 MYSQL_BINDIR=/usr/local/bin
8975 elif test -f /usr/local/include/mysql.h; then
8976 MYSQL_INCDIR=/usr/local/include
8977 MYSQL_LIBDIR=/usr/local/lib
8978 MYSQL_BINDIR=/usr/local/bin
8980 echo "$as_me:$LINENO: result: no" >&5
8981 echo "${ECHO_T}no" >&6
8982 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8983 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8984 { (exit 1); exit 1; }; }
8987 if test -f $withval/include/mysql/mysql.h; then
8988 MYSQL_INCDIR=$withval/include/mysql
8989 MYSQL_LIBDIR=$withval/lib/mysql
8990 MYSQL_BINDIR=$withval/bin
8991 elif test -f $withval/include/mysql.h; then
8992 MYSQL_INCDIR=$withval/include
8993 MYSQL_LIBDIR=$withval/lib
8994 MYSQL_BINDIR=$withval/bin
8996 echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6
8998 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8999 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9000 { (exit 1); exit 1; }; }
9003 SQL_INCLUDE=-I$MYSQL_INCDIR
9004 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9005 SQL_BINDIR=$MYSQL_BINDIR
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_MYSQL 1
9011 cat >>confdefs.h <<\_ACEOF
9012 #define HAVE_EMBEDDED_MYSQL 1
9015 echo "$as_me:$LINENO: result: yes" >&5
9016 echo "${ECHO_T}yes" >&6
9023 echo "$as_me:$LINENO: result: no" >&5
9024 echo "${ECHO_T}no" >&6
9039 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9040 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9042 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9043 if test "${with_sqlite3+set}" = set; then
9044 withval="$with_sqlite3"
9046 if test "$withval" != "no"; then
9047 if test "$withval" = "yes"; then
9048 if test -f /usr/local/include/sqlite3.h; then
9049 SQLITE_INCDIR=/usr/local/include
9050 SQLITE_LIBDIR=/usr/local/lib
9051 SQLITE_BINDIR=/usr/local/bin
9052 elif test -f /usr/include/sqlite3.h; then
9053 SQLITE_INCDIR=/usr/include
9054 SQLITE_LIBDIR=/usr/lib
9055 SQLITE_BINDIR=/usr/bin
9056 elif test -f $prefix/include/sqlite3.h; then
9057 SQLITE_INCDIR=$prefix/include
9058 SQLITE_LIBDIR=$prefix/lib
9059 SQLITE_BINDIR=$prefix/bin
9061 echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9064 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9065 { (exit 1); exit 1; }; }
9068 if test -f $withval/sqlite3.h; then
9069 SQLITE_INCDIR=$withval
9070 SQLITE_LIBDIR=$withval
9071 SQLITE_BINDIR=$withval
9072 elif test -f $withval/include/sqlite3.h; then
9073 SQLITE_INCDIR=$withval/include
9074 SQLITE_LIBDIR=$withval/lib
9075 SQLITE_BINDIR=$withval/bin
9077 echo "$as_me:$LINENO: result: no" >&5
9078 echo "${ECHO_T}no" >&6
9079 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9080 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9081 { (exit 1); exit 1; }; }
9084 SQL_INCLUDE=-I$SQLITE_INCDIR
9085 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9086 SQL_BINDIR=$SQLITE_BINDIR
9088 cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_SQLITE3 1
9092 echo "$as_me:$LINENO: result: yes" >&5
9093 echo "${ECHO_T}yes" >&6
9100 echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6
9106 echo "$as_me:$LINENO: result: no" >&5
9107 echo "${ECHO_T}no" >&6
9118 echo "$as_me:$LINENO: checking for SQLite support" >&5
9119 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9121 # Check whether --with-sqlite or --without-sqlite was given.
9122 if test "${with_sqlite+set}" = set; then
9123 withval="$with_sqlite"
9125 if test "$withval" != "no"; then
9126 if test "$withval" = "yes"; then
9127 if test -f /usr/local/include/sqlite.h; then
9128 SQLITE_INCDIR=/usr/local/include
9129 SQLITE_LIBDIR=/usr/local/lib
9130 SQLITE_BINDIR=/usr/local/bin
9131 elif test -f /usr/include/sqlite.h; then
9132 SQLITE_INCDIR=/usr/include
9133 SQLITE_LIBDIR=/usr/lib
9134 SQLITE_BINDIR=/usr/bin
9135 elif test -f $prefix/include/sqlite.h; then
9136 SQLITE_INCDIR=$prefix/include
9137 SQLITE_LIBDIR=$prefix/lib
9138 SQLITE_BINDIR=$prefix/bin
9140 echo "$as_me:$LINENO: result: no" >&5
9141 echo "${ECHO_T}no" >&6
9142 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9143 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9144 { (exit 1); exit 1; }; }
9147 if test -f $withval/sqlite.h; then
9148 SQLITE_INCDIR=$withval
9149 SQLITE_LIBDIR=$withval
9150 SQLITE_BINDIR=$withval
9151 elif test -f $withval/include/sqlite.h; then
9152 SQLITE_INCDIR=$withval/include
9153 SQLITE_LIBDIR=$withval/lib
9154 SQLITE_BINDIR=$withval/bin
9156 echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6
9158 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9159 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9160 { (exit 1); exit 1; }; }
9163 SQL_INCLUDE=-I$SQLITE_INCDIR
9164 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9165 SQL_BINDIR=$SQLITE_BINDIR
9167 cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_SQLITE 1
9171 echo "$as_me:$LINENO: result: yes" >&5
9172 echo "${ECHO_T}yes" >&6
9179 echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9185 echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6
9198 cat >>confdefs.h <<\_ACEOF
9199 #define PROTOTYPES 1
9203 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9204 if test -z "$CCOPTS"; then
9205 CCOPTS='-g -O2 -Wall'
9213 largefile_support="no"
9215 # Check whether --enable-largefile or --disable-largefile was given.
9216 if test "${enable_largefile+set}" = set; then
9217 enableval="$enable_largefile"
9220 if test "$enable_largefile" != no; then
9221 if test -n "$ac_tool_prefix"; then
9222 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9223 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9224 echo "$as_me:$LINENO: checking for $ac_word" >&5
9225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9226 if test "${ac_cv_prog_GETCONF+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 if test -n "$GETCONF"; then
9230 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 test -z "$as_dir" && as_dir=.
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9239 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 GETCONF=$ac_cv_prog_GETCONF
9249 if test -n "$GETCONF"; then
9250 echo "$as_me:$LINENO: result: $GETCONF" >&5
9251 echo "${ECHO_T}$GETCONF" >&6
9253 echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6
9258 if test -z "$ac_cv_prog_GETCONF"; then
9259 ac_ct_GETCONF=$GETCONF
9260 # Extract the first word of "getconf", so it can be a program name with args.
9261 set dummy getconf; ac_word=$2
9262 echo "$as_me:$LINENO: checking for $ac_word" >&5
9263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9264 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 if test -n "$ac_ct_GETCONF"; then
9268 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_ac_ct_GETCONF="getconf"
9278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9287 if test -n "$ac_ct_GETCONF"; then
9288 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9289 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9291 echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9295 GETCONF=$ac_ct_GETCONF
9297 GETCONF="$ac_cv_prog_GETCONF"
9300 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9301 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9302 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9306 ac_cv_sys_largefile_CFLAGS=no
9308 # IRIX 6.2 and later require cc -n32.
9309 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9310 if test "$GCC" != yes; then
9311 ac_cv_sys_largefile_CFLAGS=-n32
9314 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9315 cat >conftest.$ac_ext <<_ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9330 rm -f conftest.$ac_objext conftest$ac_exeext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332 (eval $ac_link) 2>conftest.er1
9334 grep -v '^ *+' conftest.er1 >conftest.err
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try='test -z "$ac_c_werror_flag"
9340 || test ! -s conftest.err'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
9346 { ac_try='test -s conftest$ac_exeext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_cv_sys_largefile_CFLAGS=no
9359 rm -f conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9365 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9366 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9367 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9368 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9369 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9373 ac_cv_sys_largefile_LDFLAGS=no
9377 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9378 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9379 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9380 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9381 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9385 ac_cv_sys_largefile_LIBS=no
9389 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9390 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9392 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9395 -D_FILE_OFFSET_BITS=*) ;;
9396 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9397 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9403 '') CPPFLAGS="$ac_flag" ;;
9404 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9412 '') CFLAGS="$ac_flag" ;;
9413 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9418 case "$ac_cv_sys_largefile_LDFLAGS" in
9422 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9423 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9426 case "$ac_cv_sys_largefile_LIBS" in
9430 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9431 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9434 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9435 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9436 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 ac_cv_sys_file_offset_bits=no
9440 ac_cv_sys_file_offset_bits=64
9441 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9443 -D_FILE_OFFSET_BITS)
9444 ac_cv_sys_file_offset_bits=1 ;;
9445 -D_FILE_OFFSET_BITS=*)
9446 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9451 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9452 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9453 if test "$ac_cv_sys_file_offset_bits" != no; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9460 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9461 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9462 if test "${ac_cv_sys_largefile_source+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 ac_cv_sys_largefile_source=no
9466 ac_cv_sys_largefile_source=1
9467 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9469 -D_LARGEFILE_SOURCE)
9470 ac_cv_sys_largefile_source=1 ;;
9471 -D_LARGEFILE_SOURCE=*)
9472 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9477 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9478 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9479 if test "$ac_cv_sys_largefile_source" != no; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9486 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9487 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9488 if test "${ac_cv_sys_large_files+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 ac_cv_sys_large_files=no
9492 ac_cv_sys_large_files=1
9493 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9496 ac_cv_sys_large_files=1 ;;
9498 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9503 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9504 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9505 if test "$ac_cv_sys_large_files" != no; then
9507 cat >>confdefs.h <<_ACEOF
9508 #define _LARGE_FILES $ac_cv_sys_large_files
9516 echo "$as_me:$LINENO: checking for X" >&5
9517 echo $ECHO_N "checking for X... $ECHO_C" >&6
9520 # Check whether --with-x or --without-x was given.
9521 if test "${with_x+set}" = set; then
9525 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9526 if test "x$with_x" = xno; then
9527 # The user explicitly disabled X.
9530 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9531 # Both variables are already set.
9534 if test "${ac_cv_have_x+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 # One or both of the vars are not set, and there is no cached value.
9538 ac_x_includes=no ac_x_libraries=no
9540 if mkdir conftest.dir; then
9542 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9543 cat >Imakefile <<'_ACEOF'
9545 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9547 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9548 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9550 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9551 for ac_extension in a so sl; do
9552 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9553 test -f $ac_im_libdir/libX11.$ac_extension; then
9554 ac_im_usrlibdir=$ac_im_libdir; break
9557 # Screen out bogus values from the imake configuration. They are
9558 # bogus both because they are the default anyway, and because
9559 # using them would break gcc on systems where it needs fixed includes.
9560 case $ac_im_incroot in
9562 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9564 case $ac_im_usrlibdir in
9566 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9573 # Standard set of common directories for X headers.
9574 # Check X11 before X11Rn because it is often a symlink to the current release.
9586 /usr/local/X11/include
9587 /usr/local/X11R6/include
9588 /usr/local/X11R5/include
9589 /usr/local/X11R4/include
9591 /usr/local/include/X11
9592 /usr/local/include/X11R6
9593 /usr/local/include/X11R5
9594 /usr/local/include/X11R4
9598 /usr/XFree86/include/X11
9602 /usr/unsupported/include
9604 /usr/local/x11r5/include
9605 /usr/lpp/Xamples/include
9607 /usr/openwin/include
9608 /usr/openwin/share/include'
9610 if test "$ac_x_includes" = no; then
9611 # Guess where to find include files, by looking for Intrinsic.h.
9612 # First, try using that file with no special directory specified.
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 #include <X11/Intrinsic.h>
9621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9624 grep -v '^ *+' conftest.er1 >conftest.err
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } >/dev/null; then
9629 if test -s conftest.err; then
9630 ac_cpp_err=$ac_c_preproc_warn_flag
9631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9638 if test -z "$ac_cpp_err"; then
9639 # We can compile using X headers with no special include directory.
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 for ac_dir in $ac_x_header_dirs; do
9646 if test -r "$ac_dir/X11/Intrinsic.h"; then
9647 ac_x_includes=$ac_dir
9652 rm -f conftest.err conftest.$ac_ext
9653 fi # $ac_x_includes = no
9655 if test "$ac_x_libraries" = no; then
9656 # Check for the libraries.
9657 # See if we find them without any special options.
9658 # Don't add to $LIBS permanently.
9661 cat >conftest.$ac_ext <<_ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 #include <X11/Intrinsic.h>
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag"
9686 || test ! -s conftest.err'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9699 # We can link X programs with no special library path.
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9706 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9708 # Don't even attempt the hair of trying to link an X program!
9709 for ac_extension in a so sl; do
9710 if test -r $ac_dir/libXt.$ac_extension; then
9711 ac_x_libraries=$ac_dir
9717 rm -f conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
9719 fi # $ac_x_libraries = no
9721 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9722 # Didn't find X anywhere. Cache the known absence of X.
9723 ac_cv_have_x="have_x=no"
9725 # Record where we found X for the cache.
9726 ac_cv_have_x="have_x=yes \
9727 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9732 eval "$ac_cv_have_x"
9735 if test "$have_x" != yes; then
9736 echo "$as_me:$LINENO: result: $have_x" >&5
9737 echo "${ECHO_T}$have_x" >&6
9740 # If each of the values was on the command line, it overrides each guess.
9741 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9742 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9743 # Update the cache value to reflect the command line values.
9744 ac_cv_have_x="have_x=yes \
9745 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9746 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9747 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9750 if test "$no_x" = yes; then
9751 # Not all programs may use this symbol, but it does not hurt to define it.
9753 cat >>confdefs.h <<\_ACEOF
9754 #define X_DISPLAY_MISSING 1
9757 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9759 if test -n "$x_includes"; then
9760 X_CFLAGS="$X_CFLAGS -I$x_includes"
9763 # It would also be nice to do this for all -L options, not just this one.
9764 if test -n "$x_libraries"; then
9765 X_LIBS="$X_LIBS -L$x_libraries"
9766 # For Solaris; some versions of Sun CC require a space after -R and
9767 # others require no space. Words are not sufficient . . . .
9768 case `(uname -sr) 2>/dev/null` in
9770 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9771 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9772 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag"
9798 || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9817 rm -f conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 if test $ac_R_nospace = yes; then
9820 echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9822 X_LIBS="$X_LIBS -R$x_libraries"
9824 LIBS="$ac_xsave_LIBS -R $x_libraries"
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -z "$ac_c_werror_flag"
9850 || test ! -s conftest.err'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try='test -s conftest$ac_exeext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9869 rm -f conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 if test $ac_R_space = yes; then
9872 echo "$as_me:$LINENO: result: yes" >&5
9873 echo "${ECHO_T}yes" >&6
9874 X_LIBS="$X_LIBS -R $x_libraries"
9876 echo "$as_me:$LINENO: result: neither works" >&5
9877 echo "${ECHO_T}neither works" >&6
9884 # Check for system-dependent libraries X programs must link with.
9885 # Do this before checking for the system-independent R6 libraries
9886 # (-lICE), since we may need -lsocket or whatever for X linking.
9888 if test "$ISC" = yes; then
9889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9891 # Martyn Johnson says this is needed for Ultrix, if the X
9892 # libraries were built with DECnet support. And Karl Berry says
9893 # the Alpha needs dnet_stub (dnet does not exist).
9894 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9902 /* Override any gcc2 internal prototype to avoid an error. */
9906 /* We use char because int might match the return type of a gcc2
9907 builtin and then its argument prototype would still apply. */
9908 char XOpenDisplay ();
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919 (eval $ac_link) 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag"
9927 || test ! -s conftest.err'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest$ac_exeext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9944 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9945 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9946 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_check_lib_save_LIBS=$LIBS
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9958 /* Override any gcc2 internal prototype to avoid an error. */
9962 /* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_dnet_dnet_ntoa=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_dnet_dnet_ntoa=no
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10006 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10008 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10009 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10012 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10013 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10014 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10015 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldnet_stub $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044 (eval $ac_link) 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag"
10052 || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_lib_dnet_stub_dnet_ntoa=no
10071 rm -f conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10077 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10078 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10083 rm -f conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS="$ac_xsave_LIBS"
10087 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10088 # to get the SysV transport functions.
10089 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10091 # The nsl library prevents programs from opening the X display
10092 # on Irix 5.2, according to T.E. Dickey.
10093 # The functions gethostbyname, getservbyname, and inet_addr are
10094 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10095 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10096 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10097 if test "${ac_cv_func_gethostbyname+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10108 #define gethostbyname innocuous_gethostbyname
10110 /* System header to define __stub macros and hopefully few prototypes,
10111 which can conflict with char gethostbyname (); below.
10112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10113 <limits.h> exists even on freestanding compilers. */
10116 # include <limits.h>
10118 # include <assert.h>
10121 #undef gethostbyname
10123 /* Override any gcc2 internal prototype to avoid an error. */
10128 /* We use char because int might match the return type of a gcc2
10129 builtin and then its argument prototype would still apply. */
10130 char gethostbyname ();
10131 /* The GNU C library defines this for functions which it implements
10132 to always fail with ENOSYS. Some functions are actually named
10133 something starting with __ and the normal name is an alias. */
10134 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10137 char (*f) () = gethostbyname;
10146 return f != gethostbyname;
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>conftest.er1
10155 grep -v '^ *+' conftest.er1 >conftest.err
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag"
10161 || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_func_gethostbyname=yes
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_cv_func_gethostbyname=no
10180 rm -f conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10184 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10186 if test $ac_cv_func_gethostbyname = no; then
10187 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10188 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10189 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 ac_check_lib_save_LIBS=$LIBS
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10201 /* Override any gcc2 internal prototype to avoid an error. */
10205 /* We use char because int might match the return type of a gcc2
10206 builtin and then its argument prototype would still apply. */
10207 char gethostbyname ();
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag"
10226 || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_lib_nsl_gethostbyname=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_lib_nsl_gethostbyname=no
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10249 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10250 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10251 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10255 if test $ac_cv_lib_nsl_gethostbyname = no; then
10256 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10257 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10258 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 ac_check_lib_save_LIBS=$LIBS
10263 cat >conftest.$ac_ext <<_ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10270 /* Override any gcc2 internal prototype to avoid an error. */
10274 /* We use char because int might match the return type of a gcc2
10275 builtin and then its argument prototype would still apply. */
10276 char gethostbyname ();
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>conftest.er1
10289 grep -v '^ *+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_lib_bsd_gethostbyname=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_bsd_gethostbyname=no
10314 rm -f conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10327 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10328 # socket/setsockopt and other routines are undefined under SCO ODT
10329 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10330 # on later versions), says Simon Leinen: it contains gethostby*
10331 # variants that don't use the name server (or something). -lsocket
10332 # must be given before -lnsl if both are needed. We assume that
10333 # if connect needs -lnsl, so does gethostbyname.
10334 echo "$as_me:$LINENO: checking for connect" >&5
10335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10336 if test "${ac_cv_func_connect+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.$ac_ext <<_ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10347 #define connect innocuous_connect
10349 /* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char connect (); below.
10351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10352 <limits.h> exists even on freestanding compilers. */
10355 # include <limits.h>
10357 # include <assert.h>
10362 /* Override any gcc2 internal prototype to avoid an error. */
10367 /* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10370 /* The GNU C library defines this for functions which it implements
10371 to always fail with ENOSYS. Some functions are actually named
10372 something starting with __ and the normal name is an alias. */
10373 #if defined (__stub_connect) || defined (__stub___connect)
10376 char (*f) () = connect;
10385 return f != connect;
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_func_connect=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_func_connect=no
10419 rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10423 echo "${ECHO_T}$ac_cv_func_connect" >&6
10425 if test $ac_cv_func_connect = no; then
10426 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10427 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10428 if test "${ac_cv_lib_socket_connect+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any gcc2 internal prototype to avoid an error. */
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag"
10465 || test ! -s conftest.err'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; } &&
10471 { ac_try='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_lib_socket_connect=yes
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_cv_lib_socket_connect=no
10484 rm -f conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10489 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10490 if test $ac_cv_lib_socket_connect = yes; then
10491 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10496 # Guillermo Gomez says -lposix is necessary on A/UX.
10497 echo "$as_me:$LINENO: checking for remove" >&5
10498 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10499 if test "${ac_cv_func_remove+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10510 #define remove innocuous_remove
10512 /* System header to define __stub macros and hopefully few prototypes,
10513 which can conflict with char remove (); below.
10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515 <limits.h> exists even on freestanding compilers. */
10518 # include <limits.h>
10520 # include <assert.h>
10525 /* Override any gcc2 internal prototype to avoid an error. */
10530 /* We use char because int might match the return type of a gcc2
10531 builtin and then its argument prototype would still apply. */
10533 /* The GNU C library defines this for functions which it implements
10534 to always fail with ENOSYS. Some functions are actually named
10535 something starting with __ and the normal name is an alias. */
10536 #if defined (__stub_remove) || defined (__stub___remove)
10539 char (*f) () = remove;
10548 return f != remove;
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>conftest.er1
10557 grep -v '^ *+' conftest.er1 >conftest.err
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try='test -z "$ac_c_werror_flag"
10563 || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_func_remove=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_func_remove=no
10582 rm -f conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10585 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10586 echo "${ECHO_T}$ac_cv_func_remove" >&6
10588 if test $ac_cv_func_remove = no; then
10589 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10590 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10591 if test "${ac_cv_lib_posix_remove+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lposix $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10603 /* Override any gcc2 internal prototype to avoid an error. */
10607 /* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_lib_posix_remove=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_lib_posix_remove=no
10647 rm -f conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10652 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10653 if test $ac_cv_lib_posix_remove = yes; then
10654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10659 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10660 echo "$as_me:$LINENO: checking for shmat" >&5
10661 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10662 if test "${ac_cv_func_shmat+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673 #define shmat innocuous_shmat
10675 /* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char shmat (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
10681 # include <limits.h>
10683 # include <assert.h>
10688 /* Override any gcc2 internal prototype to avoid an error. */
10693 /* We use char because int might match the return type of a gcc2
10694 builtin and then its argument prototype would still apply. */
10696 /* The GNU C library defines this for functions which it implements
10697 to always fail with ENOSYS. Some functions are actually named
10698 something starting with __ and the normal name is an alias. */
10699 #if defined (__stub_shmat) || defined (__stub___shmat)
10702 char (*f) () = shmat;
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10718 (eval $ac_link) 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest$ac_exeext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_func_shmat=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_cv_func_shmat=no
10745 rm -f conftest.err conftest.$ac_objext \
10746 conftest$ac_exeext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10749 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10751 if test $ac_cv_func_shmat = no; then
10752 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10753 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10754 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 ac_check_lib_save_LIBS=$LIBS
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10766 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_lib_ipc_shmat=yes
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_lib_ipc_shmat=no
10810 rm -f conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10815 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10816 if test $ac_cv_lib_ipc_shmat = yes; then
10817 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10823 # Check for libraries that X11R6 Xt/Xaw programs need.
10824 ac_save_LDFLAGS=$LDFLAGS
10825 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10826 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10827 # check for ICE first), but we must link in the order -lSM -lICE or
10828 # we get undefined symbols. So assume we have SM if we have ICE.
10829 # These have to be linked with before -lX11, unlike the other
10830 # libraries we check for below, so use a different variable.
10831 # John Interrante, Karl Berry
10832 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10833 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10834 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 /* Override any gcc2 internal prototype to avoid an error. */
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10852 char IceConnectionNumber ();
10856 IceConnectionNumber ();
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863 (eval $ac_link) 2>conftest.er1
10865 grep -v '^ *+' conftest.er1 >conftest.err
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag"
10871 || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_ICE_IceConnectionNumber=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_cv_lib_ICE_IceConnectionNumber=no
10890 rm -f conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10895 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10896 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10897 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10900 LDFLAGS=$ac_save_LDFLAGS
10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10964 echo "$as_me:$LINENO: checking for $ac_header" >&5
10965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10972 # Is the header compilable?
10973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 $ac_includes_default
10982 #include <$ac_header>
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_header_compiler=yes
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_header_compiler=no
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11015 echo "${ECHO_T}$ac_header_compiler" >&6
11017 # Is the header present?
11018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <$ac_header>
11028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11031 grep -v '^ *+' conftest.er1 >conftest.err
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } >/dev/null; then
11036 if test -s conftest.err; then
11037 ac_cpp_err=$ac_c_preproc_warn_flag
11038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11045 if test -z "$ac_cpp_err"; then
11046 ac_header_preproc=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_preproc=no
11053 rm -f conftest.err conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11055 echo "${ECHO_T}$ac_header_preproc" >&6
11057 # So? What about this header?
11058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11064 ac_header_preproc=yes
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11081 ## ------------------------------------------ ##
11082 ## Report this to the AC_PACKAGE_NAME lists. ##
11083 ## ------------------------------------------ ##
11086 sed "s/^/$as_me: WARNING: /" >&2
11089 echo "$as_me:$LINENO: checking for $ac_header" >&5
11090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 eval "$as_ac_Header=\$ac_header_preproc"
11096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11109 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11111 if test "${ac_cv_header_stdc+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <stdlib.h>
11121 #include <stdarg.h>
11122 #include <string.h>
11133 rm -f conftest.$ac_objext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11135 (eval $ac_compile) 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_header_stdc=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_cv_header_stdc=no
11162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11164 if test $ac_cv_header_stdc = yes; then
11165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11166 cat >conftest.$ac_ext <<_ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11172 #include <string.h>
11175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11176 $EGREP "memchr" >/dev/null 2>&1; then
11179 ac_cv_header_stdc=no
11185 if test $ac_cv_header_stdc = yes; then
11186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 #include <stdlib.h>
11196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11197 $EGREP "free" >/dev/null 2>&1; then
11200 ac_cv_header_stdc=no
11206 if test $ac_cv_header_stdc = yes; then
11207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11208 if test "$cross_compiling" = yes; then
11211 cat >conftest.$ac_ext <<_ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11218 #if ((' ' & 0x0FF) == 0x020)
11219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11222 # define ISLOWER(c) \
11223 (('a' <= (c) && (c) <= 'i') \
11224 || ('j' <= (c) && (c) <= 'r') \
11225 || ('s' <= (c) && (c) <= 'z'))
11226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11234 for (i = 0; i < 256; i++)
11235 if (XOR (islower (i), ISLOWER (i))
11236 || toupper (i) != TOUPPER (i))
11241 rm -f conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11254 echo "$as_me: program exited with status $ac_status" >&5
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ( exit $ac_status )
11259 ac_cv_header_stdc=no
11261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11265 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11266 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11267 if test $ac_cv_header_stdc = yes; then
11269 cat >>confdefs.h <<\_ACEOF
11270 #define STDC_HEADERS 1
11275 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11276 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11277 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 #include <sys/types.h>
11290 return makedev(0, 0);
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297 (eval $ac_link) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest$ac_exeext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_header_sys_types_h_makedev=yes
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_cv_header_sys_types_h_makedev=no
11324 rm -f conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11328 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11329 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11331 if test $ac_cv_header_sys_types_h_makedev = no; then
11332 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11333 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11334 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11335 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11339 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11341 # Is the header compilable?
11342 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11343 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11344 cat >conftest.$ac_ext <<_ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11351 #include <sys/mkdev.h>
11353 rm -f conftest.$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355 (eval $ac_compile) 2>conftest.er1
11357 grep -v '^ *+' conftest.er1 >conftest.err
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_c_werror_flag"
11363 || test ! -s conftest.err'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_header_compiler=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_header_compiler=no
11382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6
11386 # Is the header present?
11387 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11388 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11389 cat >conftest.$ac_ext <<_ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <sys/mkdev.h>
11397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11414 if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_header_preproc=no
11422 rm -f conftest.err conftest.$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 echo "${ECHO_T}$ac_header_preproc" >&6
11426 # So? What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11430 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11432 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11433 ac_header_preproc=yes
11436 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11437 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11439 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11441 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11443 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11445 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11447 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11450 ## ------------------------------------------ ##
11451 ## Report this to the AC_PACKAGE_NAME lists. ##
11452 ## ------------------------------------------ ##
11455 sed "s/^/$as_me: WARNING: /" >&2
11458 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11459 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11460 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11465 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11466 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11469 if test $ac_cv_header_sys_mkdev_h = yes; then
11471 cat >>confdefs.h <<\_ACEOF
11472 #define MAJOR_IN_MKDEV 1
11479 if test $ac_cv_header_sys_mkdev_h = no; then
11480 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11481 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11482 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11483 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11487 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11489 # Is the header compilable?
11490 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11491 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11499 #include <sys/sysmacros.h>
11501 rm -f conftest.$ac_objext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11503 (eval $ac_compile) 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -z "$ac_c_werror_flag"
11511 || test ! -s conftest.err'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 ac_header_compiler=yes
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_header_compiler=no
11530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 echo "${ECHO_T}$ac_header_compiler" >&6
11534 # Is the header present?
11535 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11536 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <sys/sysmacros.h>
11545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11548 grep -v '^ *+' conftest.er1 >conftest.err
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } >/dev/null; then
11553 if test -s conftest.err; then
11554 ac_cpp_err=$ac_c_preproc_warn_flag
11555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11562 if test -z "$ac_cpp_err"; then
11563 ac_header_preproc=yes
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 ac_header_preproc=no
11570 rm -f conftest.err conftest.$ac_ext
11571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6
11574 # So? What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11577 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11581 ac_header_preproc=yes
11584 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11598 ## ------------------------------------------ ##
11599 ## Report this to the AC_PACKAGE_NAME lists. ##
11600 ## ------------------------------------------ ##
11603 sed "s/^/$as_me: WARNING: /" >&2
11606 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11607 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11608 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11614 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11617 if test $ac_cv_header_sys_sysmacros_h = yes; then
11619 cat >>confdefs.h <<\_ACEOF
11620 #define MAJOR_IN_SYSMACROS 1
11634 ac_header_dirent=no
11635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11636 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11637 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11638 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include <sys/types.h>
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 eval "$as_ac_Header=yes"
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 eval "$as_ac_Header=no"
11689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11698 ac_header_dirent=$ac_hdr; break
11702 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11703 if test $ac_header_dirent = dirent.h; then
11704 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11706 if test "${ac_cv_search_opendir+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 ac_func_search_save_LIBS=$LIBS
11710 ac_cv_search_opendir=no
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11718 /* Override any gcc2 internal prototype to avoid an error. */
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735 (eval $ac_link) 2>conftest.er1
11737 grep -v '^ *+' conftest.er1 >conftest.err
11739 cat conftest.err >&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -z "$ac_c_werror_flag"
11743 || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest$ac_exeext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_cv_search_opendir="none required"
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11761 rm -f conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 if test "$ac_cv_search_opendir" = no; then
11764 for ac_lib in dir; do
11765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11773 /* Override any gcc2 internal prototype to avoid an error. */
11777 /* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>conftest.er1
11792 grep -v '^ *+' conftest.er1 >conftest.err
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest$ac_exeext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 ac_cv_search_opendir="-l$ac_lib"
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11817 rm -f conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11821 LIBS=$ac_func_search_save_LIBS
11823 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11824 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11825 if test "$ac_cv_search_opendir" != no; then
11826 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11831 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11833 if test "${ac_cv_search_opendir+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 ac_func_search_save_LIBS=$LIBS
11837 ac_cv_search_opendir=no
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11845 /* Override any gcc2 internal prototype to avoid an error. */
11849 /* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862 (eval $ac_link) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_search_opendir="none required"
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11888 rm -f conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 if test "$ac_cv_search_opendir" = no; then
11891 for ac_lib in x; do
11892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11900 /* Override any gcc2 internal prototype to avoid an error. */
11904 /* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag"
11925 || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_search_opendir="-l$ac_lib"
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11944 rm -f conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11948 LIBS=$ac_func_search_save_LIBS
11950 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11951 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11952 if test "$ac_cv_search_opendir" != no; then
11953 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11959 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11960 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11961 if test "${ac_cv_header_stat_broken+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 #include <sys/types.h>
11971 #include <sys/stat.h>
11973 #if defined(S_ISBLK) && defined(S_IFDIR)
11974 # if S_ISBLK (S_IFDIR)
11979 #if defined(S_ISBLK) && defined(S_IFCHR)
11980 # if S_ISBLK (S_IFCHR)
11985 #if defined(S_ISLNK) && defined(S_IFREG)
11986 # if S_ISLNK (S_IFREG)
11991 #if defined(S_ISSOCK) && defined(S_IFREG)
11992 # if S_ISSOCK (S_IFREG)
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999 $EGREP "You lose" >/dev/null 2>&1; then
12000 ac_cv_header_stat_broken=yes
12002 ac_cv_header_stat_broken=no
12007 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12009 if test $ac_cv_header_stat_broken = yes; then
12011 cat >>confdefs.h <<\_ACEOF
12012 #define STAT_MACROS_BROKEN 1
12017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 #include <sys/types.h>
12029 #include <sys/wait.h>
12030 #ifndef WEXITSTATUS
12031 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12034 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12042 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_cv_header_sys_wait_h=yes
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_cv_header_sys_wait_h=no
12076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12079 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12080 if test $ac_cv_header_sys_wait_h = yes; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_SYS_WAIT_H 1
12088 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12089 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12090 if test "${ac_cv_header_time+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <sys/types.h>
12100 #include <sys/time.h>
12106 if ((struct tm *) 0)
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_header_time=yes
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_header_time=no
12141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12144 echo "${ECHO_T}$ac_cv_header_time" >&6
12145 if test $ac_cv_header_time = yes; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define TIME_WITH_SYS_TIME 1
12154 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12155 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12156 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 $ac_includes_default
12169 static struct stat ac_aggr;
12170 if (ac_aggr.st_blksize)
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest.$ac_objext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_member_struct_stat_st_blksize=yes
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 cat >conftest.$ac_ext <<_ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 $ac_includes_default
12213 static struct stat ac_aggr;
12214 if (sizeof ac_aggr.st_blksize)
12220 rm -f conftest.$ac_objext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222 (eval $ac_compile) 2>conftest.er1
12224 grep -v '^ *+' conftest.er1 >conftest.err
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_c_werror_flag"
12230 || test ! -s conftest.err'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242 ac_cv_member_struct_stat_st_blksize=yes
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 ac_cv_member_struct_stat_st_blksize=no
12249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12253 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12255 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12262 cat >>confdefs.h <<\_ACEOF
12263 #define HAVE_ST_BLKSIZE 1
12269 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12270 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12271 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12284 static struct stat ac_aggr;
12285 if (ac_aggr.st_blocks)
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>conftest.er1
12295 grep -v '^ *+' conftest.er1 >conftest.err
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag"
12301 || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest.$ac_objext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_member_struct_stat_st_blocks=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 $ac_includes_default
12328 static struct stat ac_aggr;
12329 if (sizeof ac_aggr.st_blocks)
12335 rm -f conftest.$ac_objext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337 (eval $ac_compile) 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest.$ac_objext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_member_struct_stat_st_blocks=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_member_struct_stat_st_blocks=no
12364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12369 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12370 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12377 cat >>confdefs.h <<\_ACEOF
12378 #define HAVE_ST_BLOCKS 1
12383 "fileblocks.$ac_objext" | \
12384 *" fileblocks.$ac_objext" | \
12385 "fileblocks.$ac_objext "* | \
12386 *" fileblocks.$ac_objext "* ) ;;
12387 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12393 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12395 if test "${ac_cv_struct_tm+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12404 #include <sys/types.h>
12410 struct tm *tp; tp->tm_sec;
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_struct_tm=time.h
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_struct_tm=sys/time.h
12444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12447 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12448 if test $ac_cv_struct_tm = sys/time.h; then
12450 cat >>confdefs.h <<\_ACEOF
12451 #define TM_IN_SYS_TIME 1
12456 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12457 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12458 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 cat >conftest.$ac_ext <<_ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 #include <sys/types.h>
12468 #include <$ac_cv_struct_tm>
12474 static struct tm ac_aggr;
12475 if (ac_aggr.tm_zone)
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_member_struct_tm_tm_zone=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #include <sys/types.h>
12515 #include <$ac_cv_struct_tm>
12521 static struct tm ac_aggr;
12522 if (sizeof ac_aggr.tm_zone)
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>conftest.er1
12532 grep -v '^ *+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_member_struct_tm_tm_zone=yes
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_cv_member_struct_tm_tm_zone=no
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12562 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12563 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_STRUCT_TM_TM_ZONE 1
12572 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_TM_ZONE 1
12579 echo "$as_me:$LINENO: checking for tzname" >&5
12580 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12581 if test "${ac_cv_var_tzname+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 #ifndef tzname /* For SGI. */
12592 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag"
12613 || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_var_tzname=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_cv_var_tzname=no
12632 rm -f conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12636 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12637 if test $ac_cv_var_tzname = yes; then
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_TZNAME 1
12647 echo "$as_me:$LINENO: checking for utime.h" >&5
12648 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12649 if test "${ba_cv_header_utime_h+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12659 #include <sys/types.h>
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ba_cv_header_utime_h=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ba_cv_header_utime_h=no
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12700 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12701 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12702 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12703 #define HAVE_UTIME_H 1
12707 echo "$as_me:$LINENO: checking for socklen_t" >&5
12708 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12709 if test "${ba_cv_header_socklen_t+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12719 #include <sys/types.h>
12720 #include <sys/socket.h>
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ba_cv_header_socklen_t=yes
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ba_cv_header_socklen_t=no
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12761 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12762 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12763 #define HAVE_SOCKLEN_T 1
12767 echo "$as_me:$LINENO: checking for bigendian" >&5
12768 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12769 if test "${ba_cv_bigendian+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 if test "$cross_compiling" = yes; then
12775 cat >conftest.$ac_ext <<_ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12783 rm -f conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 ba_cv_bigendian=yes
12796 echo "$as_me: program exited with status $ac_status" >&5
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ( exit $ac_status )
12803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12806 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12807 echo "${ECHO_T}$ba_cv_bigendian" >&6
12808 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12809 #define HAVE_BIGENDIAN 1
12814 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12815 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12816 if test "${ac_cv_c_const+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 cat >conftest.$ac_ext <<_ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12829 /* FIXME: Include the comments suggested by Paul. */
12830 #ifndef __cplusplus
12831 /* Ultrix mips cc rejects this. */
12832 typedef int charset[2];
12834 /* SunOS 4.1.1 cc rejects this. */
12835 char const *const *ccp;
12837 /* NEC SVR4.0.2 mips cc rejects this. */
12838 struct point {int x, y;};
12839 static struct point const zero = {0,0};
12840 /* AIX XL C 1.02.0.0 rejects this.
12841 It does not let you subtract one const X* pointer from another in
12842 an arm of an if-expression whose if-part is not a constant
12844 const char *g = "string";
12845 ccp = &g + (g ? g-g : 0);
12846 /* HPUX 7.0 cc rejects these. */
12849 ccp = (char const *const *) p;
12850 { /* SCO 3.2v4 cc rejects this. */
12852 char const *s = 0 ? (char *) 0 : (char const *) 0;
12856 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12857 int x[] = {25, 17};
12858 const int *foo = &x[0];
12861 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12862 typedef const int *iptr;
12866 { /* AIX XL C 1.02.0.0 rejects this saying
12867 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12868 struct s { int j; const int *ap[3]; };
12869 struct s *b; b->j = 5;
12871 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12872 const int foo = 10;
12880 rm -f conftest.$ac_objext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12882 (eval $ac_compile) 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -z "$ac_c_werror_flag"
12890 || test ! -s conftest.err'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest.$ac_objext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12911 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12912 echo "${ECHO_T}$ac_cv_c_const" >&6
12913 if test $ac_cv_c_const = no; then
12915 cat >>confdefs.h <<\_ACEOF
12923 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12924 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12926 # The order of these tests is important.
12927 cat >conftest.$ac_ext <<_ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 #include <sys/statvfs.h>
12934 #include <sys/fstyp.h>
12936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } >/dev/null; then
12944 if test -s conftest.err; then
12945 ac_cpp_err=$ac_c_preproc_warn_flag
12946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12953 if test -z "$ac_cpp_err"; then
12954 cat >>confdefs.h <<\_ACEOF
12955 #define FSTYPE_STATVFS 1
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12964 rm -f conftest.err conftest.$ac_ext
12965 if test $fstype = no; then
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 #include <sys/statfs.h>
12973 #include <sys/fstyp.h>
12975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12978 grep -v '^ *+' conftest.er1 >conftest.err
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_c_preproc_warn_flag
12985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12992 if test -z "$ac_cpp_err"; then
12993 cat >>confdefs.h <<\_ACEOF
12994 #define FSTYPE_USG_STATFS 1
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13003 rm -f conftest.err conftest.$ac_ext
13005 if test $fstype = no; then
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 #include <sys/statfs.h>
13013 #include <sys/vmount.h>
13015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13018 grep -v '^ *+' conftest.er1 >conftest.err
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } >/dev/null; then
13023 if test -s conftest.err; then
13024 ac_cpp_err=$ac_c_preproc_warn_flag
13025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13032 if test -z "$ac_cpp_err"; then
13033 cat >>confdefs.h <<\_ACEOF
13034 #define FSTYPE_AIX_STATFS 1
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13043 rm -f conftest.err conftest.$ac_ext
13045 if test $fstype = no; then
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <mntent.h>
13054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev/null; then
13062 if test -s conftest.err; then
13063 ac_cpp_err=$ac_c_preproc_warn_flag
13064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13071 if test -z "$ac_cpp_err"; then
13072 cat >>confdefs.h <<\_ACEOF
13073 #define FSTYPE_MNTENT 1
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13082 rm -f conftest.err conftest.$ac_ext
13084 if test $fstype = no; then
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <sys/mount.h>
13094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13095 $EGREP "f_type;" >/dev/null 2>&1; then
13096 cat >>confdefs.h <<\_ACEOF
13097 #define FSTYPE_STATFS 1
13104 if test $fstype = no; then
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 #include <sys/mount.h>
13112 #include <sys/fs_types.h>
13114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13117 grep -v '^ *+' conftest.er1 >conftest.err
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } >/dev/null; then
13122 if test -s conftest.err; then
13123 ac_cpp_err=$ac_c_preproc_warn_flag
13124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13131 if test -z "$ac_cpp_err"; then
13132 cat >>confdefs.h <<\_ACEOF
13133 #define FSTYPE_GETMNT 1
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13142 rm -f conftest.err conftest.$ac_ext
13144 echo "$as_me:$LINENO: result: $fstype" >&5
13145 echo "${ECHO_T}$fstype" >&6
13147 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13148 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13149 if test "${ac_cv_type_signal+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 #include <sys/types.h>
13159 #include <signal.h>
13164 extern "C" void (*signal (int, void (*)(int)))(int);
13166 void (*signal ()) ();
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179 (eval $ac_compile) 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
13186 { ac_try='test -z "$ac_c_werror_flag"
13187 || test ! -s conftest.err'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest.$ac_objext'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13199 ac_cv_type_signal=void
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 ac_cv_type_signal=int
13206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13208 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13209 echo "${ECHO_T}$ac_cv_type_signal" >&6
13211 cat >>confdefs.h <<_ACEOF
13212 #define RETSIGTYPE $ac_cv_type_signal
13217 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13218 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13219 if test "${bash_cv_signal_vintage+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 #include <signal.h>
13235 struct sigaction sa;
13236 sigemptyset(&ss); sigsuspend(&ss);
13237 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13238 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13246 (eval $ac_link) 2>conftest.er1
13248 grep -v '^ *+' conftest.er1 >conftest.err
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try='test -z "$ac_c_werror_flag"
13254 || test ! -s conftest.err'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; } &&
13260 { ac_try='test -s conftest$ac_exeext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 bash_cv_signal_vintage=posix
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 #include <signal.h>
13283 int mask = sigmask(SIGINT);
13284 sigsetmask(mask); sigblock(mask); sigpause(mask);
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13292 (eval $ac_link) 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -z "$ac_c_werror_flag"
13300 || test ! -s conftest.err'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest$ac_exeext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 bash_cv_signal_vintage=4.2bsd
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13325 #include <signal.h>
13326 RETSIGTYPE foo() { }
13331 int mask = sigmask(SIGINT);
13332 sigset(SIGINT, foo); sigrelse(SIGINT);
13333 sighold(SIGINT); sigpause(SIGINT);
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_c_werror_flag"
13349 || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 bash_cv_signal_vintage=svr3
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 bash_cv_signal_vintage=v7
13369 rm -f conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13373 rm -f conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13377 rm -f conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13382 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13383 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13384 if test "$bash_cv_signal_vintage" = posix; then
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_POSIX_SIGNALS 1
13389 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_BSD_SIGNALS 1
13394 elif test "$bash_cv_signal_vintage" = svr3; then
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_USG_SIGHOLD 1
13401 echo "$as_me:$LINENO: checking for mode_t" >&5
13402 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13403 if test "${ac_cv_type_mode_t+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 $ac_includes_default
13418 if (sizeof (mode_t))
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426 (eval $ac_compile) 2>conftest.er1
13428 grep -v '^ *+' conftest.er1 >conftest.err
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } &&
13433 { ac_try='test -z "$ac_c_werror_flag"
13434 || test ! -s conftest.err'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; } &&
13440 { ac_try='test -s conftest.$ac_objext'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_type_mode_t=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_cv_type_mode_t=no
13453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13455 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13456 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13457 if test $ac_cv_type_mode_t = yes; then
13461 cat >>confdefs.h <<_ACEOF
13467 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13468 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13469 if test "${ac_cv_type_uid_t+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 #include <sys/types.h>
13481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13482 $EGREP "uid_t" >/dev/null 2>&1; then
13483 ac_cv_type_uid_t=yes
13485 ac_cv_type_uid_t=no
13490 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13491 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13492 if test $ac_cv_type_uid_t = no; then
13494 cat >>confdefs.h <<\_ACEOF
13499 cat >>confdefs.h <<\_ACEOF
13505 echo "$as_me:$LINENO: checking for size_t" >&5
13506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13507 if test "${ac_cv_type_size_t+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 $ac_includes_default
13522 if (sizeof (size_t))
13528 rm -f conftest.$ac_objext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530 (eval $ac_compile) 2>conftest.er1
13532 grep -v '^ *+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -z "$ac_c_werror_flag"
13538 || test ! -s conftest.err'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest.$ac_objext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_cv_type_size_t=yes
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_cv_type_size_t=no
13557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13559 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13560 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13561 if test $ac_cv_type_size_t = yes; then
13565 cat >>confdefs.h <<_ACEOF
13566 #define size_t unsigned
13571 echo "$as_me:$LINENO: checking for pid_t" >&5
13572 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13573 if test "${ac_cv_type_pid_t+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 $ac_includes_default
13588 if (sizeof (pid_t))
13594 rm -f conftest.$ac_objext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596 (eval $ac_compile) 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_type_pid_t=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_type_pid_t=no
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13626 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13627 if test $ac_cv_type_pid_t = yes; then
13631 cat >>confdefs.h <<_ACEOF
13637 echo "$as_me:$LINENO: checking for off_t" >&5
13638 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13639 if test "${ac_cv_type_off_t+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 $ac_includes_default
13654 if (sizeof (off_t))
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>conftest.er1
13664 grep -v '^ *+' conftest.er1 >conftest.err
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest.$ac_objext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 ac_cv_type_off_t=yes
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_cv_type_off_t=no
13689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13692 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13693 if test $ac_cv_type_off_t = yes; then
13697 cat >>confdefs.h <<_ACEOF
13703 echo "$as_me:$LINENO: checking for ino_t" >&5
13704 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13705 if test "${ac_cv_type_ino_t+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 $ac_includes_default
13720 if (sizeof (ino_t))
13726 rm -f conftest.$ac_objext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_type_ino_t=yes
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_cv_type_ino_t=no
13755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13758 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13759 if test $ac_cv_type_ino_t = yes; then
13763 cat >>confdefs.h <<_ACEOF
13764 #define ino_t unsigned long
13769 echo "$as_me:$LINENO: checking for dev_t" >&5
13770 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13771 if test "${ac_cv_type_dev_t+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 cat >conftest.$ac_ext <<_ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 $ac_includes_default
13786 if (sizeof (dev_t))
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_type_dev_t=yes
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_cv_type_dev_t=no
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13823 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13824 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13825 if test $ac_cv_type_dev_t = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830 #define dev_t unsigned long
13835 echo "$as_me:$LINENO: checking for daddr_t" >&5
13836 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13837 if test "${ac_cv_type_daddr_t+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13852 if (sizeof (daddr_t))
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860 (eval $ac_compile) 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_cv_type_daddr_t=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_cv_type_daddr_t=no
13887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13889 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13890 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13891 if test $ac_cv_type_daddr_t = yes; then
13895 cat >>confdefs.h <<_ACEOF
13896 #define daddr_t long
13901 echo "$as_me:$LINENO: checking for major_t" >&5
13902 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13903 if test "${ac_cv_type_major_t+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13918 if (sizeof (major_t))
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_type_major_t=yes
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_cv_type_major_t=no
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13956 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13957 if test $ac_cv_type_major_t = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962 #define major_t int
13967 echo "$as_me:$LINENO: checking for minor_t" >&5
13968 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13969 if test "${ac_cv_type_minor_t+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 $ac_includes_default
13984 if (sizeof (minor_t))
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13994 grep -v '^ *+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag"
14000 || test ! -s conftest.err'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_cv_type_minor_t=yes
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 ac_cv_type_minor_t=no
14019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14021 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14022 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14023 if test $ac_cv_type_minor_t = yes; then
14027 cat >>confdefs.h <<_ACEOF
14028 #define minor_t int
14033 echo "$as_me:$LINENO: checking for ssize_t" >&5
14034 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14035 if test "${ac_cv_type_ssize_t+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 cat >conftest.$ac_ext <<_ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14044 $ac_includes_default
14050 if (sizeof (ssize_t))
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_type_ssize_t=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_type_ssize_t=no
14085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14087 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14088 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14089 if test $ac_cv_type_ssize_t = yes; then
14093 cat >>confdefs.h <<_ACEOF
14094 #define ssize_t int
14099 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14100 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14101 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14114 static struct stat ac_aggr;
14115 if (ac_aggr.st_blocks)
14121 rm -f conftest.$ac_objext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>conftest.er1
14125 grep -v '^ *+' conftest.er1 >conftest.err
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -z "$ac_c_werror_flag"
14131 || test ! -s conftest.err'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } &&
14137 { ac_try='test -s conftest.$ac_objext'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14143 ac_cv_member_struct_stat_st_blocks=yes
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 cat >conftest.$ac_ext <<_ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14158 static struct stat ac_aggr;
14159 if (sizeof ac_aggr.st_blocks)
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>conftest.er1
14169 grep -v '^ *+' conftest.er1 >conftest.err
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag"
14175 || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_member_struct_stat_st_blocks=yes
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_member_struct_stat_st_blocks=no
14194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14199 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14200 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14202 cat >>confdefs.h <<_ACEOF
14203 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14207 cat >>confdefs.h <<\_ACEOF
14208 #define HAVE_ST_BLOCKS 1
14213 "fileblocks.$ac_objext" | \
14214 *" fileblocks.$ac_objext" | \
14215 "fileblocks.$ac_objext "* | \
14216 *" fileblocks.$ac_objext "* ) ;;
14217 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14224 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14225 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14226 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14239 static struct stat ac_aggr;
14240 if (ac_aggr.st_rdev)
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -z "$ac_c_werror_flag"
14256 || test ! -s conftest.err'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; } &&
14262 { ac_try='test -s conftest.$ac_objext'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_cv_member_struct_stat_st_rdev=yes
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 cat >conftest.$ac_ext <<_ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 $ac_includes_default
14283 static struct stat ac_aggr;
14284 if (sizeof ac_aggr.st_rdev)
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292 (eval $ac_compile) 2>conftest.er1
14294 grep -v '^ *+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_c_werror_flag"
14300 || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest.$ac_objext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_cv_member_struct_stat_st_rdev=yes
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_cv_member_struct_stat_st_rdev=no
14319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14323 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14325 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_STRUCT_STAT_ST_RDEV 1
14332 cat >>confdefs.h <<\_ACEOF
14333 #define HAVE_ST_RDEV 1
14339 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14340 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14341 if test "${ac_cv_struct_tm+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 #include <sys/types.h>
14356 struct tm *tp; tp->tm_sec;
14361 rm -f conftest.$ac_objext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363 (eval $ac_compile) 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 ac_cv_struct_tm=time.h
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_struct_tm=sys/time.h
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14393 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14394 if test $ac_cv_struct_tm = sys/time.h; then
14396 cat >>confdefs.h <<\_ACEOF
14397 #define TM_IN_SYS_TIME 1
14402 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14403 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14404 if test "${ac_cv_c_const+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14417 /* FIXME: Include the comments suggested by Paul. */
14418 #ifndef __cplusplus
14419 /* Ultrix mips cc rejects this. */
14420 typedef int charset[2];
14422 /* SunOS 4.1.1 cc rejects this. */
14423 char const *const *ccp;
14425 /* NEC SVR4.0.2 mips cc rejects this. */
14426 struct point {int x, y;};
14427 static struct point const zero = {0,0};
14428 /* AIX XL C 1.02.0.0 rejects this.
14429 It does not let you subtract one const X* pointer from another in
14430 an arm of an if-expression whose if-part is not a constant
14432 const char *g = "string";
14433 ccp = &g + (g ? g-g : 0);
14434 /* HPUX 7.0 cc rejects these. */
14437 ccp = (char const *const *) p;
14438 { /* SCO 3.2v4 cc rejects this. */
14440 char const *s = 0 ? (char *) 0 : (char const *) 0;
14444 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14445 int x[] = {25, 17};
14446 const int *foo = &x[0];
14449 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14450 typedef const int *iptr;
14454 { /* AIX XL C 1.02.0.0 rejects this saying
14455 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14456 struct s { int j; const int *ap[3]; };
14457 struct s *b; b->j = 5;
14459 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14460 const int foo = 10;
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>conftest.er1
14472 grep -v '^ *+' conftest.er1 >conftest.err
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag"
14478 || test ! -s conftest.err'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } &&
14484 { ac_try='test -s conftest.$ac_objext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14499 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14500 echo "${ECHO_T}$ac_cv_c_const" >&6
14501 if test $ac_cv_c_const = no; then
14503 cat >>confdefs.h <<\_ACEOF
14511 echo "$as_me:$LINENO: checking for char" >&5
14512 echo $ECHO_N "checking for char... $ECHO_C" >&6
14513 if test "${ac_cv_type_char+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 $ac_includes_default
14534 rm -f conftest.$ac_objext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536 (eval $ac_compile) 2>conftest.er1
14538 grep -v '^ *+' conftest.er1 >conftest.err
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -z "$ac_c_werror_flag"
14544 || test ! -s conftest.err'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest.$ac_objext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_cv_type_char=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14565 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14566 echo "${ECHO_T}$ac_cv_type_char" >&6
14568 echo "$as_me:$LINENO: checking size of char" >&5
14569 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14570 if test "${ac_cv_sizeof_char+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 if test "$ac_cv_type_char" = yes; then
14574 # The cast to unsigned long works around a bug in the HP C Compiler
14575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14577 # This bug is HP SR number 8606223364.
14578 if test "$cross_compiling" = yes; then
14579 # Depending upon the size, compute the lo and hi bounds.
14580 cat >conftest.$ac_ext <<_ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 $ac_includes_default
14590 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599 (eval $ac_compile) 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag"
14607 || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14631 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>conftest.er1
14642 grep -v '^ *+' conftest.er1 >conftest.err
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag"
14648 || test ! -s conftest.err'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; } &&
14654 { ac_try='test -s conftest.$ac_objext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_hi=$ac_mid; break
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_lo=`expr $ac_mid + 1`
14666 if test $ac_lo -le $ac_mid; then
14670 ac_mid=`expr 2 '*' $ac_mid + 1`
14672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 $ac_includes_default
14688 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697 (eval $ac_compile) 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -z "$ac_c_werror_flag"
14705 || test ! -s conftest.err'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; } &&
14711 { ac_try='test -s conftest.$ac_objext'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14729 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738 (eval $ac_compile) 2>conftest.er1
14740 grep -v '^ *+' conftest.er1 >conftest.err
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -z "$ac_c_werror_flag"
14746 || test ! -s conftest.err'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 ac_lo=$ac_mid; break
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 ac_hi=`expr '(' $ac_mid ')' - 1`
14764 if test $ac_mid -le $ac_hi; then
14768 ac_mid=`expr 2 '*' $ac_mid`
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14781 # Binary search between lo and hi bounds.
14782 while test "x$ac_lo" != "x$ac_hi"; do
14783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14784 cat >conftest.$ac_ext <<_ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14794 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14801 rm -f conftest.$ac_objext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803 (eval $ac_compile) 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -z "$ac_c_werror_flag"
14811 || test ! -s conftest.err'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 ac_lo=`expr '(' $ac_mid ')' + 1`
14830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14833 ?*) ac_cv_sizeof_char=$ac_lo;;
14834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14835 See \`config.log' for more details." >&5
14836 echo "$as_me: error: cannot compute sizeof (char), 77
14837 See \`config.log' for more details." >&2;}
14838 { (exit 1); exit 1; }; } ;;
14841 if test "$cross_compiling" = yes; then
14842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14843 See \`config.log' for more details." >&5
14844 echo "$as_me: error: cannot run test program while cross compiling
14845 See \`config.log' for more details." >&2;}
14846 { (exit 1); exit 1; }; }
14848 cat >conftest.$ac_ext <<_ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 $ac_includes_default
14855 long longval () { return (long) (sizeof (char)); }
14856 unsigned long ulongval () { return (long) (sizeof (char)); }
14858 #include <stdlib.h>
14863 FILE *f = fopen ("conftest.val", "w");
14866 if (((long) (sizeof (char))) < 0)
14868 long i = longval ();
14869 if (i != ((long) (sizeof (char))))
14871 fprintf (f, "%ld\n", i);
14875 unsigned long i = ulongval ();
14876 if (i != ((long) (sizeof (char))))
14878 fprintf (f, "%lu\n", i);
14880 exit (ferror (f) || fclose (f) != 0);
14886 rm -f conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_sizeof_char=`cat conftest.val`
14899 echo "$as_me: program exited with status $ac_status" >&5
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ( exit $ac_status )
14904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14905 See \`config.log' for more details." >&5
14906 echo "$as_me: error: cannot compute sizeof (char), 77
14907 See \`config.log' for more details." >&2;}
14908 { (exit 1); exit 1; }; }
14910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14915 ac_cv_sizeof_char=0
14918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14919 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14920 cat >>confdefs.h <<_ACEOF
14921 #define SIZEOF_CHAR $ac_cv_sizeof_char
14925 echo "$as_me:$LINENO: checking for short int" >&5
14926 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14927 if test "${ac_cv_type_short_int+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 $ac_includes_default
14940 if ((short int *) 0)
14942 if (sizeof (short int))
14948 rm -f conftest.$ac_objext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14950 (eval $ac_compile) 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -z "$ac_c_werror_flag"
14958 || test ! -s conftest.err'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 ac_cv_type_short_int=yes
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 ac_cv_type_short_int=no
14977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14979 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14980 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14982 echo "$as_me:$LINENO: checking size of short int" >&5
14983 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14984 if test "${ac_cv_sizeof_short_int+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 if test "$ac_cv_type_short_int" = yes; then
14988 # The cast to unsigned long works around a bug in the HP C Compiler
14989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14991 # This bug is HP SR number 8606223364.
14992 if test "$cross_compiling" = yes; then
14993 # Depending upon the size, compute the lo and hi bounds.
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 $ac_includes_default
15004 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag"
15021 || test ! -s conftest.err'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 $ac_includes_default
15045 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15052 rm -f conftest.$ac_objext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054 (eval $ac_compile) 2>conftest.er1
15056 grep -v '^ *+' conftest.er1 >conftest.err
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_c_werror_flag"
15062 || test ! -s conftest.err'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest.$ac_objext'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 ac_hi=$ac_mid; break
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 ac_lo=`expr $ac_mid + 1`
15080 if test $ac_lo -le $ac_mid; then
15084 ac_mid=`expr 2 '*' $ac_mid + 1`
15086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15102 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag"
15119 || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 $ac_includes_default
15143 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152 (eval $ac_compile) 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag"
15160 || test ! -s conftest.err'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_lo=$ac_mid; break
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_hi=`expr '(' $ac_mid ')' - 1`
15178 if test $ac_mid -le $ac_hi; then
15182 ac_mid=`expr 2 '*' $ac_mid`
15184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195 # Binary search between lo and hi bounds.
15196 while test "x$ac_lo" != "x$ac_hi"; do
15197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15198 cat >conftest.$ac_ext <<_ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 $ac_includes_default
15208 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_lo=`expr '(' $ac_mid ')' + 1`
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15247 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15248 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15249 See \`config.log' for more details." >&5
15250 echo "$as_me: error: cannot compute sizeof (short int), 77
15251 See \`config.log' for more details." >&2;}
15252 { (exit 1); exit 1; }; } ;;
15255 if test "$cross_compiling" = yes; then
15256 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15257 See \`config.log' for more details." >&5
15258 echo "$as_me: error: cannot run test program while cross compiling
15259 See \`config.log' for more details." >&2;}
15260 { (exit 1); exit 1; }; }
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 $ac_includes_default
15269 long longval () { return (long) (sizeof (short int)); }
15270 unsigned long ulongval () { return (long) (sizeof (short int)); }
15272 #include <stdlib.h>
15277 FILE *f = fopen ("conftest.val", "w");
15280 if (((long) (sizeof (short int))) < 0)
15282 long i = longval ();
15283 if (i != ((long) (sizeof (short int))))
15285 fprintf (f, "%ld\n", i);
15289 unsigned long i = ulongval ();
15290 if (i != ((long) (sizeof (short int))))
15292 fprintf (f, "%lu\n", i);
15294 exit (ferror (f) || fclose (f) != 0);
15300 rm -f conftest$ac_exeext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15302 (eval $ac_link) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_cv_sizeof_short_int=`cat conftest.val`
15313 echo "$as_me: program exited with status $ac_status" >&5
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ( exit $ac_status )
15318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15319 See \`config.log' for more details." >&5
15320 echo "$as_me: error: cannot compute sizeof (short int), 77
15321 See \`config.log' for more details." >&2;}
15322 { (exit 1); exit 1; }; }
15324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15329 ac_cv_sizeof_short_int=0
15332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15333 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15334 cat >>confdefs.h <<_ACEOF
15335 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15339 echo "$as_me:$LINENO: checking for int" >&5
15340 echo $ECHO_N "checking for int... $ECHO_C" >&6
15341 if test "${ac_cv_type_int+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 cat >conftest.$ac_ext <<_ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 $ac_includes_default
15362 rm -f conftest.$ac_objext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15364 (eval $ac_compile) 2>conftest.er1
15366 grep -v '^ *+' conftest.er1 >conftest.err
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -z "$ac_c_werror_flag"
15372 || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest.$ac_objext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15393 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15394 echo "${ECHO_T}$ac_cv_type_int" >&6
15396 echo "$as_me:$LINENO: checking size of int" >&5
15397 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15398 if test "${ac_cv_sizeof_int+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 if test "$ac_cv_type_int" = yes; then
15402 # The cast to unsigned long works around a bug in the HP C Compiler
15403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15405 # This bug is HP SR number 8606223364.
15406 if test "$cross_compiling" = yes; then
15407 # Depending upon the size, compute the lo and hi bounds.
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 $ac_includes_default
15418 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15427 (eval $ac_compile) 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15449 cat >conftest.$ac_ext <<_ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 $ac_includes_default
15459 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>conftest.er1
15470 grep -v '^ *+' conftest.er1 >conftest.err
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -z "$ac_c_werror_flag"
15476 || test ! -s conftest.err'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; } &&
15482 { ac_try='test -s conftest.$ac_objext'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 ac_hi=$ac_mid; break
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_lo=`expr $ac_mid + 1`
15494 if test $ac_lo -le $ac_mid; then
15498 ac_mid=`expr 2 '*' $ac_mid + 1`
15500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 cat >conftest.$ac_ext <<_ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 $ac_includes_default
15516 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525 (eval $ac_compile) 2>conftest.er1
15527 grep -v '^ *+' conftest.er1 >conftest.err
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag"
15533 || test ! -s conftest.err'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; } &&
15539 { ac_try='test -s conftest.$ac_objext'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15553 $ac_includes_default
15557 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15564 rm -f conftest.$ac_objext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566 (eval $ac_compile) 2>conftest.er1
15568 grep -v '^ *+' conftest.er1 >conftest.err
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } &&
15573 { ac_try='test -z "$ac_c_werror_flag"
15574 || test ! -s conftest.err'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; } &&
15580 { ac_try='test -s conftest.$ac_objext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15586 ac_lo=$ac_mid; break
15588 echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15591 ac_hi=`expr '(' $ac_mid ')' - 1`
15592 if test $ac_mid -le $ac_hi; then
15596 ac_mid=`expr 2 '*' $ac_mid`
15598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15609 # Binary search between lo and hi bounds.
15610 while test "x$ac_lo" != "x$ac_hi"; do
15611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15612 cat >conftest.$ac_ext <<_ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 $ac_includes_default
15622 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15629 rm -f conftest.$ac_objext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -z "$ac_c_werror_flag"
15639 || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest.$ac_objext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_lo=`expr '(' $ac_mid ')' + 1`
15658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15661 ?*) ac_cv_sizeof_int=$ac_lo;;
15662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15663 See \`config.log' for more details." >&5
15664 echo "$as_me: error: cannot compute sizeof (int), 77
15665 See \`config.log' for more details." >&2;}
15666 { (exit 1); exit 1; }; } ;;
15669 if test "$cross_compiling" = yes; then
15670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15671 See \`config.log' for more details." >&5
15672 echo "$as_me: error: cannot run test program while cross compiling
15673 See \`config.log' for more details." >&2;}
15674 { (exit 1); exit 1; }; }
15676 cat >conftest.$ac_ext <<_ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 $ac_includes_default
15683 long longval () { return (long) (sizeof (int)); }
15684 unsigned long ulongval () { return (long) (sizeof (int)); }
15686 #include <stdlib.h>
15691 FILE *f = fopen ("conftest.val", "w");
15694 if (((long) (sizeof (int))) < 0)
15696 long i = longval ();
15697 if (i != ((long) (sizeof (int))))
15699 fprintf (f, "%ld\n", i);
15703 unsigned long i = ulongval ();
15704 if (i != ((long) (sizeof (int))))
15706 fprintf (f, "%lu\n", i);
15708 exit (ferror (f) || fclose (f) != 0);
15714 rm -f conftest$ac_exeext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716 (eval $ac_link) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_cv_sizeof_int=`cat conftest.val`
15727 echo "$as_me: program exited with status $ac_status" >&5
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 ( exit $ac_status )
15732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15733 See \`config.log' for more details." >&5
15734 echo "$as_me: error: cannot compute sizeof (int), 77
15735 See \`config.log' for more details." >&2;}
15736 { (exit 1); exit 1; }; }
15738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15747 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15748 cat >>confdefs.h <<_ACEOF
15749 #define SIZEOF_INT $ac_cv_sizeof_int
15753 echo "$as_me:$LINENO: checking for long int" >&5
15754 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15755 if test "${ac_cv_type_long_int+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 cat >conftest.$ac_ext <<_ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 $ac_includes_default
15768 if ((long int *) 0)
15770 if (sizeof (long int))
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>conftest.er1
15780 grep -v '^ *+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_cv_type_long_int=yes
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_cv_type_long_int=no
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15807 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15808 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15810 echo "$as_me:$LINENO: checking size of long int" >&5
15811 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15812 if test "${ac_cv_sizeof_long_int+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 if test "$ac_cv_type_long_int" = yes; then
15816 # The cast to unsigned long works around a bug in the HP C Compiler
15817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15819 # This bug is HP SR number 8606223364.
15820 if test "$cross_compiling" = yes; then
15821 # Depending upon the size, compute the lo and hi bounds.
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15832 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15843 grep -v '^ *+' conftest.er1 >conftest.err
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -z "$ac_c_werror_flag"
15849 || test ! -s conftest.err'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15863 cat >conftest.$ac_ext <<_ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 $ac_includes_default
15873 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_hi=$ac_mid; break
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15907 ac_lo=`expr $ac_mid + 1`
15908 if test $ac_lo -le $ac_mid; then
15912 ac_mid=`expr 2 '*' $ac_mid + 1`
15914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 $ac_includes_default
15930 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1 >conftest.err
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 $ac_includes_default
15971 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980 (eval $ac_compile) 2>conftest.er1
15982 grep -v '^ *+' conftest.er1 >conftest.err
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -z "$ac_c_werror_flag"
15988 || test ! -s conftest.err'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_lo=$ac_mid; break
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ac_hi=`expr '(' $ac_mid ')' - 1`
16006 if test $ac_mid -le $ac_hi; then
16010 ac_mid=`expr 2 '*' $ac_mid`
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 # Binary search between lo and hi bounds.
16024 while test "x$ac_lo" != "x$ac_hi"; do
16025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 $ac_includes_default
16036 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_lo=`expr '(' $ac_mid ')' + 1`
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16075 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16076 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16077 See \`config.log' for more details." >&5
16078 echo "$as_me: error: cannot compute sizeof (long int), 77
16079 See \`config.log' for more details." >&2;}
16080 { (exit 1); exit 1; }; } ;;
16083 if test "$cross_compiling" = yes; then
16084 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16085 See \`config.log' for more details." >&5
16086 echo "$as_me: error: cannot run test program while cross compiling
16087 See \`config.log' for more details." >&2;}
16088 { (exit 1); exit 1; }; }
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 $ac_includes_default
16097 long longval () { return (long) (sizeof (long int)); }
16098 unsigned long ulongval () { return (long) (sizeof (long int)); }
16100 #include <stdlib.h>
16105 FILE *f = fopen ("conftest.val", "w");
16108 if (((long) (sizeof (long int))) < 0)
16110 long i = longval ();
16111 if (i != ((long) (sizeof (long int))))
16113 fprintf (f, "%ld\n", i);
16117 unsigned long i = ulongval ();
16118 if (i != ((long) (sizeof (long int))))
16120 fprintf (f, "%lu\n", i);
16122 exit (ferror (f) || fclose (f) != 0);
16128 rm -f conftest$ac_exeext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16130 (eval $ac_link) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; }; then
16139 ac_cv_sizeof_long_int=`cat conftest.val`
16141 echo "$as_me: program exited with status $ac_status" >&5
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ( exit $ac_status )
16146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16147 See \`config.log' for more details." >&5
16148 echo "$as_me: error: cannot compute sizeof (long int), 77
16149 See \`config.log' for more details." >&2;}
16150 { (exit 1); exit 1; }; }
16152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16157 ac_cv_sizeof_long_int=0
16160 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16161 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16162 cat >>confdefs.h <<_ACEOF
16163 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16167 echo "$as_me:$LINENO: checking for long long int" >&5
16168 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16169 if test "${ac_cv_type_long_long_int+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16182 if ((long long int *) 0)
16184 if (sizeof (long long int))
16190 rm -f conftest.$ac_objext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16192 (eval $ac_compile) 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_type_long_long_int=yes
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_cv_type_long_long_int=no
16219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16222 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16224 echo "$as_me:$LINENO: checking size of long long int" >&5
16225 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16226 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 if test "$ac_cv_type_long_long_int" = yes; then
16230 # The cast to unsigned long works around a bug in the HP C Compiler
16231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16233 # This bug is HP SR number 8606223364.
16234 if test "$cross_compiling" = yes; then
16235 # Depending upon the size, compute the lo and hi bounds.
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 $ac_includes_default
16246 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16253 rm -f conftest.$ac_objext
16254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16255 (eval $ac_compile) 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
16262 { ac_try='test -z "$ac_c_werror_flag"
16263 || test ! -s conftest.err'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 $ac_includes_default
16287 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16294 rm -f conftest.$ac_objext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>conftest.er1
16298 grep -v '^ *+' conftest.er1 >conftest.err
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -z "$ac_c_werror_flag"
16304 || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest.$ac_objext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_hi=$ac_mid; break
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 ac_lo=`expr $ac_mid + 1`
16322 if test $ac_lo -le $ac_mid; then
16326 ac_mid=`expr 2 '*' $ac_mid + 1`
16328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 $ac_includes_default
16344 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16351 rm -f conftest.$ac_objext
16352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16353 (eval $ac_compile) 2>conftest.er1
16355 grep -v '^ *+' conftest.er1 >conftest.err
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } &&
16360 { ac_try='test -z "$ac_c_werror_flag"
16361 || test ! -s conftest.err'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest.$ac_objext'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 $ac_includes_default
16385 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16392 rm -f conftest.$ac_objext
16393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394 (eval $ac_compile) 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag"
16402 || test ! -s conftest.err'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_lo=$ac_mid; break
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ac_hi=`expr '(' $ac_mid ')' - 1`
16420 if test $ac_mid -le $ac_hi; then
16424 ac_mid=`expr 2 '*' $ac_mid`
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16437 # Binary search between lo and hi bounds.
16438 while test "x$ac_lo" != "x$ac_hi"; do
16439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16440 cat >conftest.$ac_ext <<_ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 $ac_includes_default
16450 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16457 rm -f conftest.$ac_objext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16459 (eval $ac_compile) 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } &&
16466 { ac_try='test -z "$ac_c_werror_flag"
16467 || test ! -s conftest.err'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; } &&
16473 { ac_try='test -s conftest.$ac_objext'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 ac_lo=`expr '(' $ac_mid ')' + 1`
16486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16489 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16491 See \`config.log' for more details." >&5
16492 echo "$as_me: error: cannot compute sizeof (long long int), 77
16493 See \`config.log' for more details." >&2;}
16494 { (exit 1); exit 1; }; } ;;
16497 if test "$cross_compiling" = yes; then
16498 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16499 See \`config.log' for more details." >&5
16500 echo "$as_me: error: cannot run test program while cross compiling
16501 See \`config.log' for more details." >&2;}
16502 { (exit 1); exit 1; }; }
16504 cat >conftest.$ac_ext <<_ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 $ac_includes_default
16511 long longval () { return (long) (sizeof (long long int)); }
16512 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16514 #include <stdlib.h>
16519 FILE *f = fopen ("conftest.val", "w");
16522 if (((long) (sizeof (long long int))) < 0)
16524 long i = longval ();
16525 if (i != ((long) (sizeof (long long int))))
16527 fprintf (f, "%ld\n", i);
16531 unsigned long i = ulongval ();
16532 if (i != ((long) (sizeof (long long int))))
16534 fprintf (f, "%lu\n", i);
16536 exit (ferror (f) || fclose (f) != 0);
16542 rm -f conftest$ac_exeext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16544 (eval $ac_link) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_sizeof_long_long_int=`cat conftest.val`
16555 echo "$as_me: program exited with status $ac_status" >&5
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ( exit $ac_status )
16560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16561 See \`config.log' for more details." >&5
16562 echo "$as_me: error: cannot compute sizeof (long long int), 77
16563 See \`config.log' for more details." >&2;}
16564 { (exit 1); exit 1; }; }
16566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16571 ac_cv_sizeof_long_long_int=0
16574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16575 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16576 cat >>confdefs.h <<_ACEOF
16577 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16581 echo "$as_me:$LINENO: checking for int *" >&5
16582 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16583 if test "${ac_cv_type_int_p+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 $ac_includes_default
16598 if (sizeof (int *))
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606 (eval $ac_compile) 2>conftest.er1
16608 grep -v '^ *+' conftest.er1 >conftest.err
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest.$ac_objext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_type_int_p=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_type_int_p=no
16633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16635 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16636 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16638 echo "$as_me:$LINENO: checking size of int *" >&5
16639 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16640 if test "${ac_cv_sizeof_int_p+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 if test "$ac_cv_type_int_p" = yes; then
16644 # The cast to unsigned long works around a bug in the HP C Compiler
16645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16647 # This bug is HP SR number 8606223364.
16648 if test "$cross_compiling" = yes; then
16649 # Depending upon the size, compute the lo and hi bounds.
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16660 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669 (eval $ac_compile) 2>conftest.er1
16671 grep -v '^ *+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -z "$ac_c_werror_flag"
16677 || test ! -s conftest.err'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest.$ac_objext'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; }; then
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 $ac_includes_default
16701 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16708 rm -f conftest.$ac_objext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>conftest.er1
16712 grep -v '^ *+' conftest.er1 >conftest.err
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest.$ac_objext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 ac_hi=$ac_mid; break
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 ac_lo=`expr $ac_mid + 1`
16736 if test $ac_lo -le $ac_mid; then
16740 ac_mid=`expr 2 '*' $ac_mid + 1`
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 $ac_includes_default
16758 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16765 rm -f conftest.$ac_objext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16767 (eval $ac_compile) 2>conftest.er1
16769 grep -v '^ *+' conftest.er1 >conftest.err
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -z "$ac_c_werror_flag"
16775 || test ! -s conftest.err'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest.$ac_objext'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16799 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>conftest.er1
16810 grep -v '^ *+' conftest.er1 >conftest.err
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag"
16816 || test ! -s conftest.err'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_lo=$ac_mid; break
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_hi=`expr '(' $ac_mid ')' - 1`
16834 if test $ac_mid -le $ac_hi; then
16838 ac_mid=`expr 2 '*' $ac_mid`
16840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851 # Binary search between lo and hi bounds.
16852 while test "x$ac_lo" != "x$ac_hi"; do
16853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16854 cat >conftest.$ac_ext <<_ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h. */
16860 $ac_includes_default
16864 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16871 rm -f conftest.$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873 (eval $ac_compile) 2>conftest.er1
16875 grep -v '^ *+' conftest.er1 >conftest.err
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag"
16881 || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_lo=`expr '(' $ac_mid ')' + 1`
16900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16903 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16904 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16905 See \`config.log' for more details." >&5
16906 echo "$as_me: error: cannot compute sizeof (int *), 77
16907 See \`config.log' for more details." >&2;}
16908 { (exit 1); exit 1; }; } ;;
16911 if test "$cross_compiling" = yes; then
16912 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16913 See \`config.log' for more details." >&5
16914 echo "$as_me: error: cannot run test program while cross compiling
16915 See \`config.log' for more details." >&2;}
16916 { (exit 1); exit 1; }; }
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 $ac_includes_default
16925 long longval () { return (long) (sizeof (int *)); }
16926 unsigned long ulongval () { return (long) (sizeof (int *)); }
16928 #include <stdlib.h>
16933 FILE *f = fopen ("conftest.val", "w");
16936 if (((long) (sizeof (int *))) < 0)
16938 long i = longval ();
16939 if (i != ((long) (sizeof (int *))))
16941 fprintf (f, "%ld\n", i);
16945 unsigned long i = ulongval ();
16946 if (i != ((long) (sizeof (int *))))
16948 fprintf (f, "%lu\n", i);
16950 exit (ferror (f) || fclose (f) != 0);
16956 rm -f conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958 (eval $ac_link) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_cv_sizeof_int_p=`cat conftest.val`
16969 echo "$as_me: program exited with status $ac_status" >&5
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ( exit $ac_status )
16974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16975 See \`config.log' for more details." >&5
16976 echo "$as_me: error: cannot compute sizeof (int *), 77
16977 See \`config.log' for more details." >&2;}
16978 { (exit 1); exit 1; }; }
16980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16985 ac_cv_sizeof_int_p=0
16988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16989 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16990 cat >>confdefs.h <<_ACEOF
16991 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16996 # Check for sys/types.h types
16997 echo "$as_me:$LINENO: checking for u_int type" >&5
16998 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16999 if test "${ac_cv_have_u_int+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <sys/types.h>
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_have_u_int="yes"
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_cv_have_u_int="no"
17048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17052 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17053 if test "x$ac_cv_have_u_int" = "xyes" ; then
17054 cat >>confdefs.h <<\_ACEOF
17055 #define HAVE_U_INT 1
17061 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17062 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17063 if test "${ac_cv_have_intmax_t+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073 #include <sys/types.h>
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17086 grep -v '^ *+' conftest.er1 >conftest.err
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_have_intmax_t="yes"
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 #include <stdint.h>
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_have_intmax_t="yes"
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_have_intmax_t="no"
17155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17163 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17164 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17165 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define HAVE_INTMAX_T 1
17174 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17175 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17176 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17186 #include <sys/types.h>
17190 u_intmax_t a; a = 1;
17195 rm -f conftest.$ac_objext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197 (eval $ac_compile) 2>conftest.er1
17199 grep -v '^ *+' conftest.er1 >conftest.err
17201 cat conftest.err >&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -z "$ac_c_werror_flag"
17205 || test ! -s conftest.err'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest.$ac_objext'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_cv_have_u_intmax_t="yes"
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 #include <stdint.h>
17233 u_intmax_t a; a = 1;
17238 rm -f conftest.$ac_objext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17240 (eval $ac_compile) 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_cv_have_u_intmax_t="yes"
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_cv_have_u_intmax_t="no"
17268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17275 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17276 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17277 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17278 cat >>confdefs.h <<\_ACEOF
17279 #define HAVE_U_INTMAX_T 1
17286 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17287 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17288 if test "${ac_cv_have_intxx_t+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <sys/types.h>
17302 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17307 rm -f conftest.$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>conftest.er1
17311 grep -v '^ *+' conftest.er1 >conftest.err
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -z "$ac_c_werror_flag"
17317 || test ! -s conftest.err'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_cv_have_intxx_t="yes"
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17334 ac_cv_have_intxx_t="no"
17337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17341 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17342 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17343 cat >>confdefs.h <<\_ACEOF
17344 #define HAVE_INTXX_T 1
17350 echo "$as_me:$LINENO: checking for int64_t type" >&5
17351 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17352 if test "${ac_cv_have_int64_t+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17356 cat >conftest.$ac_ext <<_ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 #include <sys/types.h>
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>conftest.er1
17375 grep -v '^ *+' conftest.er1 >conftest.err
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag"
17381 || test ! -s conftest.err'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 ac_cv_have_int64_t="yes"
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17398 ac_cv_have_int64_t="no"
17401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17404 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17405 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17406 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17407 cat >>confdefs.h <<\_ACEOF
17408 #define HAVE_INT64_T 1
17414 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17415 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17416 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <sys/types.h>
17430 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17435 rm -f conftest.$ac_objext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437 (eval $ac_compile) 2>conftest.er1
17439 grep -v '^ *+' conftest.er1 >conftest.err
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag"
17445 || test ! -s conftest.err'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest.$ac_objext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_have_u_intxx_t="yes"
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_have_u_intxx_t="no"
17465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17468 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17469 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17470 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17471 cat >>confdefs.h <<\_ACEOF
17472 #define HAVE_U_INTXX_T 1
17478 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17479 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17480 if test "${ac_cv_have_u_int64_t+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 cat >conftest.$ac_ext <<_ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 #include <sys/types.h>
17494 u_int64_t a; a = 1;
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501 (eval $ac_compile) 2>conftest.er1
17503 grep -v '^ *+' conftest.er1 >conftest.err
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_have_u_int64_t="yes"
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_cv_have_u_int64_t="no"
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17533 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17534 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_U_INT64_T 1
17542 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17543 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17545 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17546 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 #include <sys/bitypes.h>
17557 int8_t a; int16_t b; int32_t c;
17558 u_int8_t e; u_int16_t f; u_int32_t g;
17559 a = b = c = e = f = g = 1;
17564 rm -f conftest.$ac_objext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17568 grep -v '^ *+' conftest.er1 >conftest.err
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 cat >>confdefs.h <<\_ACEOF
17587 #define HAVE_U_INTXX_T 1
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_INTXX_T 1
17594 cat >>confdefs.h <<\_ACEOF
17595 #define HAVE_SYS_BITYPES_H 1
17598 echo "$as_me:$LINENO: result: yes" >&5
17599 echo "${ECHO_T}yes" >&6
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 echo "$as_me:$LINENO: result: no" >&5
17605 echo "${ECHO_T}no" >&6
17608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17611 if test -z "$have_u_intxx_t" ; then
17612 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17613 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17614 if test "${ac_cv_have_uintxx_t+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 cat >conftest.$ac_ext <<_ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 #include <sys/types.h>
17628 uint8_t a; uint16_t b;
17629 uint32_t c; a = b = c = 1;
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest.$ac_objext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 ac_cv_have_uintxx_t="yes"
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 ac_cv_have_uintxx_t="no"
17664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17667 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17668 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17669 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_UINTXX_T 1
17677 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17678 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17680 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17681 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 #include <sys/bitypes.h>
17692 int64_t a; u_int64_t b;
17698 rm -f conftest.$ac_objext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700 (eval $ac_compile) 2>conftest.er1
17702 grep -v '^ *+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag"
17708 || test ! -s conftest.err'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_U_INT64_T 1
17724 cat >>confdefs.h <<\_ACEOF
17725 #define HAVE_INT64_T 1
17728 echo "$as_me:$LINENO: result: yes" >&5
17729 echo "${ECHO_T}yes" >&6
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 echo "$as_me:$LINENO: result: no" >&5
17735 echo "${ECHO_T}no" >&6
17738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17741 if (test -z "$have_uintxx_t" && \
17742 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17744 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17745 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 #include <sys/bitypes.h>
17756 uint8_t a; uint16_t b;
17757 uint32_t c; a = b = c = 1;
17762 rm -f conftest.$ac_objext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764 (eval $ac_compile) 2>conftest.er1
17766 grep -v '^ *+' conftest.er1 >conftest.err
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest.$ac_objext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 cat >>confdefs.h <<\_ACEOF
17785 #define HAVE_UINTXX_T 1
17788 echo "$as_me:$LINENO: result: yes" >&5
17789 echo "${ECHO_T}yes" >&6
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 echo "$as_me:$LINENO: result: no" >&5
17795 echo "${ECHO_T}no" >&6
17798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17835 echo "$as_me:$LINENO: checking for $ac_func" >&5
17836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17837 if eval "test \"\${$as_ac_var+set}\" = set"; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 cat >conftest.$ac_ext <<_ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17848 #define $ac_func innocuous_$ac_func
17850 /* System header to define __stub macros and hopefully few prototypes,
17851 which can conflict with char $ac_func (); below.
17852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17853 <limits.h> exists even on freestanding compilers. */
17856 # include <limits.h>
17858 # include <assert.h>
17863 /* Override any gcc2 internal prototype to avoid an error. */
17868 /* We use char because int might match the return type of a gcc2
17869 builtin and then its argument prototype would still apply. */
17871 /* The GNU C library defines this for functions which it implements
17872 to always fail with ENOSYS. Some functions are actually named
17873 something starting with __ and the normal name is an alias. */
17874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17877 char (*f) () = $ac_func;
17886 return f != $ac_func;
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag"
17901 || test ! -s conftest.err'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 eval "$as_ac_var=yes"
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 eval "$as_ac_var=no"
17920 rm -f conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17925 if test `eval echo '${'$as_ac_var'}'` = yes; then
17926 cat >>confdefs.h <<_ACEOF
17927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17931 echo 'configure: cannot find needed function.'; exit 1
17938 for ac_func in fchdir
17940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17943 if eval "test \"\${$as_ac_var+set}\" = set"; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954 #define $ac_func innocuous_$ac_func
17956 /* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char $ac_func (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17962 # include <limits.h>
17964 # include <assert.h>
17969 /* Override any gcc2 internal prototype to avoid an error. */
17974 /* We use char because int might match the return type of a gcc2
17975 builtin and then its argument prototype would still apply. */
17977 /* The GNU C library defines this for functions which it implements
17978 to always fail with ENOSYS. Some functions are actually named
17979 something starting with __ and the normal name is an alias. */
17980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17983 char (*f) () = $ac_func;
17992 return f != $ac_func;
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999 (eval $ac_link) 2>conftest.er1
18001 grep -v '^ *+' conftest.er1 >conftest.err
18003 cat conftest.err >&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } &&
18006 { ac_try='test -z "$ac_c_werror_flag"
18007 || test ! -s conftest.err'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; } &&
18013 { ac_try='test -s conftest$ac_exeext'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18019 eval "$as_ac_var=yes"
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 eval "$as_ac_var=no"
18026 rm -f conftest.err conftest.$ac_objext \
18027 conftest$ac_exeext conftest.$ac_ext
18029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18035 cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_FCHDIR 1
18043 for ac_func in strtoll
18045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18046 echo "$as_me:$LINENO: checking for $ac_func" >&5
18047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_var+set}\" = set"; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 cat >conftest.$ac_ext <<_ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18059 #define $ac_func innocuous_$ac_func
18061 /* System header to define __stub macros and hopefully few prototypes,
18062 which can conflict with char $ac_func (); below.
18063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18064 <limits.h> exists even on freestanding compilers. */
18067 # include <limits.h>
18069 # include <assert.h>
18074 /* Override any gcc2 internal prototype to avoid an error. */
18079 /* We use char because int might match the return type of a gcc2
18080 builtin and then its argument prototype would still apply. */
18082 /* The GNU C library defines this for functions which it implements
18083 to always fail with ENOSYS. Some functions are actually named
18084 something starting with __ and the normal name is an alias. */
18085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18088 char (*f) () = $ac_func;
18097 return f != $ac_func;
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104 (eval $ac_link) 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag"
18112 || test ! -s conftest.err'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 eval "$as_ac_var=yes"
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 eval "$as_ac_var=no"
18131 rm -f conftest.err conftest.$ac_objext \
18132 conftest$ac_exeext conftest.$ac_ext
18134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18136 if test `eval echo '${'$as_ac_var'}'` = yes; then
18137 cat >>confdefs.h <<_ACEOF
18138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_STRTOLL 1
18149 for ac_func in chflags
18151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18152 echo "$as_me:$LINENO: checking for $ac_func" >&5
18153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_var+set}\" = set"; then
18155 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 cat >conftest.$ac_ext <<_ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18165 #define $ac_func innocuous_$ac_func
18167 /* System header to define __stub macros and hopefully few prototypes,
18168 which can conflict with char $ac_func (); below.
18169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18170 <limits.h> exists even on freestanding compilers. */
18173 # include <limits.h>
18175 # include <assert.h>
18180 /* Override any gcc2 internal prototype to avoid an error. */
18185 /* We use char because int might match the return type of a gcc2
18186 builtin and then its argument prototype would still apply. */
18188 /* The GNU C library defines this for functions which it implements
18189 to always fail with ENOSYS. Some functions are actually named
18190 something starting with __ and the normal name is an alias. */
18191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18194 char (*f) () = $ac_func;
18203 return f != $ac_func;
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>conftest.er1
18212 grep -v '^ *+' conftest.er1 >conftest.err
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -z "$ac_c_werror_flag"
18218 || test ! -s conftest.err'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest$ac_exeext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 eval "$as_ac_var=yes"
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18235 eval "$as_ac_var=no"
18237 rm -f conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18242 if test `eval echo '${'$as_ac_var'}'` = yes; then
18243 cat >>confdefs.h <<_ACEOF
18244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18255 for ac_func in snprintf vsnprintf gethostid fseeko
18257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18258 echo "$as_me:$LINENO: checking for $ac_func" >&5
18259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18260 if eval "test \"\${$as_ac_var+set}\" = set"; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18271 #define $ac_func innocuous_$ac_func
18273 /* System header to define __stub macros and hopefully few prototypes,
18274 which can conflict with char $ac_func (); below.
18275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276 <limits.h> exists even on freestanding compilers. */
18279 # include <limits.h>
18281 # include <assert.h>
18286 /* Override any gcc2 internal prototype to avoid an error. */
18291 /* We use char because int might match the return type of a gcc2
18292 builtin and then its argument prototype would still apply. */
18294 /* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18300 char (*f) () = $ac_func;
18309 return f != $ac_func;
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag"
18324 || test ! -s conftest.err'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest$ac_exeext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 eval "$as_ac_var=yes"
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 eval "$as_ac_var=no"
18343 rm -f conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18348 if test `eval echo '${'$as_ac_var'}'` = yes; then
18349 cat >>confdefs.h <<_ACEOF
18350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18361 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18364 echo "$as_me:$LINENO: checking for $ac_func" >&5
18365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_var+set}\" = set"; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18377 #define $ac_func innocuous_$ac_func
18379 /* System header to define __stub macros and hopefully few prototypes,
18380 which can conflict with char $ac_func (); below.
18381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18382 <limits.h> exists even on freestanding compilers. */
18385 # include <limits.h>
18387 # include <assert.h>
18392 /* Override any gcc2 internal prototype to avoid an error. */
18397 /* We use char because int might match the return type of a gcc2
18398 builtin and then its argument prototype would still apply. */
18400 /* The GNU C library defines this for functions which it implements
18401 to always fail with ENOSYS. Some functions are actually named
18402 something starting with __ and the normal name is an alias. */
18403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18406 char (*f) () = $ac_func;
18415 return f != $ac_func;
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18422 (eval $ac_link) 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest$ac_exeext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 eval "$as_ac_var=yes"
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 eval "$as_ac_var=no"
18449 rm -f conftest.err conftest.$ac_objext \
18450 conftest$ac_exeext conftest.$ac_ext
18452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18463 # If resolver functions are not in libc check for -lnsl or -lresolv.
18464 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18465 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18466 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18477 #define gethostbyname_r innocuous_gethostbyname_r
18479 /* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char gethostbyname_r (); below.
18481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482 <limits.h> exists even on freestanding compilers. */
18485 # include <limits.h>
18487 # include <assert.h>
18490 #undef gethostbyname_r
18492 /* Override any gcc2 internal prototype to avoid an error. */
18497 /* We use char because int might match the return type of a gcc2
18498 builtin and then its argument prototype would still apply. */
18499 char gethostbyname_r ();
18500 /* The GNU C library defines this for functions which it implements
18501 to always fail with ENOSYS. Some functions are actually named
18502 something starting with __ and the normal name is an alias. */
18503 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18506 char (*f) () = gethostbyname_r;
18515 return f != gethostbyname_r;
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522 (eval $ac_link) 2>conftest.er1
18524 grep -v '^ *+' conftest.er1 >conftest.err
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_func_gethostbyname_r=yes
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 ac_cv_func_gethostbyname_r=no
18549 rm -f conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18553 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18554 if test $ac_cv_func_gethostbyname_r = yes; then
18555 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18556 echo "${ECHO_T}using libc's resolver" >&6
18559 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18560 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18561 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 ac_check_lib_save_LIBS=$LIBS
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18573 /* Override any gcc2 internal prototype to avoid an error. */
18577 /* We use char because int might match the return type of a gcc2
18578 builtin and then its argument prototype would still apply. */
18579 char gethostbyname_r ();
18583 gethostbyname_r ();
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18590 (eval $ac_link) 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag"
18598 || test ! -s conftest.err'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest$ac_exeext'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 ac_cv_lib_nsl_gethostbyname_r=yes
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 ac_cv_lib_nsl_gethostbyname_r=no
18617 rm -f conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18621 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18622 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18623 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18624 cat >>confdefs.h <<_ACEOF
18625 #define HAVE_LIBNSL 1
18633 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18634 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18635 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lresolv $LIBS"
18640 cat >conftest.$ac_ext <<_ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 /* Override any gcc2 internal prototype to avoid an error. */
18651 /* We use char because int might match the return type of a gcc2
18652 builtin and then its argument prototype would still apply. */
18653 char gethostbyname_r ();
18657 gethostbyname_r ();
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664 (eval $ac_link) 2>conftest.er1
18666 grep -v '^ *+' conftest.er1 >conftest.err
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -z "$ac_c_werror_flag"
18672 || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest$ac_exeext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_lib_resolv_gethostbyname_r=yes
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 ac_cv_lib_resolv_gethostbyname_r=no
18691 rm -f conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18696 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18697 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_LIBRESOLV 1
18702 LIBS="-lresolv $LIBS"
18712 for ac_func in inet_pton
18714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18717 if eval "test \"\${$as_ac_var+set}\" = set"; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 cat >conftest.$ac_ext <<_ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728 #define $ac_func innocuous_$ac_func
18730 /* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char $ac_func (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18736 # include <limits.h>
18738 # include <assert.h>
18743 /* Override any gcc2 internal prototype to avoid an error. */
18748 /* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18757 char (*f) () = $ac_func;
18766 return f != $ac_func;
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773 (eval $ac_link) 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 eval "$as_ac_var=yes"
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 eval "$as_ac_var=no"
18800 rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18805 if test `eval echo '${'$as_ac_var'}'` = yes; then
18806 cat >>confdefs.h <<_ACEOF
18807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_INET_PTON 1
18817 for ac_func in inet_ntop
18819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18820 echo "$as_me:$LINENO: checking for $ac_func" >&5
18821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18822 if eval "test \"\${$as_ac_var+set}\" = set"; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18833 #define $ac_func innocuous_$ac_func
18835 /* System header to define __stub macros and hopefully few prototypes,
18836 which can conflict with char $ac_func (); below.
18837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838 <limits.h> exists even on freestanding compilers. */
18841 # include <limits.h>
18843 # include <assert.h>
18848 /* Override any gcc2 internal prototype to avoid an error. */
18853 /* We use char because int might match the return type of a gcc2
18854 builtin and then its argument prototype would still apply. */
18856 /* The GNU C library defines this for functions which it implements
18857 to always fail with ENOSYS. Some functions are actually named
18858 something starting with __ and the normal name is an alias. */
18859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18862 char (*f) () = $ac_func;
18871 return f != $ac_func;
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag"
18886 || test ! -s conftest.err'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 eval "$as_ac_var=yes"
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 eval "$as_ac_var=no"
18905 rm -f conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18910 if test `eval echo '${'$as_ac_var'}'` = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18914 cat >>confdefs.h <<\_ACEOF
18915 #define HAVE_INET_NTOP 1
18922 for ac_func in gethostbyname2
18924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18925 echo "$as_me:$LINENO: checking for $ac_func" >&5
18926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18927 if eval "test \"\${$as_ac_var+set}\" = set"; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18938 #define $ac_func innocuous_$ac_func
18940 /* System header to define __stub macros and hopefully few prototypes,
18941 which can conflict with char $ac_func (); below.
18942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18943 <limits.h> exists even on freestanding compilers. */
18946 # include <limits.h>
18948 # include <assert.h>
18953 /* Override any gcc2 internal prototype to avoid an error. */
18958 /* We use char because int might match the return type of a gcc2
18959 builtin and then its argument prototype would still apply. */
18961 /* The GNU C library defines this for functions which it implements
18962 to always fail with ENOSYS. Some functions are actually named
18963 something starting with __ and the normal name is an alias. */
18964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18967 char (*f) () = $ac_func;
18976 return f != $ac_func;
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983 (eval $ac_link) 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest$ac_exeext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 eval "$as_ac_var=yes"
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 eval "$as_ac_var=no"
19010 rm -f conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19015 if test `eval echo '${'$as_ac_var'}'` = yes; then
19016 cat >>confdefs.h <<_ACEOF
19017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19019 cat >>confdefs.h <<\_ACEOF
19020 #define HAVE_GETHOSTBYNAME2 1
19027 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19028 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19029 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 #include <sys/socket.h>
19042 struct sockaddr s; s.sa_len;
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_struct_sockaddr_sa_len=yes
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_cv_struct_sockaddr_sa_len=no
19076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19078 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19079 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19081 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE_SA_LEN 1
19090 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19091 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19092 if test "${ac_cv_ipv6_support+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 cat >conftest.$ac_ext <<_ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <sys/types.h>
19102 #include <sys/socket.h>
19103 #include <netinet/in.h>
19107 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115 (eval $ac_link) 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag"
19123 || test ! -s conftest.err'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; } &&
19129 { ac_try='test -s conftest$ac_exeext'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_ipv6_support=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_ipv6_support=no
19142 rm -f conftest.err conftest.$ac_objext \
19143 conftest$ac_exeext conftest.$ac_ext
19145 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19146 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19148 if test "$ac_cv_ipv6_support" = yes; then
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_IPV6 1
19159 for ac_func in strftime
19161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19162 echo "$as_me:$LINENO: checking for $ac_func" >&5
19163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19164 if eval "test \"\${$as_ac_var+set}\" = set"; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 cat >conftest.$ac_ext <<_ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19175 #define $ac_func innocuous_$ac_func
19177 /* System header to define __stub macros and hopefully few prototypes,
19178 which can conflict with char $ac_func (); below.
19179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19180 <limits.h> exists even on freestanding compilers. */
19183 # include <limits.h>
19185 # include <assert.h>
19190 /* Override any gcc2 internal prototype to avoid an error. */
19195 /* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19204 char (*f) () = $ac_func;
19213 return f != $ac_func;
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>conftest.er1
19222 grep -v '^ *+' conftest.er1 >conftest.err
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -z "$ac_c_werror_flag"
19228 || test ! -s conftest.err'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest$ac_exeext'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 eval "$as_ac_var=yes"
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 eval "$as_ac_var=no"
19247 rm -f conftest.err conftest.$ac_objext \
19248 conftest$ac_exeext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19252 if test `eval echo '${'$as_ac_var'}'` = yes; then
19253 cat >>confdefs.h <<_ACEOF
19254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19258 # strftime is in -lintl on SCO UNIX.
19259 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19260 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19261 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 ac_check_lib_save_LIBS=$LIBS
19265 LIBS="-lintl $LIBS"
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19273 /* Override any gcc2 internal prototype to avoid an error. */
19277 /* We use char because int might match the return type of a gcc2
19278 builtin and then its argument prototype would still apply. */
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19290 (eval $ac_link) 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_c_werror_flag"
19298 || test ! -s conftest.err'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest$ac_exeext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_lib_intl_strftime=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_lib_intl_strftime=no
19317 rm -f conftest.err conftest.$ac_objext \
19318 conftest$ac_exeext conftest.$ac_ext
19319 LIBS=$ac_check_lib_save_LIBS
19321 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19322 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19323 if test $ac_cv_lib_intl_strftime = yes; then
19324 cat >>confdefs.h <<\_ACEOF
19325 #define HAVE_STRFTIME 1
19328 LIBS="-lintl $LIBS"
19335 for ac_func in vprintf
19337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19338 echo "$as_me:$LINENO: checking for $ac_func" >&5
19339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19340 if eval "test \"\${$as_ac_var+set}\" = set"; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19351 #define $ac_func innocuous_$ac_func
19353 /* System header to define __stub macros and hopefully few prototypes,
19354 which can conflict with char $ac_func (); below.
19355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19356 <limits.h> exists even on freestanding compilers. */
19359 # include <limits.h>
19361 # include <assert.h>
19366 /* Override any gcc2 internal prototype to avoid an error. */
19371 /* We use char because int might match the return type of a gcc2
19372 builtin and then its argument prototype would still apply. */
19374 /* The GNU C library defines this for functions which it implements
19375 to always fail with ENOSYS. Some functions are actually named
19376 something starting with __ and the normal name is an alias. */
19377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19380 char (*f) () = $ac_func;
19389 return f != $ac_func;
19394 rm -f conftest.$ac_objext conftest$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396 (eval $ac_link) 2>conftest.er1
19398 grep -v '^ *+' conftest.er1 >conftest.err
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
19403 { ac_try='test -z "$ac_c_werror_flag"
19404 || test ! -s conftest.err'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest$ac_exeext'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 eval "$as_ac_var=yes"
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 eval "$as_ac_var=no"
19423 rm -f conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext conftest.$ac_ext
19426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19428 if test `eval echo '${'$as_ac_var'}'` = yes; then
19429 cat >>confdefs.h <<_ACEOF
19430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19433 echo "$as_me:$LINENO: checking for _doprnt" >&5
19434 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19435 if test "${ac_cv_func__doprnt+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 cat >conftest.$ac_ext <<_ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19446 #define _doprnt innocuous__doprnt
19448 /* System header to define __stub macros and hopefully few prototypes,
19449 which can conflict with char _doprnt (); below.
19450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19451 <limits.h> exists even on freestanding compilers. */
19454 # include <limits.h>
19456 # include <assert.h>
19461 /* Override any gcc2 internal prototype to avoid an error. */
19466 /* We use char because int might match the return type of a gcc2
19467 builtin and then its argument prototype would still apply. */
19469 /* The GNU C library defines this for functions which it implements
19470 to always fail with ENOSYS. Some functions are actually named
19471 something starting with __ and the normal name is an alias. */
19472 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19475 char (*f) () = _doprnt;
19484 return f != _doprnt;
19489 rm -f conftest.$ac_objext conftest$ac_exeext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19491 (eval $ac_link) 2>conftest.er1
19493 grep -v '^ *+' conftest.er1 >conftest.err
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
19498 { ac_try='test -z "$ac_c_werror_flag"
19499 || test ! -s conftest.err'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest$ac_exeext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 ac_cv_func__doprnt=yes
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_func__doprnt=no
19518 rm -f conftest.err conftest.$ac_objext \
19519 conftest$ac_exeext conftest.$ac_ext
19521 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19522 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19523 if test $ac_cv_func__doprnt = yes; then
19525 cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_DOPRNT 1
19535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19536 # for constant arguments. Useless!
19537 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19538 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19539 if test "${ac_cv_working_alloca_h+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <alloca.h>
19552 char *p = (char *) alloca (2 * sizeof (int));
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19559 (eval $ac_link) 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } &&
19566 { ac_try='test -z "$ac_c_werror_flag"
19567 || test ! -s conftest.err'
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; } &&
19573 { ac_try='test -s conftest$ac_exeext'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_working_alloca_h=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_working_alloca_h=no
19586 rm -f conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
19589 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19590 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19591 if test $ac_cv_working_alloca_h = yes; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA_H 1
19599 echo "$as_me:$LINENO: checking for alloca" >&5
19600 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19601 if test "${ac_cv_func_alloca_works+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19611 # define alloca __builtin_alloca
19614 # include <malloc.h>
19615 # define alloca _alloca
19618 # include <alloca.h>
19623 # ifndef alloca /* predefined by HP cc +Olibcalls */
19634 char *p = (char *) alloca (1);
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19641 (eval $ac_link) 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest$ac_exeext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_func_alloca_works=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_func_alloca_works=no
19668 rm -f conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19674 if test $ac_cv_func_alloca_works = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19681 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble. Some versions do not even contain alloca or
19683 # contain a buggy version. If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19686 ALLOCA=alloca.$ac_objext
19688 cat >>confdefs.h <<\_ACEOF
19693 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19695 if test "${ac_cv_os_cray+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #if defined(CRAY) && ! defined(CRAY2)
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712 $EGREP "webecray" >/dev/null 2>&1; then
19720 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6
19722 if test $ac_cv_os_cray = yes; then
19723 for ac_func in _getb67 GETB67 getb67; do
19724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19727 if eval "test \"\${$as_ac_var+set}\" = set"; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19738 #define $ac_func innocuous_$ac_func
19740 /* System header to define __stub macros and hopefully few prototypes,
19741 which can conflict with char $ac_func (); below.
19742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743 <limits.h> exists even on freestanding compilers. */
19746 # include <limits.h>
19748 # include <assert.h>
19753 /* Override any gcc2 internal prototype to avoid an error. */
19758 /* We use char because int might match the return type of a gcc2
19759 builtin and then its argument prototype would still apply. */
19761 /* The GNU C library defines this for functions which it implements
19762 to always fail with ENOSYS. Some functions are actually named
19763 something starting with __ and the normal name is an alias. */
19764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19767 char (*f) () = $ac_func;
19776 return f != $ac_func;
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783 (eval $ac_link) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest$ac_exeext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 eval "$as_ac_var=yes"
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 eval "$as_ac_var=no"
19810 rm -f conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19815 if test `eval echo '${'$as_ac_var'}'` = yes; then
19817 cat >>confdefs.h <<_ACEOF
19818 #define CRAY_STACKSEG_END $ac_func
19827 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19828 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19829 if test "${ac_cv_c_stack_direction+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 if test "$cross_compiling" = yes; then
19833 ac_cv_c_stack_direction=0
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19842 find_stack_direction ()
19844 static char *addr = 0;
19849 return find_stack_direction ();
19852 return (&dummy > addr) ? 1 : -1;
19858 exit (find_stack_direction () < 0);
19861 rm -f conftest$ac_exeext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19863 (eval $ac_link) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_c_stack_direction=1
19874 echo "$as_me: program exited with status $ac_status" >&5
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ( exit $ac_status )
19879 ac_cv_c_stack_direction=-1
19881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19884 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19885 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19887 cat >>confdefs.h <<_ACEOF
19888 #define STACK_DIRECTION $ac_cv_c_stack_direction
19894 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19895 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19896 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19897 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 ac_check_lib_save_LIBS=$LIBS
19902 cat >conftest.$ac_ext <<_ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19909 /* Override any gcc2 internal prototype to avoid an error. */
19913 /* We use char because int might match the return type of a gcc2
19914 builtin and then its argument prototype would still apply. */
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926 (eval $ac_link) 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest$ac_exeext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_lib_sun_getmntent=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_lib_sun_getmntent=no
19953 rm -f conftest.err conftest.$ac_objext \
19954 conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19958 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19959 if test $ac_cv_lib_sun_getmntent = yes; then
19962 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19963 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19964 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 ac_check_lib_save_LIBS=$LIBS
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any gcc2 internal prototype to avoid an error. */
19980 /* We use char because int might match the return type of a gcc2
19981 builtin and then its argument prototype would still apply. */
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993 (eval $ac_link) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest$ac_exeext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_lib_seq_getmntent=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_cv_lib_seq_getmntent=no
20020 rm -f conftest.err conftest.$ac_objext \
20021 conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20024 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20025 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20026 if test $ac_cv_lib_seq_getmntent = yes; then
20029 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20030 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20031 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 ac_check_lib_save_LIBS=$LIBS
20036 cat >conftest.$ac_ext <<_ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20043 /* Override any gcc2 internal prototype to avoid an error. */
20047 /* We use char because int might match the return type of a gcc2
20048 builtin and then its argument prototype would still apply. */
20058 rm -f conftest.$ac_objext conftest$ac_exeext
20059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20060 (eval $ac_link) 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -z "$ac_c_werror_flag"
20068 || test ! -s conftest.err'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; } &&
20074 { ac_try='test -s conftest$ac_exeext'
20075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; }; then
20080 ac_cv_lib_gen_getmntent=yes
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_cv_lib_gen_getmntent=no
20087 rm -f conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext conftest.$ac_ext
20089 LIBS=$ac_check_lib_save_LIBS
20091 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20092 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20093 if test $ac_cv_lib_gen_getmntent = yes; then
20102 for ac_func in getmntent
20104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20105 echo "$as_me:$LINENO: checking for $ac_func" >&5
20106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20107 if eval "test \"\${$as_ac_var+set}\" = set"; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20118 #define $ac_func innocuous_$ac_func
20120 /* System header to define __stub macros and hopefully few prototypes,
20121 which can conflict with char $ac_func (); below.
20122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20123 <limits.h> exists even on freestanding compilers. */
20126 # include <limits.h>
20128 # include <assert.h>
20133 /* Override any gcc2 internal prototype to avoid an error. */
20138 /* We use char because int might match the return type of a gcc2
20139 builtin and then its argument prototype would still apply. */
20141 /* The GNU C library defines this for functions which it implements
20142 to always fail with ENOSYS. Some functions are actually named
20143 something starting with __ and the normal name is an alias. */
20144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20147 char (*f) () = $ac_func;
20156 return f != $ac_func;
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20163 (eval $ac_link) 2>conftest.er1
20165 grep -v '^ *+' conftest.er1 >conftest.err
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } &&
20170 { ac_try='test -z "$ac_c_werror_flag"
20171 || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest$ac_exeext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 eval "$as_ac_var=yes"
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 eval "$as_ac_var=no"
20190 rm -f conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext conftest.$ac_ext
20193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20195 if test `eval echo '${'$as_ac_var'}'` = yes; then
20196 cat >>confdefs.h <<_ACEOF
20197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20204 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20205 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20206 if test "${ac_cv_func_closedir_void+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 if test "$cross_compiling" = yes; then
20210 ac_cv_func_closedir_void=yes
20212 cat >conftest.$ac_ext <<_ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 #include <$ac_header_dirent>
20220 #ifndef __cplusplus
20227 exit (closedir (opendir (".")) != 0);
20232 rm -f conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234 (eval $ac_link) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_func_closedir_void=no
20245 echo "$as_me: program exited with status $ac_status" >&5
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ( exit $ac_status )
20250 ac_cv_func_closedir_void=yes
20252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20255 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20256 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20257 if test $ac_cv_func_closedir_void = yes; then
20259 cat >>confdefs.h <<\_ACEOF
20260 #define CLOSEDIR_VOID 1
20265 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20266 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20267 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 if test "$cross_compiling" = yes; then
20271 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20272 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20273 { (exit 1); exit 1; }; }
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20282 # include <unistd.h>
20288 /* If this system has a BSD-style setpgrp which takes arguments,
20289 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20290 exit successfully. */
20291 exit (setpgrp (1,1) == -1 ? 0 : 1);
20296 rm -f conftest$ac_exeext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20298 (eval $ac_link) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_cv_func_setpgrp_void=no
20309 echo "$as_me: program exited with status $ac_status" >&5
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ( exit $ac_status )
20314 ac_cv_func_setpgrp_void=yes
20316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20319 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20320 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20321 if test $ac_cv_func_setpgrp_void = yes; then
20323 cat >>confdefs.h <<\_ACEOF
20324 #define SETPGRP_VOID 1
20328 # AC_FUNC_FNMATCH dnl use local version
20331 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20332 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20333 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 ac_check_lib_save_LIBS=$LIBS
20337 LIBS="-lxpg4 $LIBS"
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20345 /* Override any gcc2 internal prototype to avoid an error. */
20349 /* We use char because int might match the return type of a gcc2
20350 builtin and then its argument prototype would still apply. */
20360 rm -f conftest.$ac_objext conftest$ac_exeext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20362 (eval $ac_link) 2>conftest.er1
20364 grep -v '^ *+' conftest.er1 >conftest.err
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest$ac_exeext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_cv_lib_xpg4_setlocale=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_cv_lib_xpg4_setlocale=no
20389 rm -f conftest.err conftest.$ac_objext \
20390 conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20393 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20394 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20395 if test $ac_cv_lib_xpg4_setlocale = yes; then
20396 LIBS="$LIBS -lxpg4"
20402 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20403 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20404 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 ac_check_lib_save_LIBS=$LIBS
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20416 /* Override any gcc2 internal prototype to avoid an error. */
20420 /* We use char because int might match the return type of a gcc2
20421 builtin and then its argument prototype would still apply. */
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest$ac_exeext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_lib_sun_getpwnam=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_cv_lib_sun_getpwnam=no
20460 rm -f conftest.err conftest.$ac_objext \
20461 conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20464 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20465 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20466 if test $ac_cv_lib_sun_getpwnam = yes; then
20467 cat >>confdefs.h <<_ACEOF
20468 #define HAVE_LIBSUN 1
20477 for ac_header in zlib.h
20479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20481 echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20489 # Is the header compilable?
20490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 $ac_includes_default
20499 #include <$ac_header>
20501 rm -f conftest.$ac_objext
20502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20503 (eval $ac_compile) 2>conftest.er1
20505 grep -v '^ *+' conftest.er1 >conftest.err
20507 cat conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } &&
20510 { ac_try='test -z "$ac_c_werror_flag"
20511 || test ! -s conftest.err'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; } &&
20517 { ac_try='test -s conftest.$ac_objext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 ac_header_compiler=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_header_compiler=no
20530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20532 echo "${ECHO_T}$ac_header_compiler" >&6
20534 # Is the header present?
20535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 #include <$ac_header>
20545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20548 grep -v '^ *+' conftest.er1 >conftest.err
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } >/dev/null; then
20553 if test -s conftest.err; then
20554 ac_cpp_err=$ac_c_preproc_warn_flag
20555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20562 if test -z "$ac_cpp_err"; then
20563 ac_header_preproc=yes
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 ac_header_preproc=no
20570 rm -f conftest.err conftest.$ac_ext
20571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20572 echo "${ECHO_T}$ac_header_preproc" >&6
20574 # So? What about this header?
20575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20581 ac_header_preproc=yes
20584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20598 ## ------------------------------------------ ##
20599 ## Report this to the AC_PACKAGE_NAME lists. ##
20600 ## ------------------------------------------ ##
20603 sed "s/^/$as_me: WARNING: /" >&2
20606 echo "$as_me:$LINENO: checking for $ac_header" >&5
20607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 eval "$as_ac_Header=\$ac_header_preproc"
20613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20618 cat >>confdefs.h <<_ACEOF
20619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20626 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20627 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20628 if test "${ac_cv_lib_z_deflate+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 ac_check_lib_save_LIBS=$LIBS
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20640 /* Override any gcc2 internal prototype to avoid an error. */
20644 /* We use char because int might match the return type of a gcc2
20645 builtin and then its argument prototype would still apply. */
20655 rm -f conftest.$ac_objext conftest$ac_exeext
20656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20657 (eval $ac_link) 2>conftest.er1
20659 grep -v '^ *+' conftest.er1 >conftest.err
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } &&
20664 { ac_try='test -z "$ac_c_werror_flag"
20665 || test ! -s conftest.err'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; } &&
20671 { ac_try='test -s conftest$ac_exeext'
20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 (eval $ac_try) 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; }; then
20677 ac_cv_lib_z_deflate=yes
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20682 ac_cv_lib_z_deflate=no
20684 rm -f conftest.err conftest.$ac_objext \
20685 conftest$ac_exeext conftest.$ac_ext
20686 LIBS=$ac_check_lib_save_LIBS
20688 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20689 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20690 if test $ac_cv_lib_z_deflate = yes; then
20695 if test x$FDLIBS = x-lz; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_LIBZ 1
20703 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20704 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20705 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20706 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20710 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20712 # Is the header compilable?
20713 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20714 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721 $ac_includes_default
20722 #include <sys/acl.h>
20724 rm -f conftest.$ac_objext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726 (eval $ac_compile) 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag"
20734 || test ! -s conftest.err'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_header_compiler=yes
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_header_compiler=no
20753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20755 echo "${ECHO_T}$ac_header_compiler" >&6
20757 # Is the header present?
20758 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20759 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <sys/acl.h>
20768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null; then
20776 if test -s conftest.err; then
20777 ac_cpp_err=$ac_c_preproc_warn_flag
20778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20785 if test -z "$ac_cpp_err"; then
20786 ac_header_preproc=yes
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_header_preproc=no
20793 rm -f conftest.err conftest.$ac_ext
20794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20795 echo "${ECHO_T}$ac_header_preproc" >&6
20797 # So? What about this header?
20798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20800 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20801 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20803 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20804 ac_header_preproc=yes
20807 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20808 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20810 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20811 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20812 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20814 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20816 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20818 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20821 ## ------------------------------------------ ##
20822 ## Report this to the AC_PACKAGE_NAME lists. ##
20823 ## ------------------------------------------ ##
20826 sed "s/^/$as_me: WARNING: /" >&2
20829 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20830 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20831 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 ac_cv_header_sys_acl_h=$ac_header_preproc
20836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20837 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20842 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20843 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20844 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 ac_check_lib_save_LIBS=$LIBS
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20856 /* Override any gcc2 internal prototype to avoid an error. */
20860 /* We use char because int might match the return type of a gcc2
20861 builtin and then its argument prototype would still apply. */
20862 char acl_get_file ();
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20873 (eval $ac_link) 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } &&
20880 { ac_try='test -z "$ac_c_werror_flag"
20881 || test ! -s conftest.err'
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883 (eval $ac_try) 2>&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; } &&
20887 { ac_try='test -s conftest$ac_exeext'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 ac_cv_lib_acl_acl_get_file=yes
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_cv_lib_acl_acl_get_file=no
20900 rm -f conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20902 LIBS=$ac_check_lib_save_LIBS
20904 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20905 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20906 if test $ac_cv_lib_acl_acl_get_file = yes; then
20907 FDLIBS="-lacl $FDLIBS"
20911 if test $ac_cv_lib_acl_acl_get_file = yes; then
20912 cat >>confdefs.h <<\_ACEOF
20920 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20921 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20922 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 ac_check_lib_save_LIBS=$LIBS
20926 LIBS="-lpthread $LIBS"
20927 cat >conftest.$ac_ext <<_ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20934 /* Override any gcc2 internal prototype to avoid an error. */
20938 /* We use char because int might match the return type of a gcc2
20939 builtin and then its argument prototype would still apply. */
20940 char pthread_create ();
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951 (eval $ac_link) 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag"
20959 || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest$ac_exeext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_lib_pthread_pthread_create=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_cv_lib_pthread_pthread_create=no
20978 rm -f conftest.err conftest.$ac_objext \
20979 conftest$ac_exeext conftest.$ac_ext
20980 LIBS=$ac_check_lib_save_LIBS
20982 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20983 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20984 if test $ac_cv_lib_pthread_pthread_create = yes; then
20985 PTHREAD_LIB="-lpthread"
20987 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20988 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20989 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lpthreads $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21001 /* Override any gcc2 internal prototype to avoid an error. */
21005 /* We use char because int might match the return type of a gcc2
21006 builtin and then its argument prototype would still apply. */
21007 char pthread_create ();
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21018 (eval $ac_link) 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -z "$ac_c_werror_flag"
21026 || test ! -s conftest.err'
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; } &&
21032 { ac_try='test -s conftest$ac_exeext'
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 ac_cv_lib_pthreads_pthread_create=yes
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ac_cv_lib_pthreads_pthread_create=no
21045 rm -f conftest.err conftest.$ac_objext \
21046 conftest$ac_exeext conftest.$ac_ext
21047 LIBS=$ac_check_lib_save_LIBS
21049 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21050 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21051 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21052 PTHREAD_LIB="-lpthreads"
21054 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21055 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21056 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 ac_check_lib_save_LIBS=$LIBS
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21068 /* Override any gcc2 internal prototype to avoid an error. */
21072 /* We use char because int might match the return type of a gcc2
21073 builtin and then its argument prototype would still apply. */
21074 char pthread_create ();
21083 rm -f conftest.$ac_objext conftest$ac_exeext
21084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21085 (eval $ac_link) 2>conftest.er1
21087 grep -v '^ *+' conftest.er1 >conftest.err
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -z "$ac_c_werror_flag"
21093 || test ! -s conftest.err'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest$ac_exeext'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 ac_cv_lib_c_r_pthread_create=yes
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_cv_lib_c_r_pthread_create=no
21112 rm -f conftest.err conftest.$ac_objext \
21113 conftest$ac_exeext conftest.$ac_ext
21114 LIBS=$ac_check_lib_save_LIBS
21116 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21117 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21118 if test $ac_cv_lib_c_r_pthread_create = yes; then
21119 PTHREAD_LIB="-lc_r"
21121 echo "$as_me:$LINENO: checking for pthread_create" >&5
21122 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21123 if test "${ac_cv_func_pthread_create+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21134 #define pthread_create innocuous_pthread_create
21136 /* System header to define __stub macros and hopefully few prototypes,
21137 which can conflict with char pthread_create (); below.
21138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21139 <limits.h> exists even on freestanding compilers. */
21142 # include <limits.h>
21144 # include <assert.h>
21147 #undef pthread_create
21149 /* Override any gcc2 internal prototype to avoid an error. */
21154 /* We use char because int might match the return type of a gcc2
21155 builtin and then its argument prototype would still apply. */
21156 char pthread_create ();
21157 /* The GNU C library defines this for functions which it implements
21158 to always fail with ENOSYS. Some functions are actually named
21159 something starting with __ and the normal name is an alias. */
21160 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21163 char (*f) () = pthread_create;
21172 return f != pthread_create;
21177 rm -f conftest.$ac_objext conftest$ac_exeext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21179 (eval $ac_link) 2>conftest.er1
21181 grep -v '^ *+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_c_werror_flag"
21187 || test ! -s conftest.err'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest$ac_exeext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_func_pthread_create=yes
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ac_cv_func_pthread_create=no
21206 rm -f conftest.err conftest.$ac_objext \
21207 conftest$ac_exeext conftest.$ac_ext
21209 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21210 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21223 cat >>confdefs.h <<\_ACEOF
21229 CFLAGS=${CFLAGS--O}
21230 LDFLAGS=${LDFLAGS--O}
21231 DB_LIBS="${SQL_LFLAGS}"
21233 CPPFLAGS="$CPPFLAGS"
21258 # Finally we set appropriate distribution specific
21259 # variables and defaults
21261 # PFILES are platform specific files
21262 PFILES="platforms/Makefile"
21266 hostname=`uname -n | cut -d '.' -f 1`
21267 case "$DISTNAME" in
21270 PSCMD="ps -e -o pid,comm"
21271 PFILES="${PFILES} \
21272 platforms/aix/Makefile"
21273 TAPEDRIVE="/dev/rmt0.1"
21277 PTHREAD_LIB="-lpthread -lexc"
21278 if test "${CC}" = "gcc" ; then
21285 TAPEDRIVE="/dev/nrmt0"
21288 DISTVER=`uname -a |awk '{print $3}'`
21289 TAPEDRIVE="/dev/nrmt0"
21290 PTHREAD_LIB="-pthread"
21291 CFLAGS="${CFLAGS} -pthread"
21292 PSCMD="ps -x -o pid,command"
21295 PFILES="${PFILES} \
21296 platforms/bsdi/Makefile \
21297 platforms/bsdi/bacula-fd \
21298 platforms/bsdi/bacula-sd \
21299 platforms/bsdi/bacula-dir"
21300 largefile_support="yes"
21303 DISTVER=`uname -a |awk '{print $3}'`
21304 TAPEDRIVE="/dev/nrst0"
21306 WCFLAGS="-mwindows"
21307 WLDFLAGS="-mwindows"
21311 TAPEDRIVE="/dev/nst0"
21312 PSCMD="ps -e -o pid,command"
21314 PFILES="${PFILES} \
21315 platforms/darwin/Makefile"
21318 DISTVER=`cat /etc/debian_version`
21319 TAPEDRIVE="/dev/nrst0"
21320 PSCMD="ps -e -o pid,command"
21323 DISTVER=`uname -a |awk '{print $3}'`
21324 VER=`echo $DISTVER | cut -c 1`
21325 if test x$VER = x4 ; then
21326 PTHREAD_LIB="-pthread"
21327 CFLAGS="${CFLAGS} -pthread"
21331 TAPEDRIVE="/dev/nrsa0"
21332 PSCMD="ps -x -o pid,command"
21333 PFILES="${PFILES} \
21334 platforms/freebsd/Makefile \
21335 platforms/freebsd/bacula-fd \
21336 platforms/freebsd/bacula-sd \
21337 platforms/freebsd/bacula-dir"
21338 largefile_support="yes"
21341 PSCMD="UNIX95=1 ps -e -o pid,comm"
21342 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21344 TAPEDRIVE="/dev/rmt/0hnb"
21345 PTHREAD_LIB="-lpthread"
21346 cat >>confdefs.h <<\_ACEOF
21347 #define _INCLUDE_LONGLONG 1
21353 TAPEDRIVE="/dev/rmt/0cbn"
21354 PSCMD="ps -e -o pid,comm"
21355 PFILES="${PFILES} \
21356 platforms/irix/Makefile \
21357 platforms/irix/bacula-fd \
21358 platforms/irix/bacula-sd \
21359 platforms/irix/bacula-dir"
21362 DISTVER=`uname -a |awk '{print $3}'`
21365 TAPEDRIVE="/dev/nrst0"
21366 PSCMD="ps -a -o pid,command"
21367 PTHREAD_LIB="-pthread"
21368 CFLAGS="${CFLAGS} -pthread"
21371 DISTVER=`uname -a |awk '{print $3}'`
21374 TAPEDRIVE="/dev/nrst0"
21375 PSCMD="ps -ax -o pid,command"
21376 PTHREAD_LIB="-pthread"
21377 CFLAGS="${CFLAGS} -pthread"
21378 PFILES="${PFILES} \
21379 platforms/openbsd/Makefile \
21380 platforms/openbsd/bacula-fd \
21381 platforms/openbsd/bacula-sd \
21382 platforms/openbsd/bacula-dir"
21385 if test -f /etc/whitebox-release ; then
21386 f=/etc/whitebox-release
21388 f=/etc/redhat-release
21390 if test `cat $f | grep release |\
21391 cut -f 3 -d ' '`x = "Enterprise"x ; then
21392 DISTVER="Enterprise "`cat $f | grep release |\
21395 DISTVER=`cat /etc/redhat-release | grep release |\
21398 TAPEDRIVE="/dev/nst0"
21399 PSCMD="ps -e -o pid,command"
21400 PFILES="${PFILES} \
21401 platforms/redhat/Makefile \
21402 platforms/redhat/bacula-fd \
21403 platforms/redhat/bacula-sd \
21404 platforms/redhat/bacula-dir \
21405 platforms/redhat/bacula.spec \
21407 hostname=`hostname -s`
21410 DISTVER=`cat /etc/mandrake-release | grep release |\
21412 TAPEDRIVE="/dev/nst0"
21413 PSCMD="ps -e -o pid,command"
21414 PFILES="${PFILES} \
21415 platforms/mandrake/Makefile \
21416 platforms/mandrake/bacula-fd \
21417 platforms/mandrake/bacula-sd \
21418 platforms/mandrake/bacula-dir \
21419 platforms/mandrake/bacula.spec \
21423 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21424 TAPEDRIVE="/dev/nst0"
21425 PSCMD="ps -e -o pid,command"
21426 PFILES="${PFILES} \
21427 platforms/gentoo/Makefile \
21428 platforms/gentoo/bacula-init \
21429 platforms/gentoo/bacula-fd \
21430 platforms/gentoo/bacula-sd \
21431 platforms/gentoo/bacula-dir"
21434 DISTVER=`cat /etc/slackware-version`
21435 TAPEDRIVE="/dev/nst0"
21436 PSCMD="ps -e -o pid,command"
21437 PFILES="${PFILES} \
21438 platforms/slackware/Makefile \
21439 platforms/slackware/rc.bacula-fd \
21440 platforms/slackware/rc.bacula-sd \
21441 platforms/slackware/rc.bacula-dir\
21442 platforms/slackware/functions.bacula"
21446 TAPEDRIVE="/dev/rmt/0cbn"
21447 PSCMD="ps -e -o pid,comm"
21448 PFILES="${PFILES} \
21449 platforms/solaris/Makefile \
21450 platforms/solaris/bacula-fd \
21451 platforms/solaris/bacula-sd \
21452 platforms/solaris/bacula-dir"
21453 if test x$DISTVER = x5.6 ; then
21454 cat >>confdefs.h <<\_ACEOF
21455 #define HAVE_OLD_SOCKOPT 1
21459 LIBS="$LIBS -lresolv"
21462 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21464 TAPEDRIVE="/dev/nst0"
21465 PSCMD="ps -e -o pid,command"
21466 PFILES="${PFILES} \
21467 platforms/suse/Makefile \
21468 platforms/suse/bacula-fd \
21469 platforms/suse/bacula-sd \
21470 platforms/suse/bacula-dir \
21471 platforms/suse/bacula \
21472 platforms/suse/bacula.spec"
21477 TAPEDRIVE="/dev/nst0"
21478 PSCMD="ps -e -o pid,command"
21479 PFILES="${PFILES} \
21480 platforms/suse/Makefile \
21481 platforms/suse/bacula-fd \
21482 platforms/suse/bacula-sd \
21483 platforms/suse/bacula-dir"
21487 TAPEDRIVE="/dev/nst0"
21490 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21496 LIBS="$PTHREAD_LIB $LIBS"
21498 cat >>confdefs.h <<_ACEOF
21502 cat >>confdefs.h <<_ACEOF
21513 MCOMMON=./autoconf/Make.common
21516 if test "x${subsysdir}" = "x${sbindir}" ; then
21519 echo "You have set both --sbindir and --with-subsys-dir"
21520 echo " equal to: ${subsysdir} "
21521 echo "This is not permitted. Please reconfigure."
21523 echo "Aborting configuration ..."
21529 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 doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21530 ac_config_commands="$ac_config_commands default"
21531 cat >confcache <<\_ACEOF
21532 # This file is a shell script that caches the results of configure
21533 # tests run on this system so they can be shared between configure
21534 # scripts and configure runs, see configure's option --config-cache.
21535 # It is not useful on other systems. If it contains results you don't
21536 # want to keep, you may remove or edit it.
21538 # config.status only pays attention to the cache file if you give it
21539 # the --recheck option to rerun configure.
21541 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21542 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21543 # following values.
21547 # The following way of writing the cache mishandles newlines in values,
21548 # but we know of no workaround that is simple, portable, and efficient.
21549 # So, don't put newlines in cache variables' values.
21550 # Ultrix sh set writes to stderr and can't be redirected directly,
21551 # and sets the high bit in the cache file unless we assign to the vars.
21554 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21556 # `set' does not quote correctly, so add quotes (double-quote
21557 # substitution turns \\\\ into \\, and sed turns \\ into \).
21560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21563 # `set' quotes correctly as required by POSIX, so do not add quotes.
21565 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21574 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21576 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21577 if test -w $cache_file; then
21578 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21579 cat confcache >$cache_file
21581 echo "not updating unwritable cache $cache_file"
21586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21587 # Let make expand exec_prefix.
21588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21590 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21591 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21592 # trailing colons and then remove the whole line if VPATH becomes empty
21593 # (actually we leave an empty line to preserve line numbers).
21594 if test "x$srcdir" = x.; then
21595 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21596 s/:*\$(srcdir):*/:/;
21597 s/:*\${srcdir}:*/:/;
21599 s/^\([^=]*=[ ]*\):*/\1/;
21605 DEFS=-DHAVE_CONFIG_H
21609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21610 # 1. Remove the extension, and $U if already installed.
21611 ac_i=`echo "$ac_i" |
21612 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21614 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21615 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21617 LIBOBJS=$ac_libobjs
21619 LTLIBOBJS=$ac_ltlibobjs
21623 : ${CONFIG_STATUS=./config.status}
21624 ac_clean_files_save=$ac_clean_files
21625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21626 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21627 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21628 cat >$CONFIG_STATUS <<_ACEOF
21630 # Generated by $as_me.
21631 # Run this file to recreate the current configuration.
21632 # Compiler output produced by configure, useful for debugging
21633 # configure, is in config.log if it exists.
21636 ac_cs_recheck=false
21638 SHELL=\${CONFIG_SHELL-$SHELL}
21641 cat >>$CONFIG_STATUS <<\_ACEOF
21642 ## --------------------- ##
21643 ## M4sh Initialization. ##
21644 ## --------------------- ##
21646 # Be Bourne compatible
21647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21650 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21651 # is contrary to our usage. Disable this feature.
21652 alias -g '${1+"$@"}'='"$@"'
21653 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21656 DUALCASE=1; export DUALCASE # for MKS sh
21658 # Support unset when possible.
21659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21666 # Work around bugs in pre-3.0 UWIN ksh.
21667 $as_unset ENV MAIL MAILPATH
21674 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21675 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21676 LC_TELEPHONE LC_TIME
21678 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21679 eval $as_var=C; export $as_var
21685 # Required to use basename.
21686 if expr a : '\(a\)' >/dev/null 2>&1; then
21692 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21693 as_basename=basename
21699 # Name of the executable.
21700 as_me=`$as_basename "$0" ||
21701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21702 X"$0" : 'X\(//\)$' \| \
21703 X"$0" : 'X\(/\)$' \| \
21704 . : '\(.\)' 2>/dev/null ||
21706 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21707 /^X\/\(\/\/\)$/{ s//\1/; q; }
21708 /^X\/\(\/\).*/{ s//\1/; q; }
21712 # PATH needs CR, and LINENO needs CR and PATH.
21713 # Avoid depending upon Character Ranges.
21714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21717 as_cr_digits='0123456789'
21718 as_cr_alnum=$as_cr_Letters$as_cr_digits
21720 # The user is always right.
21721 if test "${PATH_SEPARATOR+set}" != set; then
21722 echo "#! /bin/sh" >conf$$.sh
21723 echo "exit 0" >>conf$$.sh
21725 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21734 as_lineno_1=$LINENO
21735 as_lineno_2=$LINENO
21736 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21737 test "x$as_lineno_1" != "x$as_lineno_2" &&
21738 test "x$as_lineno_3" = "x$as_lineno_2" || {
21739 # Find who we are. Look in the path if we contain no path at all
21742 *[\\/]* ) as_myself=$0 ;;
21743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21744 for as_dir in $PATH
21747 test -z "$as_dir" && as_dir=.
21748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21753 # We did not find ourselves, most probably we were run as `sh COMMAND'
21754 # in which case we are not to be found in the path.
21755 if test "x$as_myself" = x; then
21758 if test ! -f "$as_myself"; then
21759 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21760 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21761 { (exit 1); exit 1; }; }
21763 case $CONFIG_SHELL in
21765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21769 test -z "$as_dir" && as_dir=.
21770 for as_base in sh bash ksh sh5; do
21773 if ("$as_dir/$as_base" -c '
21774 as_lineno_1=$LINENO
21775 as_lineno_2=$LINENO
21776 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21777 test "x$as_lineno_1" != "x$as_lineno_2" &&
21778 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21779 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21780 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21781 CONFIG_SHELL=$as_dir/$as_base
21782 export CONFIG_SHELL
21783 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21791 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21792 # uniformly replaced by the line number. The first 'sed' inserts a
21793 # line-number line before each line; the second 'sed' does the real
21794 # work. The second script uses 'N' to pair each line-number line
21795 # with the numbered line, and appends trailing '-' during
21796 # substitution so that $LINENO is not a special case at line end.
21797 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21798 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21799 sed '=' <$as_myself |
21804 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21807 s,^['$as_cr_digits']*\n,,
21808 ' >$as_me.lineno &&
21809 chmod +x $as_me.lineno ||
21810 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21811 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21812 { (exit 1); exit 1; }; }
21814 # Don't try to exec as it changes $[0], causing all sort of problems
21815 # (the dirname of $[0] is not the place where we might find the
21816 # original and so on. Autoconf is especially sensible to this).
21818 # Exit status is that of the last command.
21823 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21824 *c*,-n*) ECHO_N= ECHO_C='
21826 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21827 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21830 if expr a : '\(a\)' >/dev/null 2>&1; then
21836 rm -f conf$$ conf$$.exe conf$$.file
21838 if ln -s conf$$.file conf$$ 2>/dev/null; then
21839 # We could just check for DJGPP; but this test a) works b) is more generic
21840 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21841 if test -f conf$$.exe; then
21842 # Don't use ln at all; we don't have any links
21847 elif ln conf$$.file conf$$ 2>/dev/null; then
21852 rm -f conf$$ conf$$.exe conf$$.file
21854 if mkdir -p . 2>/dev/null; then
21857 test -d ./-p && rmdir ./-p
21861 as_executable_p="test -f"
21863 # Sed expression to map a string onto a valid CPP name.
21864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21866 # Sed expression to map a string onto a valid variable name.
21867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21871 # We need space, tab and new line, in precisely that order.
21881 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21882 # report actual input values of CONFIG_FILES etc. instead of their
21883 # values after options handling. Logging --version etc. is OK.
21887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21888 ## Running $as_me. ##
21893 This file was extended by $as_me, which was
21894 generated by GNU Autoconf 2.59. Invocation command line was
21896 CONFIG_FILES = $CONFIG_FILES
21897 CONFIG_HEADERS = $CONFIG_HEADERS
21898 CONFIG_LINKS = $CONFIG_LINKS
21899 CONFIG_COMMANDS = $CONFIG_COMMANDS
21903 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21907 # Files that config.status was made for.
21908 if test -n "$ac_config_files"; then
21909 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21912 if test -n "$ac_config_headers"; then
21913 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21916 if test -n "$ac_config_links"; then
21917 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21920 if test -n "$ac_config_commands"; then
21921 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21924 cat >>$CONFIG_STATUS <<\_ACEOF
21927 \`$as_me' instantiates files from templates according to the
21928 current configuration.
21930 Usage: $0 [OPTIONS] [FILE]...
21932 -h, --help print this help, then exit
21933 -V, --version print version number, then exit
21934 -q, --quiet do not print progress messages
21935 -d, --debug don't remove temporary files
21936 --recheck update $as_me by reconfiguring in the same conditions
21937 --file=FILE[:TEMPLATE]
21938 instantiate the configuration file FILE
21939 --header=FILE[:TEMPLATE]
21940 instantiate the configuration header FILE
21942 Configuration files:
21945 Configuration headers:
21948 Configuration commands:
21951 Report bugs to <bug-autoconf@gnu.org>."
21954 cat >>$CONFIG_STATUS <<_ACEOF
21957 configured by $0, generated by GNU Autoconf 2.59,
21958 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21960 Copyright (C) 2003 Free Software Foundation, Inc.
21961 This config.status script is free software; the Free Software Foundation
21962 gives unlimited permission to copy, distribute and modify it."
21967 cat >>$CONFIG_STATUS <<\_ACEOF
21968 # If no file are specified by the user, then we need to provide default
21969 # value. By we need to know if files were specified by the user.
21975 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21976 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21984 *) # This is not an option, so the user has probably given explicit
21987 ac_need_defaults=false;;
21991 # Handling of the options.
21993 cat >>$CONFIG_STATUS <<\_ACEOF
21994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21996 --version | --vers* | -V )
21997 echo "$ac_cs_version"; exit 0 ;;
21999 # Conflict between --help and --header
22000 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22001 Try \`$0 --help' for more information." >&5
22002 echo "$as_me: error: ambiguous option: $1
22003 Try \`$0 --help' for more information." >&2;}
22004 { (exit 1); exit 1; }; };;
22005 --help | --hel | -h )
22006 echo "$ac_cs_usage"; exit 0 ;;
22007 --debug | --d* | -d )
22009 --file | --fil | --fi | --f )
22011 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22012 ac_need_defaults=false;;
22013 --header | --heade | --head | --hea )
22015 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22016 ac_need_defaults=false;;
22017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22021 # This is an error.
22022 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22023 Try \`$0 --help' for more information." >&5
22024 echo "$as_me: error: unrecognized option: $1
22025 Try \`$0 --help' for more information." >&2;}
22026 { (exit 1); exit 1; }; } ;;
22028 *) ac_config_targets="$ac_config_targets $1" ;;
22034 ac_configure_extra_args=
22036 if $ac_cs_silent; then
22038 ac_configure_extra_args="$ac_configure_extra_args --silent"
22042 cat >>$CONFIG_STATUS <<_ACEOF
22043 if \$ac_cs_recheck; then
22044 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22045 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22054 cat >>$CONFIG_STATUS <<\_ACEOF
22055 for ac_config_target in $ac_config_targets
22057 case "$ac_config_target" in
22058 # Handling of arguments.
22059 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22060 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22061 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22062 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22063 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22064 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22065 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22066 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22067 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22068 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22069 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22070 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22071 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22072 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22073 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22074 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22075 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22076 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22077 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22078 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22079 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22080 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22081 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22082 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22083 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22084 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22085 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22086 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22087 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22088 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22089 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22090 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22091 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22092 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22093 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22094 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22095 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22096 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22097 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22098 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22099 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22100 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22101 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22102 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22103 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22104 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22105 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22106 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22107 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22108 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22109 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22110 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22111 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22112 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22113 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22114 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22115 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22116 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22117 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22118 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22119 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22120 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22121 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22122 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22123 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22124 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22125 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22126 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22127 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22128 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22129 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22130 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22131 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22132 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22133 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22134 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22135 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22136 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22137 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22138 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22139 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22140 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22141 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22142 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22143 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22144 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22145 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22146 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22147 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22148 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22149 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22150 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22151 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22152 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22153 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22154 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22155 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22156 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22157 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22158 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22159 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22160 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22162 { (exit 1); exit 1; }; };;
22166 # If the user did not use the arguments to specify the items to instantiate,
22167 # then the envvar interface is used. Set only those that are not.
22168 # We use the long form for the default assignment because of an extremely
22169 # bizarre bug on SunOS 4.1.3.
22170 if $ac_need_defaults; then
22171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22176 # Have a temporary directory for convenience. Make it in the build tree
22177 # simply because there is no reason to put it here, and in addition,
22178 # creating and moving files from /tmp can sometimes cause problems.
22179 # Create a temporary directory, and hook for its removal unless debugging.
22182 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22183 trap '{ (exit 1); exit 1; }' 1 2 13 15
22186 # Create a (secure) tmp directory for tmp files.
22189 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22190 test -n "$tmp" && test -d "$tmp"
22193 tmp=./confstat$$-$RANDOM
22194 (umask 077 && mkdir $tmp)
22197 echo "$me: cannot create a temporary directory in ." >&2
22198 { (exit 1); exit 1; }
22203 cat >>$CONFIG_STATUS <<_ACEOF
22206 # CONFIG_FILES section.
22209 # No need to generate the scripts if there are no CONFIG_FILES.
22210 # This happens for instance when ./config.status config.h
22211 if test -n "\$CONFIG_FILES"; then
22212 # Protect against being on the right side of a sed subst in config.status.
22213 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22214 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22215 s,@SHELL@,$SHELL,;t t
22216 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22217 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22218 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22219 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22220 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22221 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22222 s,@exec_prefix@,$exec_prefix,;t t
22223 s,@prefix@,$prefix,;t t
22224 s,@program_transform_name@,$program_transform_name,;t t
22225 s,@bindir@,$bindir,;t t
22226 s,@sbindir@,$sbindir,;t t
22227 s,@libexecdir@,$libexecdir,;t t
22228 s,@datadir@,$datadir,;t t
22229 s,@sysconfdir@,$sysconfdir,;t t
22230 s,@sharedstatedir@,$sharedstatedir,;t t
22231 s,@localstatedir@,$localstatedir,;t t
22232 s,@libdir@,$libdir,;t t
22233 s,@includedir@,$includedir,;t t
22234 s,@oldincludedir@,$oldincludedir,;t t
22235 s,@infodir@,$infodir,;t t
22236 s,@mandir@,$mandir,;t t
22237 s,@build_alias@,$build_alias,;t t
22238 s,@host_alias@,$host_alias,;t t
22239 s,@target_alias@,$target_alias,;t t
22240 s,@DEFS@,$DEFS,;t t
22241 s,@ECHO_C@,$ECHO_C,;t t
22242 s,@ECHO_N@,$ECHO_N,;t t
22243 s,@ECHO_T@,$ECHO_T,;t t
22244 s,@LIBS@,$LIBS,;t t
22245 s,@BUILD_DIR@,$BUILD_DIR,;t t
22246 s,@TRUEPRG@,$TRUEPRG,;t t
22247 s,@FALSEPRG@,$FALSEPRG,;t t
22248 s,@VERSION@,$VERSION,;t t
22249 s,@DATE@,$DATE,;t t
22250 s,@LSMDATE@,$LSMDATE,;t t
22252 s,@CFLAGS@,$CFLAGS,;t t
22253 s,@LDFLAGS@,$LDFLAGS,;t t
22254 s,@CPPFLAGS@,$CPPFLAGS,;t t
22255 s,@ac_ct_CC@,$ac_ct_CC,;t t
22256 s,@EXEEXT@,$EXEEXT,;t t
22257 s,@OBJEXT@,$OBJEXT,;t t
22259 s,@CXXFLAGS@,$CXXFLAGS,;t t
22260 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22262 s,@EGREP@,$EGREP,;t t
22263 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22264 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22265 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22266 s,@RANLIB@,$RANLIB,;t t
22267 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22272 s,@ECHO@,$ECHO,;t t
22276 s,@OPENSSL@,$OPENSSL,;t t
22278 s,@MKISOFS@,$MKISOFS,;t t
22279 s,@PYTHON@,$PYTHON,;t t
22280 s,@GROWISOFS@,$GROWISOFS,;t t
22281 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22282 s,@PKGCONFIG@,$PKGCONFIG,;t t
22283 s,@WXCONFIG@,$WXCONFIG,;t t
22284 s,@CDRECORD@,$CDRECORD,;t t
22285 s,@PIDOF@,$PIDOF,;t t
22287 s,@ARFLAGS@,$ARFLAGS,;t t
22288 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22289 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22290 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22291 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22292 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22293 s,@build@,$build,;t t
22294 s,@build_cpu@,$build_cpu,;t t
22295 s,@build_vendor@,$build_vendor,;t t
22296 s,@build_os@,$build_os,;t t
22297 s,@host@,$host,;t t
22298 s,@host_cpu@,$host_cpu,;t t
22299 s,@host_vendor@,$host_vendor,;t t
22300 s,@host_os@,$host_os,;t t
22301 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22302 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22303 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22304 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22305 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22306 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22307 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22308 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22309 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22310 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22311 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22312 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22313 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22314 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22315 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22316 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22317 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22318 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22319 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22320 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22321 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22322 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22323 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22324 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22325 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22326 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22327 s,@MSGFMT@,$MSGFMT,;t t
22328 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22329 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22330 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22331 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22332 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22333 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22334 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22335 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22336 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22337 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22338 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22339 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22340 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22341 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22342 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22343 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22344 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22345 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22346 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22347 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22348 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22349 s,@GNOME_DIR@,$GNOME_DIR,;t t
22350 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22351 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22352 s,@WX_DIR@,$WX_DIR,;t t
22353 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22354 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22355 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22356 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22357 s,@STATIC_FD@,$STATIC_FD,;t t
22358 s,@STATIC_SD@,$STATIC_SD,;t t
22359 s,@STATIC_DIR@,$STATIC_DIR,;t t
22360 s,@STATIC_CONS@,$STATIC_CONS,;t t
22361 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22362 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22363 s,@ALL_DIRS@,$ALL_DIRS,;t t
22364 s,@CONS_INC@,$CONS_INC,;t t
22365 s,@CONS_OBJ@,$CONS_OBJ,;t t
22366 s,@CONS_SRC@,$CONS_SRC,;t t
22367 s,@CONS_LIBS@,$CONS_LIBS,;t t
22368 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22369 s,@READLINE_SRC@,$READLINE_SRC,;t t
22370 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22371 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22372 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22373 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22374 s,@working_dir@,$working_dir,;t t
22375 s,@scriptdir@,$scriptdir,;t t
22376 s,@dump_email@,$dump_email,;t t
22377 s,@job_email@,$job_email,;t t
22378 s,@smtp_host@,$smtp_host,;t t
22379 s,@piddir@,$piddir,;t t
22380 s,@subsysdir@,$subsysdir,;t t
22381 s,@baseport@,$baseport,;t t
22382 s,@dir_port@,$dir_port,;t t
22383 s,@fd_port@,$fd_port,;t t
22384 s,@sd_port@,$sd_port,;t t
22385 s,@dir_password@,$dir_password,;t t
22386 s,@fd_password@,$fd_password,;t t
22387 s,@sd_password@,$sd_password,;t t
22388 s,@mon_dir_password@,$mon_dir_password,;t t
22389 s,@mon_fd_password@,$mon_fd_password,;t t
22390 s,@mon_sd_password@,$mon_sd_password,;t t
22391 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22392 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22393 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22394 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22395 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22396 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22397 s,@dir_user@,$dir_user,;t t
22398 s,@dir_group@,$dir_group,;t t
22399 s,@sd_user@,$sd_user,;t t
22400 s,@sd_group@,$sd_group,;t t
22401 s,@fd_user@,$fd_user,;t t
22402 s,@fd_group@,$fd_group,;t t
22403 s,@SBINPERM@,$SBINPERM,;t t
22404 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22405 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22406 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22407 s,@cats@,$cats,;t t
22408 s,@DB_NAME@,$DB_NAME,;t t
22409 s,@GETCONF@,$GETCONF,;t t
22410 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22411 s,@X_CFLAGS@,$X_CFLAGS,;t t
22412 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22413 s,@X_LIBS@,$X_LIBS,;t t
22414 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22415 s,@LIBOBJS@,$LIBOBJS,;t t
22416 s,@ALLOCA@,$ALLOCA,;t t
22417 s,@FDLIBS@,$FDLIBS,;t t
22418 s,@DEBUG@,$DEBUG,;t t
22419 s,@DINCLUDE@,$DINCLUDE,;t t
22420 s,@DLIB@,$DLIB,;t t
22421 s,@DB_LIBS@,$DB_LIBS,;t t
22422 s,@WCFLAGS@,$WCFLAGS,;t t
22423 s,@WLDFLAGS@,$WLDFLAGS,;t t
22424 s,@OBJLIST@,$OBJLIST,;t t
22425 s,@hostname@,$hostname,;t t
22426 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22427 s,@PSCMD@,$PSCMD,;t t
22428 s,@WIN32@,$WIN32,;t t
22429 s,@MACOSX@,$MACOSX,;t t
22430 s,@DISTNAME@,$DISTNAME,;t t
22431 s,@DISTVER@,$DISTVER,;t t
22432 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22433 /@MCOMMON@/r $MCOMMON
22439 cat >>$CONFIG_STATUS <<\_ACEOF
22440 # Split the substitutions into bite-sized pieces for seds with
22441 # small command number limits, like on Digital OSF/1 and HP-UX.
22442 ac_max_sed_lines=48
22443 ac_sed_frag=1 # Number of current file.
22444 ac_beg=1 # First line for current file.
22445 ac_end=$ac_max_sed_lines # Line after last line for current file.
22448 while $ac_more_lines; do
22449 if test $ac_beg -gt 1; then
22450 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22452 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22454 if test ! -s $tmp/subs.frag; then
22455 ac_more_lines=false
22457 # The purpose of the label and of the branching condition is to
22458 # speed up the sed processing (if there are no `@' at all, there
22459 # is no need to browse any of the substitutions).
22460 # These are the two extra sed commands mentioned above.
22462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22463 if test -z "$ac_sed_cmds"; then
22464 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22466 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22468 ac_sed_frag=`expr $ac_sed_frag + 1`
22470 ac_end=`expr $ac_end + $ac_max_sed_lines`
22473 if test -z "$ac_sed_cmds"; then
22476 fi # test -n "$CONFIG_FILES"
22479 cat >>$CONFIG_STATUS <<\_ACEOF
22480 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22483 - | *:- | *:-:* ) # input from stdin
22485 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22487 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22489 * ) ac_file_in=$ac_file.in ;;
22492 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22493 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495 X"$ac_file" : 'X\(//\)[^/]' \| \
22496 X"$ac_file" : 'X\(//\)$' \| \
22497 X"$ac_file" : 'X\(/\)' \| \
22498 . : '\(.\)' 2>/dev/null ||
22500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22502 /^X\(\/\/\)$/{ s//\1/; q; }
22503 /^X\(\/\).*/{ s//\1/; q; }
22505 { if $as_mkdir_p; then
22510 while test ! -d "$as_dir"; do
22511 as_dirs="$as_dir $as_dirs"
22512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22514 X"$as_dir" : 'X\(//\)[^/]' \| \
22515 X"$as_dir" : 'X\(//\)$' \| \
22516 X"$as_dir" : 'X\(/\)' \| \
22517 . : '\(.\)' 2>/dev/null ||
22519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22521 /^X\(\/\/\)$/{ s//\1/; q; }
22522 /^X\(\/\).*/{ s//\1/; q; }
22525 test ! -n "$as_dirs" || mkdir $as_dirs
22526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22528 { (exit 1); exit 1; }; }; }
22532 if test "$ac_dir" != .; then
22533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22534 # A "../" for each directory in $ac_dir_suffix.
22535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22537 ac_dir_suffix= ac_top_builddir=
22541 .) # No --srcdir option. We are building in place.
22543 if test -z "$ac_top_builddir"; then
22546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22548 [\\/]* | ?:[\\/]* ) # Absolute path.
22549 ac_srcdir=$srcdir$ac_dir_suffix;
22550 ac_top_srcdir=$srcdir ;;
22551 *) # Relative path.
22552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22556 # Do not use `cd foo && pwd` to compute absolute paths, because
22557 # the directories may not exist.
22559 .) ac_abs_builddir="$ac_dir";;
22562 .) ac_abs_builddir=`pwd`;;
22563 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22564 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22567 case $ac_abs_builddir in
22568 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22570 case ${ac_top_builddir}. in
22571 .) ac_abs_top_builddir=$ac_abs_builddir;;
22572 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22573 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22576 case $ac_abs_builddir in
22577 .) ac_abs_srcdir=$ac_srcdir;;
22580 .) ac_abs_srcdir=$ac_abs_builddir;;
22581 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22582 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22585 case $ac_abs_builddir in
22586 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22588 case $ac_top_srcdir in
22589 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22590 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22591 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22598 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22601 if test x"$ac_file" != x-; then
22602 { echo "$as_me:$LINENO: creating $ac_file" >&5
22603 echo "$as_me: creating $ac_file" >&6;}
22606 # Let's still pretend it is `configure' which instantiates (i.e., don't
22607 # use $as_me), people would be surprised to read:
22608 # /* config.h. Generated by config.status. */
22609 if test x"$ac_file" = x-; then
22612 configure_input="$ac_file. "
22614 configure_input=$configure_input"Generated from `echo $ac_file_in |
22615 sed 's,.*/,,'` by configure."
22617 # First look for the input files in the build tree, otherwise in the
22619 ac_file_inputs=`IFS=:
22620 for f in $ac_file_in; do
22622 -) echo $tmp/stdin ;;
22624 # Absolute (can't be DOS-style, as IFS=:)
22625 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22626 echo "$as_me: error: cannot find input file: $f" >&2;}
22627 { (exit 1); exit 1; }; }
22630 if test -f "$f"; then
22633 elif test -f "$srcdir/$f"; then
22638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22639 echo "$as_me: error: cannot find input file: $f" >&2;}
22640 { (exit 1); exit 1; }; }
22643 done` || { (exit 1); exit 1; }
22645 cat >>$CONFIG_STATUS <<_ACEOF
22649 cat >>$CONFIG_STATUS <<\_ACEOF
22651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22652 s,@configure_input@,$configure_input,;t t
22653 s,@srcdir@,$ac_srcdir,;t t
22654 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22655 s,@top_srcdir@,$ac_top_srcdir,;t t
22656 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22657 s,@builddir@,$ac_builddir,;t t
22658 s,@abs_builddir@,$ac_abs_builddir,;t t
22659 s,@top_builddir@,$ac_top_builddir,;t t
22660 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22661 s,@INSTALL@,$ac_INSTALL,;t t
22662 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22664 if test x"$ac_file" != x-; then
22665 mv $tmp/out $ac_file
22673 cat >>$CONFIG_STATUS <<\_ACEOF
22676 # CONFIG_HEADER section.
22679 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22680 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22682 # ac_d sets the value in "#define NAME VALUE" lines.
22683 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22684 ac_dB='[ ].*$,\1#\2'
22687 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22688 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22689 ac_uB='$,\1#\2define\3'
22693 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22696 - | *:- | *:-:* ) # input from stdin
22698 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22700 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22702 * ) ac_file_in=$ac_file.in ;;
22705 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22706 echo "$as_me: creating $ac_file" >&6;}
22708 # First look for the input files in the build tree, otherwise in the
22710 ac_file_inputs=`IFS=:
22711 for f in $ac_file_in; do
22713 -) echo $tmp/stdin ;;
22715 # Absolute (can't be DOS-style, as IFS=:)
22716 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22717 echo "$as_me: error: cannot find input file: $f" >&2;}
22718 { (exit 1); exit 1; }; }
22719 # Do quote $f, to prevent DOS paths from being IFS'd.
22722 if test -f "$f"; then
22725 elif test -f "$srcdir/$f"; then
22730 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22731 echo "$as_me: error: cannot find input file: $f" >&2;}
22732 { (exit 1); exit 1; }; }
22735 done` || { (exit 1); exit 1; }
22736 # Remove the trailing spaces.
22737 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22741 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22742 # `conftest.undefs', that substitutes the proper values into
22743 # config.h.in to produce config.h. The first handles `#define'
22744 # templates, and the second `#undef' templates.
22745 # And first: Protect against being on the right side of a sed subst in
22746 # config.status. Protect against being in an unquoted here document
22747 # in config.status.
22748 rm -f conftest.defines conftest.undefs
22749 # Using a here document instead of a string reduces the quoting nightmare.
22750 # Putting comments in sed scripts is not portable.
22752 # `end' is used to avoid that the second main sed command (meant for
22753 # 0-ary CPP macros) applies to n-ary macro definitions.
22754 # See the Autoconf documentation for `clear'.
22755 cat >confdef2sed.sed <<\_ACEOF
22760 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22762 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22765 # If some macros were called several times there might be several times
22766 # the same #defines, which is useless. Nevertheless, we may not want to
22767 # sort them, since we want the *last* AC-DEFINE to be honored.
22768 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22769 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22770 rm -f confdef2sed.sed
22772 # This sed command replaces #undef with comments. This is necessary, for
22773 # example, in the case of _POSIX_SOURCE, which is predefined and required
22774 # on some systems where configure will not decide to define it.
22775 cat >>conftest.undefs <<\_ACEOF
22776 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22779 # Break up conftest.defines because some shells have a limit on the size
22780 # of here documents, and old seds have small limits too (100 cmds).
22781 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22782 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22783 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22784 echo ' :' >>$CONFIG_STATUS
22785 rm -f conftest.tail
22786 while grep . conftest.defines >/dev/null
22788 # Write a limited-size here document to $tmp/defines.sed.
22789 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22790 # Speed up: don't consider the non `#define' lines.
22791 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22792 # Work around the forget-to-reset-the-flag bug.
22793 echo 't clr' >>$CONFIG_STATUS
22794 echo ': clr' >>$CONFIG_STATUS
22795 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22797 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22799 mv $tmp/out $tmp/in
22801 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22802 rm -f conftest.defines
22803 mv conftest.tail conftest.defines
22805 rm -f conftest.defines
22806 echo ' fi # grep' >>$CONFIG_STATUS
22807 echo >>$CONFIG_STATUS
22809 # Break up conftest.undefs because some shells have a limit on the size
22810 # of here documents, and old seds have small limits too (100 cmds).
22811 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22812 rm -f conftest.tail
22813 while grep . conftest.undefs >/dev/null
22815 # Write a limited-size here document to $tmp/undefs.sed.
22816 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22817 # Speed up: don't consider the non `#undef'
22818 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22819 # Work around the forget-to-reset-the-flag bug.
22820 echo 't clr' >>$CONFIG_STATUS
22821 echo ': clr' >>$CONFIG_STATUS
22822 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22824 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22826 mv $tmp/out $tmp/in
22828 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22829 rm -f conftest.undefs
22830 mv conftest.tail conftest.undefs
22832 rm -f conftest.undefs
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22835 # Let's still pretend it is `configure' which instantiates (i.e., don't
22836 # use $as_me), people would be surprised to read:
22837 # /* config.h. Generated by config.status. */
22838 if test x"$ac_file" = x-; then
22839 echo "/* Generated by configure. */" >$tmp/config.h
22841 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22843 cat $tmp/in >>$tmp/config.h
22845 if test x"$ac_file" != x-; then
22846 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22847 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22848 echo "$as_me: $ac_file is unchanged" >&6;}
22850 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22852 X"$ac_file" : 'X\(//\)[^/]' \| \
22853 X"$ac_file" : 'X\(//\)$' \| \
22854 X"$ac_file" : 'X\(/\)' \| \
22855 . : '\(.\)' 2>/dev/null ||
22857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22859 /^X\(\/\/\)$/{ s//\1/; q; }
22860 /^X\(\/\).*/{ s//\1/; q; }
22862 { if $as_mkdir_p; then
22867 while test ! -d "$as_dir"; do
22868 as_dirs="$as_dir $as_dirs"
22869 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22871 X"$as_dir" : 'X\(//\)[^/]' \| \
22872 X"$as_dir" : 'X\(//\)$' \| \
22873 X"$as_dir" : 'X\(/\)' \| \
22874 . : '\(.\)' 2>/dev/null ||
22876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22878 /^X\(\/\/\)$/{ s//\1/; q; }
22879 /^X\(\/\).*/{ s//\1/; q; }
22882 test ! -n "$as_dirs" || mkdir $as_dirs
22883 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22884 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22885 { (exit 1); exit 1; }; }; }
22888 mv $tmp/config.h $ac_file
22892 rm -f $tmp/config.h
22896 cat >>$CONFIG_STATUS <<\_ACEOF
22899 # CONFIG_COMMANDS section.
22901 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22902 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22903 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22904 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22905 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906 X"$ac_dest" : 'X\(//\)[^/]' \| \
22907 X"$ac_dest" : 'X\(//\)$' \| \
22908 X"$ac_dest" : 'X\(/\)' \| \
22909 . : '\(.\)' 2>/dev/null ||
22911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22913 /^X\(\/\/\)$/{ s//\1/; q; }
22914 /^X\(\/\).*/{ s//\1/; q; }
22916 { if $as_mkdir_p; then
22921 while test ! -d "$as_dir"; do
22922 as_dirs="$as_dir $as_dirs"
22923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925 X"$as_dir" : 'X\(//\)[^/]' \| \
22926 X"$as_dir" : 'X\(//\)$' \| \
22927 X"$as_dir" : 'X\(/\)' \| \
22928 . : '\(.\)' 2>/dev/null ||
22930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932 /^X\(\/\/\)$/{ s//\1/; q; }
22933 /^X\(\/\).*/{ s//\1/; q; }
22936 test ! -n "$as_dirs" || mkdir $as_dirs
22937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22939 { (exit 1); exit 1; }; }; }
22943 if test "$ac_dir" != .; then
22944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22945 # A "../" for each directory in $ac_dir_suffix.
22946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22948 ac_dir_suffix= ac_top_builddir=
22952 .) # No --srcdir option. We are building in place.
22954 if test -z "$ac_top_builddir"; then
22957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22959 [\\/]* | ?:[\\/]* ) # Absolute path.
22960 ac_srcdir=$srcdir$ac_dir_suffix;
22961 ac_top_srcdir=$srcdir ;;
22962 *) # Relative path.
22963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22967 # Do not use `cd foo && pwd` to compute absolute paths, because
22968 # the directories may not exist.
22970 .) ac_abs_builddir="$ac_dir";;
22973 .) ac_abs_builddir=`pwd`;;
22974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22978 case $ac_abs_builddir in
22979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22981 case ${ac_top_builddir}. in
22982 .) ac_abs_top_builddir=$ac_abs_builddir;;
22983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22987 case $ac_abs_builddir in
22988 .) ac_abs_srcdir=$ac_srcdir;;
22991 .) ac_abs_srcdir=$ac_abs_builddir;;
22992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22996 case $ac_abs_builddir in
22997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22999 case $ac_top_srcdir in
23000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23007 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23008 echo "$as_me: executing $ac_dest commands" >&6;}
23010 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23016 cat >>$CONFIG_STATUS <<\_ACEOF
23018 { (exit 0); exit 0; }
23020 chmod +x $CONFIG_STATUS
23021 ac_clean_files=$ac_clean_files_save
23024 # configure is writing to config.log, and then calls config.status.
23025 # config.status does its own redirection, appending to config.log.
23026 # Unfortunately, on DOS this fails, as config.log is still kept open
23027 # by configure, so config.status won't be able to write to it; its
23028 # output is simply discarded. So we exec the FD to /dev/null,
23029 # effectively closing config.log, so it can be properly (re)opened and
23030 # appended to by config.status. When coming back to configure, we
23031 # need to make the FD available again.
23032 if test "$no_create" != yes; then
23034 ac_config_status_args=
23035 test "$silent" = yes &&
23036 ac_config_status_args="$ac_config_status_args --quiet"
23038 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23040 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23041 # would make configure fail if this is the last instruction.
23042 $ac_cs_success || { (exit 1); exit 1; }
23047 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23048 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23053 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23054 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23056 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23057 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23059 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23060 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23062 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23063 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23065 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23066 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23068 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23069 chmod 755 $c/sqlite
23072 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23073 largefile_support="yes"
23077 # A whole lot of hand springs to get the compiler version.
23078 # This is because gcc changed the output in version 3.0
23080 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23081 if test "x${CCVERSION}" = "x" ; then
23082 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23084 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23085 if test x"${CXXVERSION}" = x ; then
23086 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23089 if test "x${subsysdir}" = "x${sbindir}" ; then
23092 echo "You have set --sbindir and --with-subsys-dir"
23093 echo " both equal to: ${subsysdir} "
23094 echo " This is not permitted. Please reconfigure."
23096 echo "Aborting configuration ..."
23102 if test "x${db_name}" = "xInternal" ; then
23105 echo "You have not specified either --enable-client-only or one of the"
23106 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23107 echo " This is not permitted. Please reconfigure."
23109 echo "Aborting the configuration ..."
23116 Configuration on `date`:
23118 Host: $host -- ${DISTNAME} ${DISTVER}
23119 Bacula version: ${VERSION} (${DATE})
23120 Source code location: ${srcdir}
23121 Install binaries: ${sbindir}
23122 Install config files: ${sysconfdir}
23123 Scripts directory: ${scriptdir}
23124 Working directory: ${working_dir}
23125 PID directory: ${piddir}
23126 Subsys directory: ${subsysdir}
23127 C Compiler: ${CC} ${CCVERSION}
23128 C++ Compiler: ${CXX} ${CXXVERSION}
23129 Compiler flags: ${WCFLAGS} ${CFLAGS}
23130 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23132 Statically Linked Tools: ${support_static_tools}
23133 Statically Linked FD: ${support_static_fd}
23134 Statically Linked SD: ${support_static_sd}
23135 Statically Linked DIR: ${support_static_dir}
23136 Statically Linked CONS: ${support_static_cons}
23137 Database type: ${db_name}
23138 Database lib: ${DB_LIBS}
23140 Job Output Email: ${job_email}
23141 Traceback Email: ${dump_email}
23142 SMTP Host Address: ${smtp_host}
23144 Director Port: ${dir_port}
23145 File daemon Port: ${fd_port}
23146 Storage daemon Port: ${sd_port}
23148 Director User: ${dir_user}
23149 Director Group: ${dir_group}
23150 Storage Daemon User: ${sd_user}
23151 Storage DaemonGroup: ${sd_group}
23152 File Daemon User: ${fd_user}
23153 File Daemon Group: ${fd_group}
23155 SQL binaries Directory ${SQL_BINDIR}
23157 Large file support: $largefile_support
23158 Bacula conio support: ${got_conio} ${CONS_LIBS}
23159 readline support: ${got_readline} ${PRTREADLINE_SRC}
23160 TCP Wrappers support: ${TCPW_MSG}
23161 TLS support: ${support_tls}
23162 ZLIB support: ${have_zlib}
23163 enable-smartalloc: ${support_smartalloc}
23164 enable-gnome: ${support_gnome} ${gnome_version}
23165 enable-wx-console: ${support_wx_console}
23166 enable-tray-monitor: ${support_tray_monitor}
23167 client-only: ${build_client_only}
23168 ACL support: ${have_acl}
23169 Python support: ${support_python} ${PYTHON_LIBS}