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 AWK ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
883 --with-python=DIR Include Python support. DIR is the Python base
884 install directory, default is to search through
885 a number of common places for the Python files.
886 --with-tcp-wrappers=DIR enable tcpwrappers support
887 --with-working-dir=PATH specify path of Bacula working directory
888 --with-scriptdir=PATH specify path of Bacula scripts directory
889 --with-dump-email=EMAIL dump email address
890 --with-job-email=EMAIL job output email address
891 --with-smtp-host=HOST SMTP mail host address
892 --with-pid-dir=PATH specify location of Bacula pid files
893 --with-subsys-dir=PATH specify location of Bacula subsys file
894 --with-baseport=PORT specify base port address for daemons
895 --with-dir-password=PASSWORD specify Director's password
896 --with-fd-password=PASSWORD specify Client's password
897 --with-sd-password=PASSWORD specify Storage daemon's password
898 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
899 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
900 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
901 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
902 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
903 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
904 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
905 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
906 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
907 --with-dir-user=USER specify user for Director daemon
908 --with-dir-group=GROUP specify group for Director daemon
909 --with-sd-user=USER specify user for Storage daemon
910 --with-sd-group=GROUP specify group for Storage daemon
911 --with-fd-user=USER specify user for File daemon
912 --with-fd-group=GROUP specify group for File daemon
913 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
914 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
915 base install directory, defaults to /usr/local/pgsql
917 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
918 install directory, default is to search through
919 a number of common places for the MySQL files.
921 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
922 install directory, default is to search through
923 a number of common places for the MySQL files.
925 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
926 install directory, default is to search through
927 a number of common places for the SQLite3 files.
929 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
930 install directory, default is to search through
931 a number of common places for the SQLite files.
932 --with-x use the X Window System
934 Some influential environment variables:
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CXX C++ compiler command
942 CXXFLAGS C++ compiler flags
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
963 ac_dir_suffix= ac_top_builddir=
967 .) # No --srcdir option. We are building in place.
969 if test -z "$ac_top_builddir"; then
972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
985 .) ac_abs_builddir="$ac_dir";;
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1032 $ac_configure --help
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_must_keep_next=false
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144 -* ) ac_must_keep_next=true ;;
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1173 # The following way of writing the cache mishandles newlines in values,
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1196 for ac_var in $ac_subst_vars
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -n "$ac_subst_files"; then
1210 for ac_var in $ac_subst_files
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -s confdefs.h; then
1225 sed "/^$/d" confdefs.h | sort
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1421 # Extract the first word of "$ac_prog", so it can be a program name with args.
1422 set dummy $ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 TRUEPRG=$ac_cv_path_TRUEPRG
1452 if test -n "$TRUEPRG"; then
1453 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1454 echo "${ECHO_T}$TRUEPRG" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$TRUEPRG" && break
1462 test -n "$TRUEPRG" || TRUEPRG=":"
1464 for ac_prog in false
1466 # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 FALSEPRG=$ac_cv_path_FALSEPRG
1497 if test -n "$FALSEPRG"; then
1498 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1499 echo "${ECHO_T}$FALSEPRG" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1505 test -n "$FALSEPRG" && break
1507 test -n "$FALSEPRG" || FALSEPRG=":"
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1 >conftest.err
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171 CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173 if test "$GCC" = yes; then
2179 if test "$GCC" = yes; then
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 ac_cv_prog_cc_stdc=no
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2216 s = g (p, va_arg (v,int));
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2222 function prototypes and stuff, but not '\xHH' hex character constants.
2223 These don't provoke an error unfortunately, instead are silently treated
2224 as 'x'. The following induces an error, until -std1 is added to get
2225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2226 array size at least. It's necessary to write '\x00'==0 to get something
2227 that's true only with -std1. */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX -qlanglvl=ansi
2247 # Ultrix and OSF/1 -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions -Aa -D_HPUX_SOURCE
2250 # SVR4 -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 CC="$ac_save_CC $ac_arg"
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 ac_cv_prog_cc_stdc=$ac_arg
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2283 rm -f conftest.err conftest.$ac_objext
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2290 case "x$ac_cv_prog_cc_stdc" in
2292 echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 # Some people use a C++ compiler to compile C. Since we use `exit',
2301 # in C++ we need to declare it. In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 if test -n "$ac_declaration"; then
2432 echo '#ifdef __cplusplus' >>confdefs.h
2433 echo $ac_declaration >>confdefs.h
2434 echo '#endif' >>confdefs.h
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 ac_cpp='$CXXCPP $CPPFLAGS'
2451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CXX+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CXX"; then
2465 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CXX"; then
2485 echo "$as_me:$LINENO: result: $CXX" >&5
2486 echo "${ECHO_T}$CXX" >&6
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$CXX" && break
2495 if test -z "$CXX"; then
2497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$ac_ct_CXX"; then
2507 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_CXX="$ac_prog"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2526 if test -n "$ac_ct_CXX"; then
2527 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2528 echo "${ECHO_T}$ac_ct_CXX" >&6
2530 echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2534 test -n "$ac_ct_CXX" && break
2536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO:" \
2544 "checking for C++ compiler version" >&5
2545 ac_compiler=`set X $ac_compile; echo $2`
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2547 (eval $ac_compiler --version </dev/null >&5) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2552 (eval $ac_compiler -v </dev/null >&5) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2557 (eval $ac_compiler -V </dev/null >&5) 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2620 GXX=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CXXFLAGS=${CXXFLAGS+set}
2622 ac_save_CXXFLAGS=$CXXFLAGS
2624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cxx_g+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_cxx_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 ac_cv_prog_cxx_g=yes
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678 CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680 if test "$GXX" = yes; then
2686 if test "$GXX" = yes; then
2692 for ac_declaration in \
2694 'extern "C" void std::exit (int) throw (); using std::exit;' \
2695 'extern "C" void std::exit (int); using std::exit;' \
2696 'extern "C" void exit (int) throw ();' \
2697 'extern "C" void exit (int);' \
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -z "$ac_cxx_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_cxx_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 if test -n "$ac_declaration"; then
2793 echo '#ifdef __cplusplus' >>confdefs.h
2794 echo $ac_declaration >>confdefs.h
2795 echo '#endif' >>confdefs.h
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 if test "x$CC" != xcc; then
2805 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2806 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2808 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2809 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2811 set dummy $CC; ac_cc=`echo $2 |
2812 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2813 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 # Make sure it works both with $CC and with simple cc.
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2835 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); };
2846 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2847 if test "x$CC" != xcc; then
2848 # Test first that cc exists at all.
2849 if { ac_try='cc -c conftest.$ac_ext >&5'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); };
2870 # cc exists but doesn't like -o.
2871 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2881 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2882 echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2888 cat >>confdefs.h <<\_ACEOF
2889 #define NO_MINUS_C_MINUS_O 1
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2905 if test -z "$CPP"; then
2906 if test "${ac_cv_prog_CPP+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 # Double quotes because CPP needs to be expanded
2910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918 # <limits.h> exists even on freestanding compilers.
2919 # On the NeXT, cc -E runs the code through the compiler's parser,
2920 # not just through cpp. "Syntax error" is here to catch this case.
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 # include <limits.h>
2930 # include <assert.h>
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2951 if test -z "$ac_cpp_err"; then
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Broken: fails on valid input.
2960 rm -f conftest.err conftest.$ac_ext
2962 # OK, works on sane cases. Now check whether non-existent headers
2963 # can be detected and how.
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <ac_nonexistent.h>
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null; then
2980 if test -s conftest.err; then
2981 ac_cpp_err=$ac_c_preproc_warn_flag
2982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2989 if test -z "$ac_cpp_err"; then
2990 # Broken: success on invalid input.
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Passes both tests.
3000 rm -f conftest.err conftest.$ac_ext
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3017 echo "$as_me:$LINENO: result: $CPP" >&5
3018 echo "${ECHO_T}$CPP" >&6
3020 for ac_c_preproc_warn_flag in '' yes
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3035 # include <limits.h>
3037 # include <assert.h>
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null; then
3049 if test -s conftest.err; then
3050 ac_cpp_err=$ac_c_preproc_warn_flag
3051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 if test -z "$ac_cpp_err"; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 # Broken: fails on valid input.
3067 rm -f conftest.err conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether non-existent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3097 # Broken: success on invalid input.
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Passes both tests.
3107 rm -f conftest.err conftest.$ac_ext
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3115 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 echo "$as_me:$LINENO: checking for egrep" >&5
3130 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3131 if test "${ac_cv_prog_egrep+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3135 then ac_cv_prog_egrep='grep -E'
3136 else ac_cv_prog_egrep='egrep'
3139 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3140 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3141 EGREP=$ac_cv_prog_egrep
3144 if test $ac_cv_c_compiler_gnu = yes; then
3145 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3146 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3147 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_pattern="Autoconf.*'x'"
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3162 ac_cv_prog_gcc_traditional=yes
3164 ac_cv_prog_gcc_traditional=no
3169 if test $ac_cv_prog_gcc_traditional = no; then
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3181 ac_cv_prog_gcc_traditional=yes
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3188 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3189 if test $ac_cv_prog_gcc_traditional = yes; then
3190 CC="$CC -traditional"
3194 if test "x$CC" = xgcc
3196 cat >>confdefs.h <<\_ACEOF
3202 # Find a good install program. We prefer a C program (faster),
3203 # so one script is as good as another. But avoid the broken or
3204 # incompatible versions:
3205 # SysV /etc/install, /usr/sbin/install
3206 # SunOS /usr/etc/install
3207 # IRIX /sbin/install
3209 # AmigaOS /C/install, which installs bootblocks on floppy discs
3210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3213 # OS/2's system install, which has a completely different semantic
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 # Account for people who put trailing slashes in PATH elements.
3228 ./ | .// | /cC/* | \
3229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3230 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233 # OSF1 and SCO ODT 3.0 have their own names for install.
3234 # Don't use installbsd from OSF since it installs stuff as root
3236 for ac_prog in ginstall scoinst install; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3239 if test $ac_prog = install &&
3240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # AIX install. It has an incompatible calling convention.
3243 elif test $ac_prog = install &&
3244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245 # program-specific install script used by HP pwplus--don't use.
3248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3260 if test "${ac_cv_path_install+set}" = set; then
3261 INSTALL=$ac_cv_path_install
3263 # As a last resort, use the slow shell script. We don't cache a
3264 # path for INSTALL within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the path is relative.
3267 INSTALL=$ac_install_sh
3270 echo "$as_me:$LINENO: result: $INSTALL" >&5
3271 echo "${ECHO_T}$INSTALL" >&6
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_RANLIB+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$RANLIB"; then
3290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 RANLIB=$ac_cv_prog_RANLIB
3309 if test -n "$RANLIB"; then
3310 echo "$as_me:$LINENO: result: $RANLIB" >&5
3311 echo "${ECHO_T}$RANLIB" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319 ac_ct_RANLIB=$RANLIB
3320 # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 if test -n "$ac_ct_RANLIB"; then
3328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_RANLIB="ranlib"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 RANLIB=$ac_ct_RANLIB
3358 RANLIB="$ac_cv_prog_RANLIB"
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_path_MV+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3393 if test -n "$MV"; then
3394 echo "$as_me:$LINENO: result: $MV" >&5
3395 echo "${ECHO_T}$MV" >&6
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3401 # Extract the first word of "rm", so it can be a program name with args.
3402 set dummy rm; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_path_RM+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3433 if test -n "$RM"; then
3434 echo "$as_me:$LINENO: result: $RM" >&5
3435 echo "${ECHO_T}$RM" >&6
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3441 # Extract the first word of "cp", so it can be a program name with args.
3442 set dummy cp; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_path_CP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3473 if test -n "$CP"; then
3474 echo "$as_me:$LINENO: result: $CP" >&5
3475 echo "${ECHO_T}$CP" >&6
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 # Extract the first word of "sed", so it can be a program name with args.
3482 set dummy sed; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_path_SED+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3513 if test -n "$SED"; then
3514 echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3521 # Extract the first word of "awk", so it can be a program name with args.
3522 set dummy awk; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_path_AWK+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3553 if test -n "$AWK"; then
3554 echo "$as_me:$LINENO: result: $AWK" >&5
3555 echo "${ECHO_T}$AWK" >&6
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3561 # Extract the first word of "echo", so it can be a program name with args.
3562 set dummy echo; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_path_ECHO+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3591 ECHO=$ac_cv_path_ECHO
3593 if test -n "$ECHO"; then
3594 echo "$as_me:$LINENO: result: $ECHO" >&5
3595 echo "${ECHO_T}$ECHO" >&6
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 # Extract the first word of "cmp", so it can be a program name with args.
3602 set dummy cmp; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_CMP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3633 if test -n "$CMP"; then
3634 echo "$as_me:$LINENO: result: $CMP" >&5
3635 echo "${ECHO_T}$CMP" >&6
3637 echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3641 # Extract the first word of "tbl", so it can be a program name with args.
3642 set dummy tbl; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_TBL+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3673 if test -n "$TBL"; then
3674 echo "$as_me:$LINENO: result: $TBL" >&5
3675 echo "${ECHO_T}$TBL" >&6
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3681 # Extract the first word of "ar", so it can be a program name with args.
3682 set dummy ar; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_path_AR+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3713 if test -n "$AR"; then
3714 echo "$as_me:$LINENO: result: $AR" >&5
3715 echo "${ECHO_T}$AR" >&6
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3721 # Extract the first word of "openssl", so it can be a program name with args.
3722 set dummy openssl; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_OPENSSL+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3751 OPENSSL=$ac_cv_path_OPENSSL
3753 if test -n "$OPENSSL"; then
3754 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3755 echo "${ECHO_T}$OPENSSL" >&6
3757 echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3761 # Extract the first word of "mtx", so it can be a program name with args.
3762 set dummy mtx; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_path_MTX+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3793 if test -n "$MTX"; then
3794 echo "$as_me:$LINENO: result: $MTX" >&5
3795 echo "${ECHO_T}$MTX" >&6
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 # Extract the first word of "mkisofs", so it can be a program name with args.
3802 set dummy mkisofs; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_MKISOFS+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3831 MKISOFS=$ac_cv_path_MKISOFS
3833 if test -n "$MKISOFS"; then
3834 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3835 echo "${ECHO_T}$MKISOFS" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 # Extract the first word of "python", so it can be a program name with args.
3842 set dummy python; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_PYTHON+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3871 PYTHON=$ac_cv_path_PYTHON
3873 if test -n "$PYTHON"; then
3874 echo "$as_me:$LINENO: result: $PYTHON" >&5
3875 echo "${ECHO_T}$PYTHON" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 # Extract the first word of "growisofs", so it can be a program name with args.
3882 set dummy growisofs; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3911 GROWISOFS=$ac_cv_path_GROWISOFS
3913 if test -n "$GROWISOFS"; then
3914 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3915 echo "${ECHO_T}$GROWISOFS" >&6
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3922 set dummy dvd+rw-mediainfo; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 case $DVDRWMEDIAINFO in
3930 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3951 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3953 if test -n "$DVDRWMEDIAINFO"; then
3954 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3955 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 # Extract the first word of "pkg-config", so it can be a program name with args.
3962 set dummy pkg-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3991 PKGCONFIG=$ac_cv_path_PKGCONFIG
3993 if test -n "$PKGCONFIG"; then
3994 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3995 echo "${ECHO_T}$PKGCONFIG" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 # Extract the first word of "wx-config", so it can be a program name with args.
4002 set dummy wx-config; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
4031 WXCONFIG=$ac_cv_path_WXCONFIG
4033 if test -n "$WXCONFIG"; then
4034 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4035 echo "${ECHO_T}$WXCONFIG" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 # Extract the first word of "cdrecord", so it can be a program name with args.
4042 set dummy cdrecord; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_CDRECORD+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4071 CDRECORD=$ac_cv_path_CDRECORD
4073 if test -n "$CDRECORD"; then
4074 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4075 echo "${ECHO_T}$CDRECORD" >&6
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4081 # Extract the first word of "pidof", so it can be a program name with args.
4082 set dummy pidof; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_path_PIDOF+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4111 PIDOF=$ac_cv_path_PIDOF
4113 if test -n "$PIDOF"; then
4114 echo "$as_me:$LINENO: result: $PIDOF" >&5
4115 echo "${ECHO_T}$PIDOF" >&6
4117 echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6
4122 test -n "$ARFLAG" || ARFLAGS="cr"
4135 # Make sure we can run config.sub.
4136 $ac_config_sub sun4 >/dev/null 2>&1 ||
4137 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4138 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4139 { (exit 1); exit 1; }; }
4141 echo "$as_me:$LINENO: checking build system type" >&5
4142 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4143 if test "${ac_cv_build+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 ac_cv_build_alias=$build_alias
4147 test -z "$ac_cv_build_alias" &&
4148 ac_cv_build_alias=`$ac_config_guess`
4149 test -z "$ac_cv_build_alias" &&
4150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4152 { (exit 1); exit 1; }; }
4153 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4155 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4156 { (exit 1); exit 1; }; }
4159 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4160 echo "${ECHO_T}$ac_cv_build" >&6
4162 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4163 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4164 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4168 echo "$as_me:$LINENO: checking host system type" >&5
4169 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4170 if test "${ac_cv_host+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_cv_host_alias=$host_alias
4174 test -z "$ac_cv_host_alias" &&
4175 ac_cv_host_alias=$ac_cv_build_alias
4176 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4177 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4178 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4179 { (exit 1); exit 1; }; }
4182 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4183 echo "${ECHO_T}$ac_cv_host" >&6
4185 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4186 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4187 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4191 *cygwin* ) CYGWIN=yes;;
4195 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4201 HAVE_SUN_OS_FALSE='#'
4203 HAVE_SUN_OS_TRUE='#'
4206 cat >>confdefs.h <<\_ACEOF
4207 #define HAVE_SUN_OS 1
4215 HAVE_SUN_OS_FALSE='#'
4217 HAVE_SUN_OS_TRUE='#'
4222 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4228 HAVE_OSF1_OS_FALSE='#'
4230 HAVE_OSF1_OS_TRUE='#'
4233 cat >>confdefs.h <<\_ACEOF
4234 #define HAVE_OSF1_OS 1
4242 HAVE_OSF1_OS_FALSE='#'
4244 HAVE_OSF1_OS_TRUE='#'
4249 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4255 HAVE_AIX_OS_FALSE='#'
4257 HAVE_AIX_OS_TRUE='#'
4260 cat >>confdefs.h <<\_ACEOF
4261 #define HAVE_AIX_OS 1
4269 HAVE_AIX_OS_FALSE='#'
4271 HAVE_AIX_OS_TRUE='#'
4276 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4282 HAVE_HPUX_OS_FALSE='#'
4284 HAVE_HPUX_OS_TRUE='#'
4287 cat >>confdefs.h <<\_ACEOF
4288 #define HAVE_HPUX_OS 1
4296 HAVE_HPUX_OS_FALSE='#'
4298 HAVE_HPUX_OS_TRUE='#'
4303 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4309 HAVE_LINUX_OS_FALSE='#'
4311 HAVE_LINUX_OS_TRUE='#'
4312 HAVE_LINUX_OS_FALSE=
4314 cat >>confdefs.h <<\_ACEOF
4315 #define HAVE_LINUX_OS 1
4323 HAVE_LINUX_OS_FALSE='#'
4325 HAVE_LINUX_OS_TRUE='#'
4326 HAVE_LINUX_OS_FALSE=
4330 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4335 HAVE_FREEBSD_OS_TRUE=
4336 HAVE_FREEBSD_OS_FALSE='#'
4338 HAVE_FREEBSD_OS_TRUE='#'
4339 HAVE_FREEBSD_OS_FALSE=
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_FREEBSD_OS 1
4349 HAVE_FREEBSD_OS_TRUE=
4350 HAVE_FREEBSD_OS_FALSE='#'
4352 HAVE_FREEBSD_OS_TRUE='#'
4353 HAVE_FREEBSD_OS_FALSE=
4357 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4362 HAVE_NETBSD_OS_TRUE=
4363 HAVE_NETBSD_OS_FALSE='#'
4365 HAVE_NETBSD_OS_TRUE='#'
4366 HAVE_NETBSD_OS_FALSE=
4368 cat >>confdefs.h <<\_ACEOF
4369 #define HAVE_NETBSD_OS 1
4376 HAVE_NETBSD_OS_TRUE=
4377 HAVE_NETBSD_OS_FALSE='#'
4379 HAVE_NETBSD_OS_TRUE='#'
4380 HAVE_NETBSD_OS_FALSE=
4384 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4389 HAVE_OPENBSD_OS_TRUE=
4390 HAVE_OPENBSD_OS_FALSE='#'
4392 HAVE_OPENBSD_OS_TRUE='#'
4393 HAVE_OPENBSD_OS_FALSE=
4395 cat >>confdefs.h <<\_ACEOF
4396 #define HAVE_OPENBSD_OS 1
4403 HAVE_OPENBSD_OS_TRUE=
4404 HAVE_OPENBSD_OS_FALSE='#'
4406 HAVE_OPENBSD_OS_TRUE='#'
4407 HAVE_OPENBSD_OS_FALSE=
4411 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4417 HAVE_BSDI_OS_FALSE='#'
4419 HAVE_BSDI_OS_TRUE='#'
4422 cat >>confdefs.h <<\_ACEOF
4423 #define HAVE_BSDI_OS 1
4431 HAVE_BSDI_OS_FALSE='#'
4433 HAVE_BSDI_OS_TRUE='#'
4438 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4444 HAVE_SGI_OS_FALSE='#'
4446 HAVE_SGI_OS_TRUE='#'
4449 cat >>confdefs.h <<\_ACEOF
4450 #define HAVE_SGI_OS 1
4458 HAVE_SGI_OS_FALSE='#'
4460 HAVE_SGI_OS_TRUE='#'
4465 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4471 HAVE_IRIX_OS_FALSE='#'
4473 HAVE_IRIX_OS_TRUE='#'
4476 cat >>confdefs.h <<\_ACEOF
4477 #define HAVE_IRIX_OS 1
4485 HAVE_IRIX_OS_FALSE='#'
4487 HAVE_IRIX_OS_TRUE='#'
4492 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4497 HAVE_DARWIN_OS_TRUE=
4498 HAVE_DARWIN_OS_FALSE='#'
4500 HAVE_DARWIN_OS_TRUE='#'
4501 HAVE_DARWIN_OS_FALSE=
4503 cat >>confdefs.h <<\_ACEOF
4504 #define HAVE_DARWIN_OS 1
4511 HAVE_DARWIN_OS_TRUE=
4512 HAVE_DARWIN_OS_FALSE='#'
4514 HAVE_DARWIN_OS_TRUE='#'
4515 HAVE_DARWIN_OS_FALSE=
4520 # -----------------------------------------------------------
4521 # ----------------------------------------------------------
4522 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4523 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4524 if test "x$DISTNAME" != "x"
4526 echo "distname set to $DISTNAME"
4527 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4530 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4533 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4536 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4539 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4542 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4545 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4548 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4551 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4554 elif test -f /etc/SuSE-release
4557 elif test -d /etc/SuSEconfig
4560 elif test -f /etc/mandrake-release
4563 elif test -f /etc/whitebox-release
4566 elif test -f /etc/redhat-release
4569 elif test -f /etc/gentoo-release
4572 elif test -f /etc/debian_version
4575 elif test -f /etc/slackware-version
4578 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4581 elif test -f /etc/engarde-version
4584 elif test "$CYGWIN" = yes
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_CYGWIN 1
4594 echo "$as_me:$LINENO: result: done" >&5
4595 echo "${ECHO_T}done" >&6
4598 # -----------------------------------------------------------
4599 # ----------------------------------------------------------
4604 INSIDE_GNOME_COMMON_TRUE=
4605 INSIDE_GNOME_COMMON_FALSE='#'
4607 INSIDE_GNOME_COMMON_TRUE='#'
4608 INSIDE_GNOME_COMMON_FALSE=
4611 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4613 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4616 # ------------------------------------------------------------------
4617 # If the user has not set --prefix, we set our default to nothing.
4618 # In this case, if the user has not set --sysconfdir, we set it
4619 # to the package default of /etc/bacula. If either --prefix or
4620 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4621 # ------------------------------------------------------------------
4622 if test x${prefix} = xNONE ; then
4623 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4624 sysconfdir=/etc/bacula
4628 sysconfdir=`eval echo ${sysconfdir}`
4630 # -------------------------------------------------------------------------
4631 # If the user has not set --exec-prefix, we default to ${prefix}
4632 # -------------------------------------------------------------------------
4633 if test x${exec_prefix} = xNONE ; then
4634 exec_prefix=${prefix}
4637 # ------------------------------------------------------------------
4638 # If the user has not set --sbindir, we set our default as /sbin
4639 # ------------------------------------------------------------------
4640 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4641 sbindir=${exec_prefix}/sbin
4643 sbindir=`eval echo ${sbindir}`
4645 # ------------------------------------------------------------------
4646 # All list of languages for which a translation exist. Each
4647 # language is separated by a space.
4648 # ------------------------------------------------------------------
4651 for ac_prog in msgfmt
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_path_MSGFMT+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 MSGFMT=$ac_cv_path_MSGFMT
4684 if test -n "$MSGFMT"; then
4685 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4686 echo "${ECHO_T}$MSGFMT" >&6
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4692 test -n "$MSGFMT" && break
4694 test -n "$MSGFMT" || MSGFMT="no"
4696 if test "$MSGFMT" = "no"
4698 echo 'msgfmt program not found, disabling NLS !'
4700 USE_INCLUDED_LIBINTL=no
4709 support_postgresql=no
4710 support_smartalloc=yes
4711 support_readline=yes
4714 support_wx_console=no
4716 support_static_tools=no
4717 support_static_fd=no
4718 support_static_sd=no
4719 support_static_dir=no
4720 support_static_cons=no
4722 build_client_only=no
4728 # -------------------------------------------
4729 # gnome (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-gnome or --disable-gnome was given.
4732 if test "${enable_gnome+set}" = set; then
4733 enableval="$enable_gnome"
4734 if test x$enableval = xyes; then
4740 if test x$support_gnome = xyes; then
4741 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4743 if test $pkg = 0; then
4744 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4745 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4746 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4747 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4752 GNOME_DIR=src/gnome2-console
4753 gnome_version="Version 2.x"
4766 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4767 if test "${with_gnome_includes+set}" = set; then
4768 withval="$with_gnome_includes"
4770 CFLAGS="$CFLAGS -I$withval"
4775 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4776 if test "${with_gnome_libs+set}" = set; then
4777 withval="$with_gnome_libs"
4779 LDFLAGS="$LDFLAGS -L$withval"
4780 gnome_prefix=$withval
4785 # Check whether --with-gnome or --without-gnome was given.
4786 if test "${with_gnome+set}" = set; then
4787 withval="$with_gnome"
4788 if test x$withval = xyes; then
4792 if test "x$withval" = xno; then
4796 LDFLAGS="$LDFLAGS -L$withval/lib"
4797 CFLAGS="$CFLAGS -I$withval/include"
4798 gnome_prefix=$withval/lib
4805 if test "x$want_gnome" = xyes; then
4807 # Extract the first word of "gnome-config", so it can be a program name with args.
4808 set dummy gnome-config; ac_word=$2
4809 echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 case $GNOME_CONFIG in
4816 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4837 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4839 if test -n "$GNOME_CONFIG"; then
4840 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4841 echo "${ECHO_T}$GNOME_CONFIG" >&6
4843 echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4847 if test "$GNOME_CONFIG" = "no"; then
4848 no_gnome_config="yes"
4850 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4851 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4852 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4853 echo "$as_me:$LINENO: result: yes" >&5
4854 echo "${ECHO_T}yes" >&6
4857 # Extract the first word of "orbit-config", so it can be a program name with args.
4858 set dummy orbit-config; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 case $ORBIT_CONFIG in
4866 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4887 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4889 if test -n "$ORBIT_CONFIG"; then
4890 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4891 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4893 echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4897 # Extract the first word of "orbit-idl", so it can be a program name with args.
4898 set dummy orbit-idl; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4927 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4929 if test -n "$ORBIT_IDL"; then
4930 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4931 echo "${ECHO_T}$ORBIT_IDL" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4938 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4939 if test "${gnome_cv_orbit_found+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4944 gnome_cv_orbit_found=no
4946 gnome_cv_orbit_found=yes
4950 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4951 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4954 if test x$gnome_cv_orbit_found = xyes; then
4956 HAVE_ORBIT_FALSE='#'
4961 if test x$gnome_cv_orbit_found = xyes; then
4963 ORBIT_CFLAGS=`orbit-config --cflags client server`
4964 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4968 if test xfail = xfailure; then
4969 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4970 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4971 { (exit 1); exit 1; }; }
4975 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4976 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4977 if test "${gnome_cv_gnorba_found+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 gnome_cv_gnorba_found=no
4982 if test x$gnome_cv_orbit_found = xyes; then
4983 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4984 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4985 if test -n "$GNORBA_LIBS"; then
4986 gnome_cv_gnorba_found=yes
4991 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4992 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4995 if test x$gnome_cv_gnorba_found = xyes; then
4997 HAVE_GNORBA_FALSE='#'
4999 HAVE_GNORBA_TRUE='#'
5002 if test x$gnome_cv_orbit_found = xyes; then
5004 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5005 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5009 if test xfail = xfailure; then
5010 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5011 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5012 { (exit 1); exit 1; }; }
5016 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5017 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5018 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5019 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5020 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5021 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5022 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5025 echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6
5027 no_gnome_config="yes"
5031 if test x$exec_prefix = xNONE; then
5032 if test x$prefix = xNONE; then
5033 gnome_prefix=$ac_default_prefix/lib
5035 gnome_prefix=$prefix/lib
5038 gnome_prefix=`eval echo \`echo $libdir\``
5041 if test "$no_gnome_config" = "yes"; then
5042 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5043 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5044 if test -f $gnome_prefix/gnomeConf.sh; then
5045 echo "$as_me:$LINENO: result: found" >&5
5046 echo "${ECHO_T}found" >&6
5047 echo "loading gnome configuration from" \
5048 "$gnome_prefix/gnomeConf.sh"
5049 . $gnome_prefix/gnomeConf.sh
5052 echo "$as_me:$LINENO: result: not found" >&5
5053 echo "${ECHO_T}not found" >&6
5054 if test xfail = xfail; then
5055 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5056 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5057 { (exit 1); exit 1; }; }
5066 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5067 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5071 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5072 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5073 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5076 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5077 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5078 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5081 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5082 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5083 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5085 echo "$as_me:$LINENO: result: unknown library" >&5
5086 echo "${ECHO_T}unknown library" >&6
5088 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5089 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5094 GNOME_DIR=src/gnome-console
5095 gnome_version="Version 1.4"
5101 # -------------------------------------------
5102 # wx-console (default off)
5103 # -------------------------------------------
5104 # Check whether --enable-wx-console or --disable-wx-console was given.
5105 if test "${enable_wx_console+set}" = set; then
5106 enableval="$enable_wx_console"
5107 if test x$enableval = xyes; then
5108 support_wx_console=yes
5113 if test x$support_wx_console = xyes; then
5114 abc=`$WXCONFIG --cppflags`
5116 if test $pkg = 0; then
5117 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5118 WXCONS_LDFLAGS=`$WXCONFIG --libs`
5121 WX_DIR=src/wx-console
5124 echo "wx-config program not found. wx-console disabled."
5126 support_wx_console=no
5132 # -------------------------------------------
5133 # tray-monitor (default off)
5134 # -------------------------------------------
5135 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5136 if test "${enable_tray_monitor+set}" = set; then
5137 enableval="$enable_tray_monitor"
5138 if test x$enableval = xyes; then
5139 support_tray_monitor=yes
5144 if test x$support_tray_monitor = xyes; then
5145 abc=`$PKGCONFIG --exists gtk+-2.0`
5147 if test $pkg = 0; then
5148 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5149 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5152 TRAY_MONITOR_DIR=src/tray-monitor
5153 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5155 if test $pkg = 0; then
5156 cat >>confdefs.h <<\_ACEOF
5157 #define HAVE_GTK_2_4 1
5165 # -------------------------------------------
5166 # smartalloc (default off)
5167 # -------------------------------------------
5168 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5169 if test "${enable_smartalloc+set}" = set; then
5170 enableval="$enable_smartalloc"
5171 if test x$enableval = xno; then
5172 support_smartalloc=no
5176 if test x$support_smartalloc = xyes; then
5177 cat >>confdefs.h <<\_ACEOF
5178 #define SMARTALLOC 1
5183 # -------------------------------------------
5184 # static-tools (default off)
5185 # -------------------------------------------
5186 # Check whether --enable-static-tools or --disable-static-tools was given.
5187 if test "${enable_static_tools+set}" = set; then
5188 enableval="$enable_static_tools"
5189 if test x$enableval = xyes; then
5190 support_static_tools=yes
5195 if test x$support_static_tools = xyes; then
5196 TTOOL_LDFLAGS="-static"
5200 # -------------------------------------------
5201 # static-fd (default off)
5202 # -------------------------------------------
5203 # Check whether --enable-static-fd or --disable-static-fd was given.
5204 if test "${enable_static_fd+set}" = set; then
5205 enableval="$enable_static_fd"
5206 if test x$enableval = xyes; then
5207 support_static_fd=yes
5212 if test x$support_static_fd = xyes; then
5213 STATIC_FD="static-bacula-fd"
5217 # -------------------------------------------
5218 # static-sd (default off)
5219 # -------------------------------------------
5220 # Check whether --enable-static-sd or --disable-static-sd was given.
5221 if test "${enable_static_sd+set}" = set; then
5222 enableval="$enable_static_sd"
5223 if test x$enableval = xyes; then
5224 support_static_sd=yes
5229 if test x$support_static_sd = xyes; then
5230 STATIC_SD="static-bacula-sd"
5234 # -------------------------------------------
5235 # static-dir (default off)
5236 # -------------------------------------------
5237 # Check whether --enable-static-dir or --disable-static-dir was given.
5238 if test "${enable_static_dir+set}" = set; then
5239 enableval="$enable_static_dir"
5240 if test x$enableval = xyes; then
5241 support_static_dir=yes
5246 if test x$support_static_dir = xyes; then
5247 STATIC_DIR="static-bacula-dir"
5251 # -------------------------------------------
5252 # static-cons (default off)
5253 # -------------------------------------------
5254 # Check whether --enable-static-cons or --disable-static-cons was given.
5255 if test "${enable_static_cons+set}" = set; then
5256 enableval="$enable_static_cons"
5257 if test x$enableval = xyes; then
5258 support_static_cons=yes
5265 if test x$support_static_cons = xyes; then
5266 STATIC_CONS="static-bconsole"
5267 STATIC_GNOME_CONS="static-gnome-console"
5268 STATIC_WX_CONS="static-wx-console"
5274 # -------------------------------------------
5275 # client_only (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-client-only or --disable-client-only was given.
5278 if test "${enable_client_only+set}" = set; then
5279 enableval="$enable_client_only"
5280 if test x$enableval = xyes; then
5281 build_client_only=yes
5286 if test x$build_client_only = xno; then
5293 # ---------------------------------------------------
5294 # Check for conio (Bacula readline substitute)(
5295 # ---------------------------------------------------
5296 # this allows you to turn it completely off
5297 # Check whether --enable-conio or --disable-conio was given.
5298 if test "${enable_conio+set}" = set; then
5299 enableval="$enable_conio"
5300 if test x$enableval = xno; then
5306 if test x$support_conio = xyes; then
5307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5309 if test "${ac_cv_header_stdc+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_c_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_header_stdc=yes
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_cv_header_stdc=no
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362 if test $ac_cv_header_stdc = yes; then
5363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 $EGREP "memchr" >/dev/null 2>&1; then
5377 ac_cv_header_stdc=no
5383 if test $ac_cv_header_stdc = yes; then
5384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "free" >/dev/null 2>&1; then
5398 ac_cv_header_stdc=no
5404 if test $ac_cv_header_stdc = yes; then
5405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5406 if test "$cross_compiling" = yes; then
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 #if ((' ' & 0x0FF) == 0x020)
5417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 # define ISLOWER(c) \
5421 (('a' <= (c) && (c) <= 'i') \
5422 || ('j' <= (c) && (c) <= 'r') \
5423 || ('s' <= (c) && (c) <= 'z'))
5424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 for (i = 0; i < 256; i++)
5433 if (XOR (islower (i), ISLOWER (i))
5434 || toupper (i) != TOUPPER (i))
5439 rm -f conftest$ac_exeext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441 (eval $ac_link) 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5452 echo "$as_me: program exited with status $ac_status" >&5
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_cv_header_stdc=no
5459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5465 if test $ac_cv_header_stdc = yes; then
5467 cat >>confdefs.h <<\_ACEOF
5468 #define STDC_HEADERS 1
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5484 inttypes.h stdint.h unistd.h
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 cat >conftest.$ac_ext <<_ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5500 #include <$ac_header>
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 eval "$as_ac_Header=yes"
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 eval "$as_ac_Header=no"
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5536 cat >>confdefs.h <<_ACEOF
5537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545 if test "${ac_cv_header_termcap_h+set}" = set; then
5546 echo "$as_me:$LINENO: checking for termcap.h" >&5
5547 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5548 if test "${ac_cv_header_termcap_h+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5552 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5554 # Is the header compilable?
5555 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5556 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5564 #include <termcap.h>
5566 rm -f conftest.$ac_objext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>conftest.er1
5570 grep -v '^ *+' conftest.er1 >conftest.err
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } &&
5575 { ac_try='test -z "$ac_c_werror_flag"
5576 || test ! -s conftest.err'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; } &&
5582 { ac_try='test -s conftest.$ac_objext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_header_compiler=yes
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_header_compiler=no
5595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5597 echo "${ECHO_T}$ac_header_compiler" >&6
5599 # Is the header present?
5600 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5601 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <termcap.h>
5610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5613 grep -v '^ *+' conftest.er1 >conftest.err
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } >/dev/null; then
5618 if test -s conftest.err; then
5619 ac_cpp_err=$ac_c_preproc_warn_flag
5620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5627 if test -z "$ac_cpp_err"; then
5628 ac_header_preproc=yes
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_header_preproc=no
5635 rm -f conftest.err conftest.$ac_ext
5636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5637 echo "${ECHO_T}$ac_header_preproc" >&6
5639 # So? What about this header?
5640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5642 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5643 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5645 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5646 ac_header_preproc=yes
5649 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5650 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5652 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5654 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5656 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5658 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5660 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5663 ## ------------------------------------------ ##
5664 ## Report this to the AC_PACKAGE_NAME lists. ##
5665 ## ------------------------------------------ ##
5668 sed "s/^/$as_me: WARNING: /" >&2
5671 echo "$as_me:$LINENO: checking for termcap.h" >&5
5672 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5673 if test "${ac_cv_header_termcap_h+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 ac_cv_header_termcap_h=$ac_header_preproc
5678 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5679 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5682 if test $ac_cv_header_termcap_h = yes; then
5683 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5684 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5685 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 ac_check_lib_save_LIBS=$LIBS
5689 LIBS="-ltermcap $LIBS"
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5697 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5712 rm -f conftest.$ac_objext conftest$ac_exeext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714 (eval $ac_link) 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_lib_termcap_tgetent=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_lib_termcap_tgetent=no
5741 rm -f conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS
5745 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5746 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5747 if test $ac_cv_lib_termcap_tgetent = yes; then
5748 CONS_LIBS="-ltermcap"
5754 cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_CONIO 1
5760 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5761 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5762 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 ac_check_lib_save_LIBS=$LIBS
5766 LIBS="-lncurses $LIBS"
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5774 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>conftest.er1
5793 grep -v '^ *+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest$ac_exeext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_lib_ncurses_tgetent=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_lib_ncurses_tgetent=no
5818 rm -f conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5820 LIBS=$ac_check_lib_save_LIBS
5822 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5823 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5824 if test $ac_cv_lib_ncurses_tgetent = yes; then
5825 CONS_LIBS="-lncurses"
5831 cat >>confdefs.h <<\_ACEOF
5832 #define HAVE_CONIO 1
5845 for ac_header in curses.h
5847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849 echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5857 # Is the header compilable?
5858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 $ac_includes_default
5867 #include <$ac_header>
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 ac_header_compiler=yes
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_header_compiler=no
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5900 echo "${ECHO_T}$ac_header_compiler" >&6
5902 # Is the header present?
5903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <$ac_header>
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev/null; then
5921 if test -s conftest.err; then
5922 ac_cpp_err=$ac_c_preproc_warn_flag
5923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5930 if test -z "$ac_cpp_err"; then
5931 ac_header_preproc=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_header_preproc=no
5938 rm -f conftest.err conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6
5942 # So? What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5949 ac_header_preproc=yes
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5966 ## ------------------------------------------ ##
5967 ## Report this to the AC_PACKAGE_NAME lists. ##
5968 ## ------------------------------------------ ##
5971 sed "s/^/$as_me: WARNING: /" >&2
5974 echo "$as_me:$LINENO: checking for $ac_header" >&5
5975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 eval "$as_ac_Header=\$ac_header_preproc"
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5986 cat >>confdefs.h <<_ACEOF
5987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5994 echo "$as_me:$LINENO: checking for term.h" >&5
5995 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5996 if test "${ac_cv_header_term_h+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_header_term_h=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_header_term_h=no
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6045 if test $ac_cv_header_term_h = yes; then
6046 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6047 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6048 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lcurses $LIBS"
6053 cat >conftest.$ac_ext <<_ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6060 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_lib_curses_tgetent=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_lib_curses_tgetent=no
6104 rm -f conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6109 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6110 if test $ac_cv_lib_curses_tgetent = yes; then
6111 CONS_LIBS="-lcurses"
6117 cat >>confdefs.h <<\_ACEOF
6118 #define HAVE_CONIO 1
6126 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6137 # ---------------------------------------------------
6138 # Check for readline support/directory (default off)
6139 # ---------------------------------------------------
6140 # this allows you to turn it completely off
6141 # Check whether --enable-readline or --disable-readline was given.
6142 if test "${enable_readline+set}" = set; then
6143 enableval="$enable_readline"
6144 if test x$enableval = xno; then
6151 if test x$support_readline = xyes; then
6153 # Check whether --with-readline or --without-readline was given.
6154 if test "${with_readline+set}" = set; then
6155 withval="$with_readline"
6157 case "$with_readline" in
6160 if test "$with_readline" != "yes"; then
6161 CONS_INC="-I${with_readline}"
6162 CONS_LDFLAGS="-L$with_readline"
6164 with_readline="/usr/include/readline"
6166 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6169 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6176 # Is the header compilable?
6177 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6178 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 #include <${with_readline}/readline.h>
6188 rm -f conftest.$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6192 grep -v '^ *+' conftest.er1 >conftest.err
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 ac_header_compiler=yes
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 ac_header_compiler=no
6217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6219 echo "${ECHO_T}$ac_header_compiler" >&6
6221 # Is the header present?
6222 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6223 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <${with_readline}/readline.h>
6232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1 >conftest.err
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } >/dev/null; then
6240 if test -s conftest.err; then
6241 ac_cpp_err=$ac_c_preproc_warn_flag
6242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6249 if test -z "$ac_cpp_err"; then
6250 ac_header_preproc=yes
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_preproc=no
6257 rm -f conftest.err conftest.$ac_ext
6258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6259 echo "${ECHO_T}$ac_header_preproc" >&6
6261 # So? What about this header?
6262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6264 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6265 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6266 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6267 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6268 ac_header_preproc=yes
6271 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6272 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6274 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6276 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6278 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6280 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6282 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6285 ## ------------------------------------------ ##
6286 ## Report this to the AC_PACKAGE_NAME lists. ##
6287 ## ------------------------------------------ ##
6290 sed "s/^/$as_me: WARNING: /" >&2
6293 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6294 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 eval "$as_ac_Header=\$ac_header_preproc"
6300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define HAVE_READLINE 1
6309 CONS_LIBS="-lreadline -ltermcap"
6314 echo "readline.h not found. readline turned off ..."
6326 # check for standard readline library
6327 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6328 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6329 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6330 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6334 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6336 # Is the header compilable?
6337 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6338 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 $ac_includes_default
6346 #include </usr/include/readline/readline.h>
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_header_compiler=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_header_compiler=no
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6379 echo "${ECHO_T}$ac_header_compiler" >&6
6381 # Is the header present?
6382 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6383 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 #include </usr/include/readline/readline.h>
6392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395 grep -v '^ *+' conftest.er1 >conftest.err
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } >/dev/null; then
6400 if test -s conftest.err; then
6401 ac_cpp_err=$ac_c_preproc_warn_flag
6402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409 if test -z "$ac_cpp_err"; then
6410 ac_header_preproc=yes
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 ac_header_preproc=no
6417 rm -f conftest.err conftest.$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6419 echo "${ECHO_T}$ac_header_preproc" >&6
6421 # So? What about this header?
6422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6424 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6425 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6427 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6428 ac_header_preproc=yes
6431 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6432 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6434 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6435 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6436 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6438 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6440 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6442 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6445 ## ------------------------------------------ ##
6446 ## Report this to the AC_PACKAGE_NAME lists. ##
6447 ## ------------------------------------------ ##
6450 sed "s/^/$as_me: WARNING: /" >&2
6453 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6454 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6455 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6460 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6461 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6464 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_READLINE 1
6470 CONS_INC="-I/usr/include/readline"
6471 CONS_LIBS="-lreadline -ltermcap"
6475 # Did not find standard library, so try Bacula's default
6476 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6479 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6486 # Is the header compilable?
6487 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6488 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 $ac_includes_default
6496 #include <${TOP_DIR}/depkgs/readline/readline.h>
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_header_compiler=yes
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_header_compiler=no
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6529 echo "${ECHO_T}$ac_header_compiler" >&6
6531 # Is the header present?
6532 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6533 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <${TOP_DIR}/depkgs/readline/readline.h>
6542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } >/dev/null; then
6550 if test -s conftest.err; then
6551 ac_cpp_err=$ac_c_preproc_warn_flag
6552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6559 if test -z "$ac_cpp_err"; then
6560 ac_header_preproc=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_header_preproc=no
6567 rm -f conftest.err conftest.$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6569 echo "${ECHO_T}$ac_header_preproc" >&6
6571 # So? What about this header?
6572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6574 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6575 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6577 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6578 ac_header_preproc=yes
6581 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6582 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6584 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6586 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6587 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6588 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6590 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6592 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6595 ## ------------------------------------------ ##
6596 ## Report this to the AC_PACKAGE_NAME lists. ##
6597 ## ------------------------------------------ ##
6600 sed "s/^/$as_me: WARNING: /" >&2
6603 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6604 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 eval "$as_ac_Header=\$ac_header_preproc"
6610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615 cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_READLINE 1
6620 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6621 CONS_LIBS="-lreadline -lhistory -ltermcap"
6622 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6623 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6627 echo "readline.h not found. readline turned off ..."
6653 # Minimal stuff for readline Makefile configuration
6656 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6657 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6658 if test "${ac_cv_header_stat_broken+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 cat >conftest.$ac_ext <<_ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6667 #include <sys/types.h>
6668 #include <sys/stat.h>
6670 #if defined(S_ISBLK) && defined(S_IFDIR)
6671 # if S_ISBLK (S_IFDIR)
6676 #if defined(S_ISBLK) && defined(S_IFCHR)
6677 # if S_ISBLK (S_IFCHR)
6682 #if defined(S_ISLNK) && defined(S_IFREG)
6683 # if S_ISLNK (S_IFREG)
6688 #if defined(S_ISSOCK) && defined(S_IFREG)
6689 # if S_ISSOCK (S_IFREG)
6695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6696 $EGREP "You lose" >/dev/null 2>&1; then
6697 ac_cv_header_stat_broken=yes
6699 ac_cv_header_stat_broken=no
6704 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6705 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6706 if test $ac_cv_header_stat_broken = yes; then
6708 cat >>confdefs.h <<\_ACEOF
6709 #define STAT_MACROS_BROKEN 1
6720 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6721 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6722 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6723 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 cat >conftest.$ac_ext <<_ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <sys/types.h>
6745 rm -f conftest.$ac_objext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 eval "$as_ac_Header=yes"
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 eval "$as_ac_Header=no"
6774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6779 cat >>confdefs.h <<_ACEOF
6780 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6783 ac_header_dirent=$ac_hdr; break
6787 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6788 if test $ac_header_dirent = dirent.h; then
6789 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6790 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6791 if test "${ac_cv_search_opendir+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_func_search_save_LIBS=$LIBS
6795 ac_cv_search_opendir=no
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6803 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_search_opendir="none required"
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 if test "$ac_cv_search_opendir" = no; then
6849 for ac_lib in dir; do
6850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>conftest.er1
6877 grep -v '^ *+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_search_opendir="-l$ac_lib"
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6906 LIBS=$ac_func_search_save_LIBS
6908 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6909 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6910 if test "$ac_cv_search_opendir" != no; then
6911 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6916 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6917 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6918 if test "${ac_cv_search_opendir+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 ac_func_search_save_LIBS=$LIBS
6922 ac_cv_search_opendir=no
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_search_opendir="none required"
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6973 rm -f conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
6975 if test "$ac_cv_search_opendir" = no; then
6977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6985 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
7000 rm -f conftest.$ac_objext conftest$ac_exeext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7002 (eval $ac_link) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1 >conftest.err
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_search_opendir="-l$ac_lib"
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7029 rm -f conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_func_search_save_LIBS
7035 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7036 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7037 if test "$ac_cv_search_opendir" != no; then
7038 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7052 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7055 echo "$as_me:$LINENO: checking for $ac_func" >&5
7056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7057 if eval "test \"\${$as_ac_var+set}\" = set"; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 cat >conftest.$ac_ext <<_ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7068 #define $ac_func innocuous_$ac_func
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func (); below.
7072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 <limits.h> exists even on freestanding compilers. */
7076 # include <limits.h>
7078 # include <assert.h>
7083 /* Override any gcc2 internal prototype to avoid an error. */
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7091 /* The GNU C library defines this for functions which it implements
7092 to always fail with ENOSYS. Some functions are actually named
7093 something starting with __ and the normal name is an alias. */
7094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7097 char (*f) () = $ac_func;
7106 return f != $ac_func;
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>conftest.er1
7115 grep -v '^ *+' conftest.er1 >conftest.err
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -z "$ac_c_werror_flag"
7121 || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest$ac_exeext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 eval "$as_ac_var=yes"
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 eval "$as_ac_var=no"
7140 rm -f conftest.err conftest.$ac_objext \
7141 conftest$ac_exeext conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7145 if test `eval echo '${'$as_ac_var'}'` = yes; then
7146 cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 for ac_func in nanosleep nl_langinfo
7157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7158 echo "$as_me:$LINENO: checking for $ac_func" >&5
7159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7160 if eval "test \"\${$as_ac_var+set}\" = set"; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7171 #define $ac_func innocuous_$ac_func
7173 /* System header to define __stub macros and hopefully few prototypes,
7174 which can conflict with char $ac_func (); below.
7175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176 <limits.h> exists even on freestanding compilers. */
7179 # include <limits.h>
7181 # include <assert.h>
7186 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7194 /* The GNU C library defines this for functions which it implements
7195 to always fail with ENOSYS. Some functions are actually named
7196 something starting with __ and the normal name is an alias. */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7200 char (*f) () = $ac_func;
7209 return f != $ac_func;
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216 (eval $ac_link) 2>conftest.er1
7218 grep -v '^ *+' conftest.er1 >conftest.err
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -z "$ac_c_werror_flag"
7224 || test ! -s conftest.err'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; } &&
7230 { ac_try='test -s conftest$ac_exeext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 eval "$as_ac_var=yes"
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 eval "$as_ac_var=no"
7243 rm -f conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7248 if test `eval echo '${'$as_ac_var'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7257 for ac_header in varargs.h
7259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7261 echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7269 # Is the header compilable?
7270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 #include <$ac_header>
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_header_compiler=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_header_compiler=no
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7312 echo "${ECHO_T}$ac_header_compiler" >&6
7314 # Is the header present?
7315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 #include <$ac_header>
7325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } >/dev/null; then
7333 if test -s conftest.err; then
7334 ac_cpp_err=$ac_c_preproc_warn_flag
7335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7342 if test -z "$ac_cpp_err"; then
7343 ac_header_preproc=yes
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_header_preproc=no
7350 rm -f conftest.err conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7352 echo "${ECHO_T}$ac_header_preproc" >&6
7354 # So? What about this header?
7355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7361 ac_header_preproc=yes
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7378 ## ------------------------------------------ ##
7379 ## Report this to the AC_PACKAGE_NAME lists. ##
7380 ## ------------------------------------------ ##
7383 sed "s/^/$as_me: WARNING: /" >&2
7386 echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 eval "$as_ac_Header=\$ac_header_preproc"
7393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7398 cat >>confdefs.h <<_ACEOF
7399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 # End of readline/conio stuff
7408 # -----------------------------------------------------------------------
7410 # -----------------------------------------------------------------------
7411 # Check for Python support
7413 echo "$as_me:$LINENO: checking for Python support" >&5
7414 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7416 # Check whether --with-python or --without-python was given.
7417 if test "${with_python+set}" = set; then
7418 withval="$with_python"
7422 if test "$withval" != "no"; then
7423 if test "$withval" = "yes"; then
7424 if test -f /usr/include/python2.2/Python.h; then
7425 PYTHON_INCDIR=-I/usr/include/python2.2
7426 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7427 elif test -f /usr/include/python2.3/Python.h; then
7428 PYTHON_INCDIR=-I/usr/include/python2.3
7429 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7430 elif test -f /usr/include/python2.4/Python.h; then
7431 PYTHON_INCDIR=-I/usr/include/python2.4
7432 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7433 elif test -f $prefix/include/Python.h; then
7434 PYTHON_INCDIR=-I$prefix/include
7435 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7440 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7441 { (exit 1); exit 1; }; }
7444 if test -f $withval/Python.h; then
7445 PYTHON_INCDIR=-I$withval
7446 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7447 elif test -f $withval/include/Python.h; then
7448 PYTHON_INCDIR=-I$withval/include
7449 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7451 echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7453 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7454 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7455 { (exit 1); exit 1; }; }
7458 cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_PYTHON 1
7462 echo "$as_me:$LINENO: result: yes" >&5
7463 echo "${ECHO_T}yes" >&6
7467 echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7473 echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7481 # -------------------------------------------
7482 # check for cdrecord writer location
7483 # get scsibus,target,lun
7484 # -------------------------------------------
7486 if test ! x$CDRECORD = x ; then
7487 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7488 if test x${CDSTL} = x ; then
7489 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7491 if test x${CDSTL} = x ; then
7492 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD+RW | ${AWK} '{print $1}'`
7494 if test x${CDSTL} = x ; then
7495 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD-RW | ${AWK} '{print $1}'`
7497 if test x${CDSTL} = x ; then
7504 # ---------------------------------------------------
7505 # Check for GMP support/directory
7506 # ---------------------------------------------------
7510 # [ --with-gmp[=DIR] Specify gmp library directory],
7512 # case "$with_gmp" in
7515 # if test "$with_gmp" != "yes"; then
7516 # GMP_INC="-I$with_gmp"
7518 # GMP_LDFLAGS="-L$with_gmp"
7520 # with_gmp="/usr/include"
7522 # AC_CHECK_HEADER($with_gmp/gmp.h,
7523 # [ AC_MSG_RESULT(yes)
7524 # AC_DEFINE(HAVE_GMP)
7528 # [ AC_MSG_ERROR([*** gmp library missing])
7534 # # check for standard gmp library
7535 # AC_CHECK_HEADER(/usr/include/gmp.h,
7536 # [ AC_MSG_RESULT(yes)
7537 # AC_DEFINE(HAVE_GMP)
7542 # # Did not find standard library, so use our own
7543 # AC_MSG_RESULT(yes)
7544 # AC_DEFINE(HAVE_GMP)
7547 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7549 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7550 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7556 #AC_SUBST(GMP_LDFLAGS)
7560 # -----------------------------------------------------------------------
7563 # ---------------------------------------------------
7564 # Check for CWEB support/directory
7565 # ---------------------------------------------------
7570 # [ --with-cweb[=DIR] Specify cweb library directory],
7572 # case "$with_cweb" in
7575 # if test "$with_cweb" != "yes"; then
7576 # CWEB_INC="-I$with_cweb"
7577 # CWEB_LIBS="-lcweb"
7578 # CWEB_LDFLAGS="-L$with_cweb"
7580 # with_cweb="/usr/include"
7582 # AC_CHECK_HEADER($with_cweb/cweb.h,
7583 # [ AC_MSG_RESULT(yes)
7584 # AC_DEFINE(HAVE_CWEB)
7585 # CWEB_LIBS="-lcweb"
7588 # [ AC_MSG_ERROR([*** cweb library missing])
7594 # # check for standard cweb library
7595 # AC_CHECK_HEADER(/usr/include/cweb.h,
7596 # [ AC_MSG_RESULT(yes)
7597 # AC_DEFINE(HAVE_CWEB)
7600 # CWEB_LIBS="-lcweb"
7602 # # Did not find starndard library, so use our own
7603 # AC_MSG_RESULT(yes)
7604 # AC_DEFINE(HAVE_CWEB)
7607 # CWEB=${TOP_DIR}/depkgs/cweb
7608 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7609 # CWEB_LIBS="-lcweb"
7610 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7611 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7617 #AC_SUBST(CWEB_LIBS)
7618 #AC_SUBST(CWEB_LDFLAGS)
7622 # -----------------------------------------------------------------------
7625 # Find where sockets are (especially for Solaris)
7626 # Do this before the TCP Wrappers test since tcp wrappers
7627 # uses the socket library and some linkers are stupid.
7629 echo "$as_me:$LINENO: checking for socket" >&5
7630 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7631 if test "${ac_cv_func_socket+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7642 #define socket innocuous_socket
7644 /* System header to define __stub macros and hopefully few prototypes,
7645 which can conflict with char socket (); below.
7646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7647 <limits.h> exists even on freestanding compilers. */
7650 # include <limits.h>
7652 # include <assert.h>
7657 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7665 /* The GNU C library defines this for functions which it implements
7666 to always fail with ENOSYS. Some functions are actually named
7667 something starting with __ and the normal name is an alias. */
7668 #if defined (__stub_socket) || defined (__stub___socket)
7671 char (*f) () = socket;
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>conftest.er1
7689 grep -v '^ *+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_cv_func_socket=yes
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ac_cv_func_socket=no
7714 rm -f conftest.err conftest.$ac_objext \
7715 conftest$ac_exeext conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7718 echo "${ECHO_T}$ac_cv_func_socket" >&6
7719 if test $ac_cv_func_socket = yes; then
7720 echo "$as_me:$LINENO: result: using libc's socket" >&5
7721 echo "${ECHO_T}using libc's socket" >&6
7724 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7725 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7726 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_check_lib_save_LIBS=$LIBS
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7738 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_lib_xnet_socket=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_lib_xnet_socket=no
7782 rm -f conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7786 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7787 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7788 if test $ac_cv_lib_xnet_socket = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define HAVE_LIBXNET 1
7798 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7799 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7800 if test "${ac_cv_lib_socket_socket+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lsocket $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7812 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_cv_lib_socket_socket=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 ac_cv_lib_socket_socket=no
7856 rm -f conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7861 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7862 if test $ac_cv_lib_socket_socket = yes; then
7863 cat >>confdefs.h <<_ACEOF
7864 #define HAVE_LIBSOCKET 1
7867 LIBS="-lsocket $LIBS"
7872 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7873 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7874 if test "${ac_cv_lib_inet_socket+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_check_lib_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_inet_socket=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_lib_inet_socket=no
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7935 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7936 if test $ac_cv_lib_inet_socket = yes; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_LIBINET 1
7949 # -----------------------------------------------------------
7950 # Check whether user wants TCP wrappers support (default off)
7951 # -----------------------------------------------------------
7954 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7955 if test "${with_tcp_wrappers+set}" = set; then
7956 withval="$with_tcp_wrappers"
7958 if test "x$withval" != "xno" ; then
7960 LIBS="$saved_LIBS -lwrap"
7961 echo "$as_me:$LINENO: checking for libwrap" >&5
7962 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7970 int deny_severity = 0;
7971 int allow_severity = 0;
7972 struct request_info *req;
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983 (eval $ac_link) 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest$ac_exeext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8004 echo "$as_me:$LINENO: result: yes" >&5
8005 echo "${ECHO_T}yes" >&6
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_LIBWRAP 1
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8017 LIBS="$saved_LIBS -lwrap -lnsl"
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 int deny_severity = 0;
8026 int allow_severity = 0;
8027 struct request_info *req;
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag"
8046 || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8059 echo "$as_me:$LINENO: result: yes" >&5
8060 echo "${ECHO_T}yes" >&6
8061 cat >>confdefs.h <<\_ACEOF
8062 #define HAVE_LIBWRAP 1
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8072 echo "$as_me: error: *** libwrap missing" >&2;}
8073 { (exit 1); exit 1; }; }
8076 rm -f conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8080 rm -f conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8087 # ------------------------------------------
8088 # Where to place working dir
8089 # ------------------------------------------
8090 working_dir=`eval echo ${prefix}/var/bacula/working`
8092 # Check whether --with-working-dir or --without-working-dir was given.
8093 if test "${with_working_dir+set}" = set; then
8094 withval="$with_working_dir"
8096 if test "x$withval" != "xno" ; then
8097 working_dir=$withval
8106 # ------------------------------------------
8107 # Where to place scriptdir (script files)
8108 # ------------------------------------------
8109 scriptdir=`eval echo ${sysconfdir}`
8111 # Check whether --with-scriptdir or --without-scriptdir was given.
8112 if test "${with_scriptdir+set}" = set; then
8113 withval="$with_scriptdir"
8115 if test "x$withval" != "xno" ; then
8125 # ------------------------------------------
8126 # Where to send dump email
8127 # ------------------------------------------
8128 dump_email=root@localhost
8130 # Check whether --with-dump-email or --without-dump-email was given.
8131 if test "${with_dump_email+set}" = set; then
8132 withval="$with_dump_email"
8134 if test "x$withval" != "xno" ; then
8143 # ------------------------------------------
8144 # Where to send job email
8145 # ------------------------------------------
8146 job_email=root@localhost
8148 # Check whether --with-job-email or --without-job-email was given.
8149 if test "${with_job_email+set}" = set; then
8150 withval="$with_job_email"
8152 if test "x$withval" != "xno" ; then
8161 # ------------------------------------------
8162 # Where to find smtp host
8163 # ------------------------------------------
8166 # Check whether --with-smtp_host or --without-smtp_host was given.
8167 if test "${with_smtp_host+set}" = set; then
8168 withval="$with_smtp_host"
8170 if test "x$withval" != "xno" ; then
8180 # ------------------------------------
8181 # Where to place pid files
8182 # ------------------------------------
8185 # Check whether --with-pid-dir or --without-pid-dir was given.
8186 if test "${with_pid_dir+set}" = set; then
8187 withval="$with_pid_dir"
8189 if test "x$withval" != "xno" ; then
8196 cat >>confdefs.h <<_ACEOF
8197 #define _PATH_BACULA_PIDDIR "$piddir"
8203 # ------------------------------------
8204 # Where to place subsys "lock file"
8205 # ------------------------------------
8206 subsysdir=/var/run/subsys
8208 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8209 if test "${with_subsys_dir+set}" = set; then
8210 withval="$with_subsys_dir"
8212 if test "x$withval" != "xno" ; then
8223 # ------------------------------------
8224 # Where to start assigning ports
8225 # ------------------------------------
8228 # Check whether --with-baseport or --without-baseport was given.
8229 if test "${with_baseport+set}" = set; then
8230 withval="$with_baseport"
8232 if test "x$withval" != "xno" ; then
8240 dir_port=`expr $baseport`
8241 fd_port=`expr $baseport + 1`
8242 sd_port=`expr $fd_port + 1`
8249 # ------------------------------------------
8250 # Generate passwords
8251 # ------------------------------------------
8254 # Check whether --with-dir-password or --without-dir-password was given.
8255 if test "${with_dir_password+set}" = set; then
8256 withval="$with_dir_password"
8258 if test "x$withval" != "xno" ; then
8259 dir_password=$withval
8265 if test "x$dir_password" = "x" ; then
8266 if test "x$OPENSSL" = "xnone" ; then
8267 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8268 key=`autoconf/randpass 33`
8270 key=`openssl rand -base64 33`
8277 # Check whether --with-fd-password or --without-fd-password was given.
8278 if test "${with_fd_password+set}" = set; then
8279 withval="$with_fd_password"
8281 if test "x$withval" != "xno" ; then
8282 fd_password=$withval
8288 if test "x$fd_password" = "x" ; then
8289 if test "x$OPENSSL" = "xnone" ; then
8290 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8291 key=`autoconf/randpass 37`
8293 key=`openssl rand -base64 33`
8300 # Check whether --with-sd-password or --without-sd-password was given.
8301 if test "${with_sd_password+set}" = set; then
8302 withval="$with_sd_password"
8304 if test "x$withval" != "xno" ; then
8305 sd_password=$withval
8311 if test "x$sd_password" = "x" ; then
8312 if test "x$OPENSSL" = "xnone" ; then
8313 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8314 key=`autoconf/randpass 41`
8316 key=`openssl rand -base64 33`
8323 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8324 if test "${with_mon_dir_password+set}" = set; then
8325 withval="$with_mon_dir_password"
8327 if test "x$withval" != "xno" ; then
8328 mon_dir_password=$withval
8334 if test "x$mon_dir_password" = "x" ; then
8335 if test "x$OPENSSL" = "xnone" ; then
8336 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8337 key=`autoconf/randpass 33`
8339 key=`openssl rand -base64 33`
8341 mon_dir_password=$key
8346 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8347 if test "${with_mon_fd_password+set}" = set; then
8348 withval="$with_mon_fd_password"
8350 if test "x$withval" != "xno" ; then
8351 mon_fd_password=$withval
8357 if test "x$mon_fd_password" = "x" ; then
8358 if test "x$OPENSSL" = "xnone" ; then
8359 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8360 key=`autoconf/randpass 37`
8362 key=`openssl rand -base64 33`
8364 mon_fd_password=$key
8369 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8370 if test "${with_mon_sd_password+set}" = set; then
8371 withval="$with_mon_sd_password"
8373 if test "x$withval" != "xno" ; then
8374 mon_sd_password=$withval
8380 if test "x$mon_sd_password" = "x" ; then
8381 if test "x$OPENSSL" = "xnone" ; then
8382 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8383 key=`autoconf/randpass 41`
8385 key=`openssl rand -base64 33`
8387 mon_sd_password=$key
8397 # -------------------------------------------------------------------------
8398 # Set variables for bimagemgr installation
8399 # -------------------------------------------------------------------------
8400 bimagemgr_cgidir=/var/www/cgi-bin
8402 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8403 if test "${with_bimagemgr_cgidir+set}" = set; then
8404 withval="$with_bimagemgr_cgidir"
8406 if test "x$withval" != "xno" ; then
8407 bimagemgr_cgidir=$withval
8413 bimagemgr_docdir=/var/www/html
8415 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8416 if test "${with_bimagemgr_docdir+set}" = set; then
8417 withval="$with_bimagemgr_docdir"
8419 if test "x$withval" != "xno" ; then
8420 bimagemgr_docdir=$withval
8426 bimagemgr_binowner=root
8428 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8429 if test "${with_bimagemgr_binowner+set}" = set; then
8430 withval="$with_bimagemgr_binowner"
8432 if test "x$withval" != "xno" ; then
8433 bimagemgr_binowner=$withval
8439 bimagemgr_bingroup=root
8441 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8442 if test "${with_bimagemgr_bingroup+set}" = set; then
8443 withval="$with_bimagemgr_bingroup"
8445 if test "x$withval" != "xno" ; then
8446 bimagemgr_bingroup=$withval
8452 bimagemgr_dataowner=apache
8454 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8455 if test "${with_bimagemgr_dataowner+set}" = set; then
8456 withval="$with_bimagemgr_dataowner"
8458 if test "x$withval" != "xno" ; then
8459 bimagemgr_dataowner=$withval
8465 bimagemgr_datagroup=apache
8467 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8468 if test "${with_bimagemgr_datagroup+set}" = set; then
8469 withval="$with_bimagemgr_datagroup"
8471 if test "x$withval" != "xno" ; then
8472 bimagemgr_datagroup=$withval
8486 # Handle users and groups for each daemon
8490 # Check whether --with-dir_user or --without-dir_user was given.
8491 if test "${with_dir_user+set}" = set; then
8492 withval="$with_dir_user"
8494 if test "x$withval" != "x" ; then
8503 # Check whether --with-dir_group or --without-dir_group was given.
8504 if test "${with_dir_group+set}" = set; then
8505 withval="$with_dir_group"
8507 if test "x$withval" != "x" ; then
8516 # Check whether --with-sd_user or --without-sd_user was given.
8517 if test "${with_sd_user+set}" = set; then
8518 withval="$with_sd_user"
8520 if test "x$withval" != "x" ; then
8529 # Check whether --with-sd_group or --without-sd_group was given.
8530 if test "${with_sd_group+set}" = set; then
8531 withval="$with_sd_group"
8533 if test "x$withval" != "x" ; then
8542 # Check whether --with-fd_user or --without-fd_user was given.
8543 if test "${with_fd_user+set}" = set; then
8544 withval="$with_fd_user"
8546 if test "x$withval" != "x" ; then
8555 # Check whether --with-fd_group or --without-fd_group was given.
8556 if test "${with_fd_group+set}" = set; then
8557 withval="$with_fd_group"
8559 if test "x$withval" != "x" ; then
8577 # allow setting default executable permissions
8581 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8582 if test "${with_sbin_perm+set}" = set; then
8583 withval="$with_sbin_perm"
8585 if test "x$withval" != "x" ; then
8594 # ------------------------------------------------
8595 # Bacula check for various SQL database engines
8596 # ------------------------------------------------
8599 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8600 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8602 # Check whether --with-postgresql or --without-postgresql was given.
8603 if test "${with_postgresql+set}" = set; then
8604 withval="$with_postgresql"
8606 if test "$withval" != "no"; then
8607 if test "$db_found" = "yes"; then
8608 echo "$as_me:$LINENO: result: error" >&5
8609 echo "${ECHO_T}error" >&6
8610 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8611 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8612 { (exit 1); exit 1; }; };
8614 if test "$withval" = "yes"; then
8615 if test -f /usr/local/include/libpq-fe.h; then
8616 POSTGRESQL_INCDIR=/usr/local/include
8617 POSTGRESQL_LIBDIR=/usr/local/lib
8618 POSTGRESQL_BINDIR=/usr/local/bin
8619 elif test -f /usr/include/libpq-fe.h; then
8620 POSTGRESQL_INCDIR=/usr/include
8621 POSTGRESQL_LIBDIR=/usr/lib
8622 POSTGRESQL_BINDIR=/usr/bin
8623 elif test -f /usr/include/pgsql/libpq-fe.h; then
8624 POSTGRESQL_INCDIR=/usr/include/pgsql
8625 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8626 POSTGRESQL_BINDIR=/usr/bin
8627 elif test -f /usr/include/postgresql/libpq-fe.h; then
8628 POSTGRESQL_INCDIR=/usr/include/postgresql
8629 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8630 POSTGRESQL_BINDIR=/usr/bin
8632 echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8634 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8635 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8636 { (exit 1); exit 1; }; }
8638 elif test -f $withval/include/libpq-fe.h; then
8639 POSTGRESQL_INCDIR=$withval/include
8640 POSTGRESQL_LIBDIR=$withval/lib
8641 POSTGRESQL_BINDIR=$withval/bin
8642 elif test -f $withval/include/postgresql/libpq-fe.h; then
8643 POSTGRESQL_INCDIR=$withval/include/postgresql
8644 POSTGRESQL_LIBDIR=$withval/lib
8645 POSTGRESQL_BINDIR=$withval/bin
8647 echo "$as_me:$LINENO: result: no" >&5
8648 echo "${ECHO_T}no" >&6
8649 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8650 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8651 { (exit 1); exit 1; }; }
8653 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8654 echo "$as_me:$LINENO: checking for crypt" >&5
8655 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8656 if test "${ac_cv_func_crypt+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8667 #define crypt innocuous_crypt
8669 /* System header to define __stub macros and hopefully few prototypes,
8670 which can conflict with char crypt (); below.
8671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 <limits.h> exists even on freestanding compilers. */
8675 # include <limits.h>
8677 # include <assert.h>
8682 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8690 /* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693 #if defined (__stub_crypt) || defined (__stub___crypt)
8696 char (*f) () = crypt;
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_func_crypt=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8743 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8744 if test $ac_cv_func_crypt = yes; then
8747 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8748 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8749 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 ac_check_lib_save_LIBS=$LIBS
8753 LIBS="-lcrypt $LIBS"
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8761 /* Override any gcc2 internal prototype to avoid an error. */
8765 /* We use char because int might match the return type of a gcc2
8766 builtin and then its argument prototype would still apply. */
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778 (eval $ac_link) 2>conftest.er1
8780 grep -v '^ *+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -z "$ac_c_werror_flag"
8786 || test ! -s conftest.err'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; } &&
8792 { ac_try='test -s conftest$ac_exeext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 ac_cv_lib_crypt_crypt=yes
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_cv_lib_crypt_crypt=no
8805 rm -f conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_lib_save_LIBS
8809 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8810 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8811 if test $ac_cv_lib_crypt_crypt = yes; then
8812 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8817 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8818 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8819 SQL_BINDIR=$POSTGRESQL_BINDIR
8820 cat >>confdefs.h <<\_ACEOF
8821 #define HAVE_POSTGRESQL 1
8824 echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8827 support_postgresql=yes
8831 echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8837 echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6
8849 echo "$as_me:$LINENO: checking for MySQL support" >&5
8850 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8852 # Check whether --with-mysql or --without-mysql was given.
8853 if test "${with_mysql+set}" = set; then
8854 withval="$with_mysql"
8856 if test "$withval" != "no"; then
8857 if test "$withval" = "yes"; then
8858 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8859 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8860 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8861 MYSQL_BINDIR=/usr/local/mysql/bin
8862 elif test -f /usr/include/mysql/mysql.h; then
8863 MYSQL_INCDIR=/usr/include/mysql
8864 MYSQL_LIBDIR=/usr/lib/mysql
8865 MYSQL_BINDIR=/usr/bin
8866 elif test -f /usr/include/mysql.h; then
8867 MYSQL_INCDIR=/usr/include
8868 MYSQL_LIBDIR=/usr/lib
8869 MYSQL_BINDIR=/usr/bin
8870 elif test -f /usr/local/include/mysql/mysql.h; then
8871 MYSQL_INCDIR=/usr/local/include/mysql
8872 MYSQL_LIBDIR=/usr/local/lib/mysql
8873 MYSQL_BINDIR=/usr/local/bin
8874 elif test -f /usr/local/include/mysql.h; then
8875 MYSQL_INCDIR=/usr/local/include
8876 MYSQL_LIBDIR=/usr/local/lib
8877 MYSQL_BINDIR=/usr/local/bin
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8882 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8883 { (exit 1); exit 1; }; }
8886 if test -f $withval/include/mysql/mysql.h; then
8887 MYSQL_INCDIR=$withval/include/mysql
8888 MYSQL_LIBDIR=$withval/lib/mysql
8889 MYSQL_BINDIR=$withval/bin
8890 elif test -f $withval/include/mysql.h; then
8891 MYSQL_INCDIR=$withval/include
8892 MYSQL_LIBDIR=$withval/lib
8893 MYSQL_BINDIR=$withval/bin
8895 echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8897 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8898 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8899 { (exit 1); exit 1; }; }
8902 SQL_INCLUDE=-I$MYSQL_INCDIR
8903 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8904 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8905 cat >>confdefs.h <<\_ACEOF
8906 #define HAVE_THREAD_SAFE_MYSQL 1
8910 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8912 SQL_BINDIR=$MYSQL_BINDIR
8914 cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_MYSQL 1
8918 echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6
8926 echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6
8934 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8935 if test "${with_embedded_mysql+set}" = set; then
8936 withval="$with_embedded_mysql"
8938 if test "$withval" != "no"; then
8939 if test "$withval" = "yes"; then
8940 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8941 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8942 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8943 MYSQL_BINDIR=/usr/local/mysql/bin
8944 elif test -f /usr/include/mysql/mysql.h; then
8945 MYSQL_INCDIR=/usr/include/mysql
8946 MYSQL_LIBDIR=/usr/lib/mysql
8947 MYSQL_BINDIR=/usr/bin
8948 elif test -f /usr/include/mysql.h; then
8949 MYSQL_INCDIR=/usr/include
8950 MYSQL_LIBDIR=/usr/lib
8951 MYSQL_BINDIR=/usr/bin
8952 elif test -f /usr/local/include/mysql/mysql.h; then
8953 MYSQL_INCDIR=/usr/local/include/mysql
8954 MYSQL_LIBDIR=/usr/local/lib/mysql
8955 MYSQL_BINDIR=/usr/local/bin
8956 elif test -f /usr/local/include/mysql.h; then
8957 MYSQL_INCDIR=/usr/local/include
8958 MYSQL_LIBDIR=/usr/local/lib
8959 MYSQL_BINDIR=/usr/local/bin
8961 echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6
8963 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8964 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8965 { (exit 1); exit 1; }; }
8968 if test -f $withval/include/mysql/mysql.h; then
8969 MYSQL_INCDIR=$withval/include/mysql
8970 MYSQL_LIBDIR=$withval/lib/mysql
8971 MYSQL_BINDIR=$withval/bin
8972 elif test -f $withval/include/mysql.h; then
8973 MYSQL_INCDIR=$withval/include
8974 MYSQL_LIBDIR=$withval/lib
8975 MYSQL_BINDIR=$withval/bin
8977 echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8980 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8981 { (exit 1); exit 1; }; }
8984 SQL_INCLUDE=-I$MYSQL_INCDIR
8985 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8986 SQL_BINDIR=$MYSQL_BINDIR
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_MYSQL 1
8992 cat >>confdefs.h <<\_ACEOF
8993 #define HAVE_EMBEDDED_MYSQL 1
8996 echo "$as_me:$LINENO: result: yes" >&5
8997 echo "${ECHO_T}yes" >&6
9004 echo "$as_me:$LINENO: result: no" >&5
9005 echo "${ECHO_T}no" >&6
9020 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9021 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9023 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9024 if test "${with_sqlite3+set}" = set; then
9025 withval="$with_sqlite3"
9027 if test "$withval" != "no"; then
9028 if test "$withval" = "yes"; then
9029 if test -f /usr/local/include/sqlite3.h; then
9030 SQLITE_INCDIR=/usr/local/include
9031 SQLITE_LIBDIR=/usr/local/lib
9032 SQLITE_BINDIR=/usr/local/bin
9033 elif test -f /usr/include/sqlite3.h; then
9034 SQLITE_INCDIR=/usr/include
9035 SQLITE_LIBDIR=/usr/lib
9036 SQLITE_BINDIR=/usr/bin
9037 elif test -f $prefix/include/sqlite3.h; then
9038 SQLITE_INCDIR=$prefix/include
9039 SQLITE_LIBDIR=$prefix/lib
9040 SQLITE_BINDIR=$prefix/bin
9042 echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9044 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9045 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9046 { (exit 1); exit 1; }; }
9049 if test -f $withval/sqlite3.h; then
9050 SQLITE_INCDIR=$withval
9051 SQLITE_LIBDIR=$withval
9052 SQLITE_BINDIR=$withval
9053 elif test -f $withval/include/sqlite3.h; then
9054 SQLITE_INCDIR=$withval/include
9055 SQLITE_LIBDIR=$withval/lib
9056 SQLITE_BINDIR=$withval/bin
9058 echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6
9060 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9061 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9062 { (exit 1); exit 1; }; }
9065 SQL_INCLUDE=-I$SQLITE_INCDIR
9066 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9067 SQL_BINDIR=$SQLITE_BINDIR
9069 cat >>confdefs.h <<\_ACEOF
9070 #define HAVE_SQLITE3 1
9073 echo "$as_me:$LINENO: result: yes" >&5
9074 echo "${ECHO_T}yes" >&6
9081 echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6
9087 echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6
9099 echo "$as_me:$LINENO: checking for SQLite support" >&5
9100 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9102 # Check whether --with-sqlite or --without-sqlite was given.
9103 if test "${with_sqlite+set}" = set; then
9104 withval="$with_sqlite"
9106 if test "$withval" != "no"; then
9107 if test "$withval" = "yes"; then
9108 if test -f /usr/local/include/sqlite.h; then
9109 SQLITE_INCDIR=/usr/local/include
9110 SQLITE_LIBDIR=/usr/local/lib
9111 SQLITE_BINDIR=/usr/local/bin
9112 elif test -f /usr/include/sqlite.h; then
9113 SQLITE_INCDIR=/usr/include
9114 SQLITE_LIBDIR=/usr/lib
9115 SQLITE_BINDIR=/usr/bin
9116 elif test -f $prefix/include/sqlite.h; then
9117 SQLITE_INCDIR=$prefix/include
9118 SQLITE_LIBDIR=$prefix/lib
9119 SQLITE_BINDIR=$prefix/bin
9121 echo "$as_me:$LINENO: result: no" >&5
9122 echo "${ECHO_T}no" >&6
9123 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9124 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9125 { (exit 1); exit 1; }; }
9128 if test -f $withval/sqlite.h; then
9129 SQLITE_INCDIR=$withval
9130 SQLITE_LIBDIR=$withval
9131 SQLITE_BINDIR=$withval
9132 elif test -f $withval/include/sqlite.h; then
9133 SQLITE_INCDIR=$withval/include
9134 SQLITE_LIBDIR=$withval/lib
9135 SQLITE_BINDIR=$withval/bin
9137 echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9139 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9140 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9141 { (exit 1); exit 1; }; }
9144 SQL_INCLUDE=-I$SQLITE_INCDIR
9145 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9146 SQL_BINDIR=$SQLITE_BINDIR
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_SQLITE 1
9152 echo "$as_me:$LINENO: result: yes" >&5
9153 echo "${ECHO_T}yes" >&6
9160 echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6
9166 echo "$as_me:$LINENO: result: no" >&5
9167 echo "${ECHO_T}no" >&6
9179 cat >>confdefs.h <<\_ACEOF
9180 #define PROTOTYPES 1
9184 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9185 if test -z "$CCOPTS"; then
9186 CCOPTS='-g -O2 -Wall'
9194 largefile_support="no"
9196 # Check whether --enable-largefile or --disable-largefile was given.
9197 if test "${enable_largefile+set}" = set; then
9198 enableval="$enable_largefile"
9201 if test "$enable_largefile" != no; then
9202 if test -n "$ac_tool_prefix"; then
9203 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9204 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9205 echo "$as_me:$LINENO: checking for $ac_word" >&5
9206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9207 if test "${ac_cv_prog_GETCONF+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 if test -n "$GETCONF"; then
9211 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9220 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 GETCONF=$ac_cv_prog_GETCONF
9230 if test -n "$GETCONF"; then
9231 echo "$as_me:$LINENO: result: $GETCONF" >&5
9232 echo "${ECHO_T}$GETCONF" >&6
9234 echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9239 if test -z "$ac_cv_prog_GETCONF"; then
9240 ac_ct_GETCONF=$GETCONF
9241 # Extract the first word of "getconf", so it can be a program name with args.
9242 set dummy getconf; ac_word=$2
9243 echo "$as_me:$LINENO: checking for $ac_word" >&5
9244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9245 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 if test -n "$ac_ct_GETCONF"; then
9249 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_prog_ac_ct_GETCONF="getconf"
9259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9268 if test -n "$ac_ct_GETCONF"; then
9269 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9270 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9272 echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9276 GETCONF=$ac_ct_GETCONF
9278 GETCONF="$ac_cv_prog_GETCONF"
9281 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9282 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9283 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9287 ac_cv_sys_largefile_CFLAGS=no
9289 # IRIX 6.2 and later require cc -n32.
9290 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9291 if test "$GCC" != yes; then
9292 ac_cv_sys_largefile_CFLAGS=-n32
9295 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_sys_largefile_CFLAGS=no
9340 rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9347 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9348 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9349 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9350 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9354 ac_cv_sys_largefile_LDFLAGS=no
9358 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9359 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9360 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9361 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9362 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9366 ac_cv_sys_largefile_LIBS=no
9370 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9371 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9373 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9376 -D_FILE_OFFSET_BITS=*) ;;
9377 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9378 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9384 '') CPPFLAGS="$ac_flag" ;;
9385 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9393 '') CFLAGS="$ac_flag" ;;
9394 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9399 case "$ac_cv_sys_largefile_LDFLAGS" in
9403 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9404 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9407 case "$ac_cv_sys_largefile_LIBS" in
9411 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9412 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9415 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9416 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9417 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_cv_sys_file_offset_bits=no
9421 ac_cv_sys_file_offset_bits=64
9422 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9424 -D_FILE_OFFSET_BITS)
9425 ac_cv_sys_file_offset_bits=1 ;;
9426 -D_FILE_OFFSET_BITS=*)
9427 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9432 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9433 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9434 if test "$ac_cv_sys_file_offset_bits" != no; then
9436 cat >>confdefs.h <<_ACEOF
9437 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9441 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9442 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9443 if test "${ac_cv_sys_largefile_source+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 ac_cv_sys_largefile_source=no
9447 ac_cv_sys_largefile_source=1
9448 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9450 -D_LARGEFILE_SOURCE)
9451 ac_cv_sys_largefile_source=1 ;;
9452 -D_LARGEFILE_SOURCE=*)
9453 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9458 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9459 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9460 if test "$ac_cv_sys_largefile_source" != no; then
9462 cat >>confdefs.h <<_ACEOF
9463 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9467 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9468 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9469 if test "${ac_cv_sys_large_files+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 ac_cv_sys_large_files=no
9473 ac_cv_sys_large_files=1
9474 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9477 ac_cv_sys_large_files=1 ;;
9479 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9484 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9485 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9486 if test "$ac_cv_sys_large_files" != no; then
9488 cat >>confdefs.h <<_ACEOF
9489 #define _LARGE_FILES $ac_cv_sys_large_files
9497 echo "$as_me:$LINENO: checking for X" >&5
9498 echo $ECHO_N "checking for X... $ECHO_C" >&6
9501 # Check whether --with-x or --without-x was given.
9502 if test "${with_x+set}" = set; then
9506 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9507 if test "x$with_x" = xno; then
9508 # The user explicitly disabled X.
9511 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9512 # Both variables are already set.
9515 if test "${ac_cv_have_x+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 # One or both of the vars are not set, and there is no cached value.
9519 ac_x_includes=no ac_x_libraries=no
9521 if mkdir conftest.dir; then
9523 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9524 cat >Imakefile <<'_ACEOF'
9526 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9528 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9530 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9531 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9532 for ac_extension in a so sl; do
9533 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9534 test -f $ac_im_libdir/libX11.$ac_extension; then
9535 ac_im_usrlibdir=$ac_im_libdir; break
9538 # Screen out bogus values from the imake configuration. They are
9539 # bogus both because they are the default anyway, and because
9540 # using them would break gcc on systems where it needs fixed includes.
9541 case $ac_im_incroot in
9543 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9545 case $ac_im_usrlibdir in
9547 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9554 # Standard set of common directories for X headers.
9555 # Check X11 before X11Rn because it is often a symlink to the current release.
9567 /usr/local/X11/include
9568 /usr/local/X11R6/include
9569 /usr/local/X11R5/include
9570 /usr/local/X11R4/include
9572 /usr/local/include/X11
9573 /usr/local/include/X11R6
9574 /usr/local/include/X11R5
9575 /usr/local/include/X11R4
9579 /usr/XFree86/include/X11
9583 /usr/unsupported/include
9585 /usr/local/x11r5/include
9586 /usr/lpp/Xamples/include
9588 /usr/openwin/include
9589 /usr/openwin/share/include'
9591 if test "$ac_x_includes" = no; then
9592 # Guess where to find include files, by looking for Intrinsic.h.
9593 # First, try using that file with no special directory specified.
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <X11/Intrinsic.h>
9602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } >/dev/null; then
9610 if test -s conftest.err; then
9611 ac_cpp_err=$ac_c_preproc_warn_flag
9612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9619 if test -z "$ac_cpp_err"; then
9620 # We can compile using X headers with no special include directory.
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 for ac_dir in $ac_x_header_dirs; do
9627 if test -r "$ac_dir/X11/Intrinsic.h"; then
9628 ac_x_includes=$ac_dir
9633 rm -f conftest.err conftest.$ac_ext
9634 fi # $ac_x_includes = no
9636 if test "$ac_x_libraries" = no; then
9637 # Check for the libraries.
9638 # See if we find them without any special options.
9639 # Don't add to $LIBS permanently.
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <X11/Intrinsic.h>
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest$ac_exeext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9680 # We can link X programs with no special library path.
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9687 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9689 # Don't even attempt the hair of trying to link an X program!
9690 for ac_extension in a so sl; do
9691 if test -r $ac_dir/libXt.$ac_extension; then
9692 ac_x_libraries=$ac_dir
9698 rm -f conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9700 fi # $ac_x_libraries = no
9702 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9703 # Didn't find X anywhere. Cache the known absence of X.
9704 ac_cv_have_x="have_x=no"
9706 # Record where we found X for the cache.
9707 ac_cv_have_x="have_x=yes \
9708 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9713 eval "$ac_cv_have_x"
9716 if test "$have_x" != yes; then
9717 echo "$as_me:$LINENO: result: $have_x" >&5
9718 echo "${ECHO_T}$have_x" >&6
9721 # If each of the values was on the command line, it overrides each guess.
9722 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9723 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9724 # Update the cache value to reflect the command line values.
9725 ac_cv_have_x="have_x=yes \
9726 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9727 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9728 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9731 if test "$no_x" = yes; then
9732 # Not all programs may use this symbol, but it does not hurt to define it.
9734 cat >>confdefs.h <<\_ACEOF
9735 #define X_DISPLAY_MISSING 1
9738 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9740 if test -n "$x_includes"; then
9741 X_CFLAGS="$X_CFLAGS -I$x_includes"
9744 # It would also be nice to do this for all -L options, not just this one.
9745 if test -n "$x_libraries"; then
9746 X_LIBS="$X_LIBS -L$x_libraries"
9747 # For Solaris; some versions of Sun CC require a space after -R and
9748 # others require no space. Words are not sufficient . . . .
9749 case `(uname -sr) 2>/dev/null` in
9751 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9752 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9753 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag"
9779 || test ! -s conftest.err'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9798 rm -f conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 if test $ac_R_nospace = yes; then
9801 echo "$as_me:$LINENO: result: no" >&5
9802 echo "${ECHO_T}no" >&6
9803 X_LIBS="$X_LIBS -R$x_libraries"
9805 LIBS="$ac_xsave_LIBS -R $x_libraries"
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9850 rm -f conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 if test $ac_R_space = yes; then
9853 echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6
9855 X_LIBS="$X_LIBS -R $x_libraries"
9857 echo "$as_me:$LINENO: result: neither works" >&5
9858 echo "${ECHO_T}neither works" >&6
9865 # Check for system-dependent libraries X programs must link with.
9866 # Do this before checking for the system-independent R6 libraries
9867 # (-lICE), since we may need -lsocket or whatever for X linking.
9869 if test "$ISC" = yes; then
9870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9872 # Martyn Johnson says this is needed for Ultrix, if the X
9873 # libraries were built with DECnet support. And Karl Berry says
9874 # the Alpha needs dnet_stub (dnet does not exist).
9875 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9883 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889 char XOpenDisplay ();
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9926 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9927 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 ac_check_lib_save_LIBS=$LIBS
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_lib_dnet_dnet_ntoa=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_cv_lib_dnet_dnet_ntoa=no
9983 rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_lib_save_LIBS
9987 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9988 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9989 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9990 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9993 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9994 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9995 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9996 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 ac_check_lib_save_LIBS=$LIBS
10000 LIBS="-ldnet_stub $LIBS"
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_lib_dnet_stub_dnet_ntoa=no
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10058 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10059 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10064 rm -f conftest.err conftest.$ac_objext \
10065 conftest$ac_exeext conftest.$ac_ext
10066 LIBS="$ac_xsave_LIBS"
10068 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10069 # to get the SysV transport functions.
10070 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10072 # The nsl library prevents programs from opening the X display
10073 # on Irix 5.2, according to T.E. Dickey.
10074 # The functions gethostbyname, getservbyname, and inet_addr are
10075 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10076 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10077 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10078 if test "${ac_cv_func_gethostbyname+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089 #define gethostbyname innocuous_gethostbyname
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char gethostbyname (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
10097 # include <limits.h>
10099 # include <assert.h>
10102 #undef gethostbyname
10104 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10111 char gethostbyname ();
10112 /* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10118 char (*f) () = gethostbyname;
10127 return f != gethostbyname;
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_func_gethostbyname=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_func_gethostbyname=no
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10165 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10167 if test $ac_cv_func_gethostbyname = no; then
10168 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10169 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10170 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 ac_check_lib_save_LIBS=$LIBS
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10182 /* Override any gcc2 internal prototype to avoid an error. */
10186 /* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
10188 char gethostbyname ();
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10201 grep -v '^ *+' conftest.er1 >conftest.err
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -z "$ac_c_werror_flag"
10207 || test ! -s conftest.err'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_lib_nsl_gethostbyname=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_lib_nsl_gethostbyname=no
10226 rm -f conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10231 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10232 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10236 if test $ac_cv_lib_nsl_gethostbyname = no; then
10237 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10238 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10239 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 ac_check_lib_save_LIBS=$LIBS
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10251 /* Override any gcc2 internal prototype to avoid an error. */
10255 /* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
10257 char gethostbyname ();
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_lib_bsd_gethostbyname=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_cv_lib_bsd_gethostbyname=no
10295 rm -f conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297 LIBS=$ac_check_lib_save_LIBS
10299 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10300 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10301 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10302 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10308 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10309 # socket/setsockopt and other routines are undefined under SCO ODT
10310 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10311 # on later versions), says Simon Leinen: it contains gethostby*
10312 # variants that don't use the name server (or something). -lsocket
10313 # must be given before -lnsl if both are needed. We assume that
10314 # if connect needs -lnsl, so does gethostbyname.
10315 echo "$as_me:$LINENO: checking for connect" >&5
10316 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10317 if test "${ac_cv_func_connect+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10328 #define connect innocuous_connect
10330 /* System header to define __stub macros and hopefully few prototypes,
10331 which can conflict with char connect (); below.
10332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10333 <limits.h> exists even on freestanding compilers. */
10336 # include <limits.h>
10338 # include <assert.h>
10343 /* Override any gcc2 internal prototype to avoid an error. */
10348 /* We use char because int might match the return type of a gcc2
10349 builtin and then its argument prototype would still apply. */
10351 /* The GNU C library defines this for functions which it implements
10352 to always fail with ENOSYS. Some functions are actually named
10353 something starting with __ and the normal name is an alias. */
10354 #if defined (__stub_connect) || defined (__stub___connect)
10357 char (*f) () = connect;
10366 return f != connect;
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -z "$ac_c_werror_flag"
10381 || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_func_connect=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_cv_func_connect=no
10400 rm -f conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10403 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10404 echo "${ECHO_T}$ac_cv_func_connect" >&6
10406 if test $ac_cv_func_connect = no; then
10407 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10408 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10409 if test "${ac_cv_lib_socket_connect+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10421 /* Override any gcc2 internal prototype to avoid an error. */
10425 /* We use char because int might match the return type of a gcc2
10426 builtin and then its argument prototype would still apply. */
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_lib_socket_connect=yes
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_cv_lib_socket_connect=no
10465 rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10469 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10470 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10471 if test $ac_cv_lib_socket_connect = yes; then
10472 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10477 # Guillermo Gomez says -lposix is necessary on A/UX.
10478 echo "$as_me:$LINENO: checking for remove" >&5
10479 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10480 if test "${ac_cv_func_remove+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10491 #define remove innocuous_remove
10493 /* System header to define __stub macros and hopefully few prototypes,
10494 which can conflict with char remove (); below.
10495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10496 <limits.h> exists even on freestanding compilers. */
10499 # include <limits.h>
10501 # include <assert.h>
10506 /* Override any gcc2 internal prototype to avoid an error. */
10511 /* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10514 /* The GNU C library defines this for functions which it implements
10515 to always fail with ENOSYS. Some functions are actually named
10516 something starting with __ and the normal name is an alias. */
10517 #if defined (__stub_remove) || defined (__stub___remove)
10520 char (*f) () = remove;
10529 return f != remove;
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>conftest.er1
10538 grep -v '^ *+' conftest.er1 >conftest.err
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_func_remove=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_cv_func_remove=no
10563 rm -f conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10566 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10567 echo "${ECHO_T}$ac_cv_func_remove" >&6
10569 if test $ac_cv_func_remove = no; then
10570 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10572 if test "${ac_cv_lib_posix_remove+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lposix $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10584 /* Override any gcc2 internal prototype to avoid an error. */
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -z "$ac_c_werror_flag"
10609 || test ! -s conftest.err'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_lib_posix_remove=yes
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_cv_lib_posix_remove=no
10628 rm -f conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10632 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10633 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10634 if test $ac_cv_lib_posix_remove = yes; then
10635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10641 echo "$as_me:$LINENO: checking for shmat" >&5
10642 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10643 if test "${ac_cv_func_shmat+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10654 #define shmat innocuous_shmat
10656 /* System header to define __stub macros and hopefully few prototypes,
10657 which can conflict with char shmat (); below.
10658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659 <limits.h> exists even on freestanding compilers. */
10662 # include <limits.h>
10664 # include <assert.h>
10669 /* Override any gcc2 internal prototype to avoid an error. */
10674 /* We use char because int might match the return type of a gcc2
10675 builtin and then its argument prototype would still apply. */
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined (__stub_shmat) || defined (__stub___shmat)
10683 char (*f) () = shmat;
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest$ac_exeext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_func_shmat=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_func_shmat=no
10726 rm -f conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10730 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10732 if test $ac_cv_func_shmat = no; then
10733 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10734 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10735 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 ac_check_lib_save_LIBS=$LIBS
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10747 /* Override any gcc2 internal prototype to avoid an error. */
10751 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764 (eval $ac_link) 2>conftest.er1
10766 grep -v '^ *+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag"
10772 || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_lib_ipc_shmat=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_lib_ipc_shmat=no
10791 rm -f conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10795 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10796 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10797 if test $ac_cv_lib_ipc_shmat = yes; then
10798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10804 # Check for libraries that X11R6 Xt/Xaw programs need.
10805 ac_save_LDFLAGS=$LDFLAGS
10806 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10807 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10808 # check for ICE first), but we must link in the order -lSM -lICE or
10809 # we get undefined symbols. So assume we have SM if we have ICE.
10810 # These have to be linked with before -lX11, unlike the other
10811 # libraries we check for below, so use a different variable.
10812 # John Interrante, Karl Berry
10813 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10814 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10815 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10827 /* Override any gcc2 internal prototype to avoid an error. */
10831 /* We use char because int might match the return type of a gcc2
10832 builtin and then its argument prototype would still apply. */
10833 char IceConnectionNumber ();
10837 IceConnectionNumber ();
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844 (eval $ac_link) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_lib_ICE_IceConnectionNumber=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_lib_ICE_IceConnectionNumber=no
10871 rm -f conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10875 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10876 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10877 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10878 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10881 LDFLAGS=$ac_save_LDFLAGS
10943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10945 echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953 # Is the header compilable?
10954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 $ac_includes_default
10963 #include <$ac_header>
10965 rm -f conftest.$ac_objext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967 (eval $ac_compile) 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag"
10975 || test ! -s conftest.err'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_header_compiler=yes
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 ac_header_compiler=no
10994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10996 echo "${ECHO_T}$ac_header_compiler" >&6
10998 # Is the header present?
10999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <$ac_header>
11009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } >/dev/null; then
11017 if test -s conftest.err; then
11018 ac_cpp_err=$ac_c_preproc_warn_flag
11019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11026 if test -z "$ac_cpp_err"; then
11027 ac_header_preproc=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_header_preproc=no
11034 rm -f conftest.err conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036 echo "${ECHO_T}$ac_header_preproc" >&6
11038 # So? What about this header?
11039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045 ac_header_preproc=yes
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11062 ## ------------------------------------------ ##
11063 ## Report this to the AC_PACKAGE_NAME lists. ##
11064 ## ------------------------------------------ ##
11067 sed "s/^/$as_me: WARNING: /" >&2
11070 echo "$as_me:$LINENO: checking for $ac_header" >&5
11071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 eval "$as_ac_Header=\$ac_header_preproc"
11077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11090 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11092 if test "${ac_cv_header_stdc+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 #include <stdlib.h>
11102 #include <stdarg.h>
11103 #include <string.h>
11114 rm -f conftest.$ac_objext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116 (eval $ac_compile) 2>conftest.er1
11118 grep -v '^ *+' conftest.er1 >conftest.err
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -z "$ac_c_werror_flag"
11124 || test ! -s conftest.err'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_header_stdc=yes
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ac_cv_header_stdc=no
11143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 if test $ac_cv_header_stdc = yes; then
11146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #include <string.h>
11156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11157 $EGREP "memchr" >/dev/null 2>&1; then
11160 ac_cv_header_stdc=no
11166 if test $ac_cv_header_stdc = yes; then
11167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11168 cat >conftest.$ac_ext <<_ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <stdlib.h>
11177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11178 $EGREP "free" >/dev/null 2>&1; then
11181 ac_cv_header_stdc=no
11187 if test $ac_cv_header_stdc = yes; then
11188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11189 if test "$cross_compiling" = yes; then
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11199 #if ((' ' & 0x0FF) == 0x020)
11200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11203 # define ISLOWER(c) \
11204 (('a' <= (c) && (c) <= 'i') \
11205 || ('j' <= (c) && (c) <= 'r') \
11206 || ('s' <= (c) && (c) <= 'z'))
11207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11215 for (i = 0; i < 256; i++)
11216 if (XOR (islower (i), ISLOWER (i))
11217 || toupper (i) != TOUPPER (i))
11222 rm -f conftest$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11235 echo "$as_me: program exited with status $ac_status" >&5
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ( exit $ac_status )
11240 ac_cv_header_stdc=no
11242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11247 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11248 if test $ac_cv_header_stdc = yes; then
11250 cat >>confdefs.h <<\_ACEOF
11251 #define STDC_HEADERS 1
11256 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11257 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11258 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <sys/types.h>
11271 return makedev(0, 0);
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>conftest.er1
11280 grep -v '^ *+' conftest.er1 >conftest.err
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_header_sys_types_h_makedev=yes
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_cv_header_sys_types_h_makedev=no
11305 rm -f conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11309 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11310 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11312 if test $ac_cv_header_sys_types_h_makedev = no; then
11313 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11314 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11315 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11316 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11320 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11322 # Is the header compilable?
11323 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11324 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 $ac_includes_default
11332 #include <sys/mkdev.h>
11334 rm -f conftest.$ac_objext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336 (eval $ac_compile) 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag"
11344 || test ! -s conftest.err'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest.$ac_objext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_header_compiler=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_header_compiler=no
11363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11365 echo "${ECHO_T}$ac_header_compiler" >&6
11367 # Is the header present?
11368 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11369 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <sys/mkdev.h>
11378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } >/dev/null; then
11386 if test -s conftest.err; then
11387 ac_cpp_err=$ac_c_preproc_warn_flag
11388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11395 if test -z "$ac_cpp_err"; then
11396 ac_header_preproc=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_header_preproc=no
11403 rm -f conftest.err conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11405 echo "${ECHO_T}$ac_header_preproc" >&6
11407 # So? What about this header?
11408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11411 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11414 ac_header_preproc=yes
11417 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11418 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11420 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11422 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11424 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11426 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11428 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11431 ## ------------------------------------------ ##
11432 ## Report this to the AC_PACKAGE_NAME lists. ##
11433 ## ------------------------------------------ ##
11436 sed "s/^/$as_me: WARNING: /" >&2
11439 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11440 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11441 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11447 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11450 if test $ac_cv_header_sys_mkdev_h = yes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define MAJOR_IN_MKDEV 1
11460 if test $ac_cv_header_sys_mkdev_h = no; then
11461 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11462 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11463 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11464 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11468 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11470 # Is the header compilable?
11471 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11472 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 $ac_includes_default
11480 #include <sys/sysmacros.h>
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_header_compiler=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_header_compiler=no
11511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6
11515 # Is the header present?
11516 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11517 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <sys/sysmacros.h>
11526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } >/dev/null; then
11534 if test -s conftest.err; then
11535 ac_cpp_err=$ac_c_preproc_warn_flag
11536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11543 if test -z "$ac_cpp_err"; then
11544 ac_header_preproc=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_header_preproc=no
11551 rm -f conftest.err conftest.$ac_ext
11552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553 echo "${ECHO_T}$ac_header_preproc" >&6
11555 # So? What about this header?
11556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11558 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11559 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11561 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11562 ac_header_preproc=yes
11565 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11570 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11572 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11574 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11576 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11579 ## ------------------------------------------ ##
11580 ## Report this to the AC_PACKAGE_NAME lists. ##
11581 ## ------------------------------------------ ##
11584 sed "s/^/$as_me: WARNING: /" >&2
11587 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11588 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11589 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11594 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11595 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11598 if test $ac_cv_header_sys_sysmacros_h = yes; then
11600 cat >>confdefs.h <<\_ACEOF
11601 #define MAJOR_IN_SYSMACROS 1
11615 ac_header_dirent=no
11616 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11617 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11618 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11619 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 cat >conftest.$ac_ext <<_ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 #include <sys/types.h>
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 eval "$as_ac_Header=yes"
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 eval "$as_ac_Header=no"
11670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11675 cat >>confdefs.h <<_ACEOF
11676 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11679 ac_header_dirent=$ac_hdr; break
11683 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11684 if test $ac_header_dirent = dirent.h; then
11685 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11687 if test "${ac_cv_search_opendir+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 ac_func_search_save_LIBS=$LIBS
11691 ac_cv_search_opendir=no
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11699 /* Override any gcc2 internal prototype to avoid an error. */
11703 /* We use char because int might match the return type of a gcc2
11704 builtin and then its argument prototype would still apply. */
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag"
11724 || test ! -s conftest.err'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_cv_search_opendir="none required"
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11742 rm -f conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 if test "$ac_cv_search_opendir" = no; then
11745 for ac_lib in dir; do
11746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11754 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 ac_cv_search_opendir="-l$ac_lib"
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11798 rm -f conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11802 LIBS=$ac_func_search_save_LIBS
11804 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11805 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11806 if test "$ac_cv_search_opendir" != no; then
11807 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11812 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11814 if test "${ac_cv_search_opendir+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 ac_func_search_save_LIBS=$LIBS
11818 ac_cv_search_opendir=no
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11826 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843 (eval $ac_link) 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag"
11851 || test ! -s conftest.err'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 ac_cv_search_opendir="none required"
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11869 rm -f conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11871 if test "$ac_cv_search_opendir" = no; then
11872 for ac_lib in x; do
11873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11881 /* Override any gcc2 internal prototype to avoid an error. */
11885 /* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11898 (eval $ac_link) 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag"
11906 || test ! -s conftest.err'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_search_opendir="-l$ac_lib"
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11925 rm -f conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11929 LIBS=$ac_func_search_save_LIBS
11931 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11932 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11933 if test "$ac_cv_search_opendir" != no; then
11934 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11940 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11941 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11942 if test "${ac_cv_header_stat_broken+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <sys/types.h>
11952 #include <sys/stat.h>
11954 #if defined(S_ISBLK) && defined(S_IFDIR)
11955 # if S_ISBLK (S_IFDIR)
11960 #if defined(S_ISBLK) && defined(S_IFCHR)
11961 # if S_ISBLK (S_IFCHR)
11966 #if defined(S_ISLNK) && defined(S_IFREG)
11967 # if S_ISLNK (S_IFREG)
11972 #if defined(S_ISSOCK) && defined(S_IFREG)
11973 # if S_ISSOCK (S_IFREG)
11979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11980 $EGREP "You lose" >/dev/null 2>&1; then
11981 ac_cv_header_stat_broken=yes
11983 ac_cv_header_stat_broken=no
11988 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11989 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11990 if test $ac_cv_header_stat_broken = yes; then
11992 cat >>confdefs.h <<\_ACEOF
11993 #define STAT_MACROS_BROKEN 1
11998 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11999 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12000 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <sys/types.h>
12010 #include <sys/wait.h>
12011 #ifndef WEXITSTATUS
12012 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12023 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag"
12038 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_header_sys_wait_h=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_cv_header_sys_wait_h=no
12057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12059 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12060 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12061 if test $ac_cv_header_sys_wait_h = yes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_SYS_WAIT_H 1
12069 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12070 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12071 if test "${ac_cv_header_time+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 cat >conftest.$ac_ext <<_ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 #include <sys/types.h>
12081 #include <sys/time.h>
12087 if ((struct tm *) 0)
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_cv_header_time=yes
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 ac_cv_header_time=no
12122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12124 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12125 echo "${ECHO_T}$ac_cv_header_time" >&6
12126 if test $ac_cv_header_time = yes; then
12128 cat >>confdefs.h <<\_ACEOF
12129 #define TIME_WITH_SYS_TIME 1
12135 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12136 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12137 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12150 static struct stat ac_aggr;
12151 if (ac_aggr.st_blksize)
12157 rm -f conftest.$ac_objext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag"
12167 || test ! -s conftest.err'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_cv_member_struct_stat_st_blksize=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 $ac_includes_default
12194 static struct stat ac_aggr;
12195 if (sizeof ac_aggr.st_blksize)
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203 (eval $ac_compile) 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag"
12211 || test ! -s conftest.err'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest.$ac_objext'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_member_struct_stat_st_blksize=yes
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ac_cv_member_struct_stat_st_blksize=no
12230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12235 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12236 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12243 cat >>confdefs.h <<\_ACEOF
12244 #define HAVE_ST_BLKSIZE 1
12250 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12251 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12252 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 $ac_includes_default
12265 static struct stat ac_aggr;
12266 if (ac_aggr.st_blocks)
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest.$ac_objext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_member_struct_stat_st_blocks=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12309 static struct stat ac_aggr;
12310 if (sizeof ac_aggr.st_blocks)
12316 rm -f conftest.$ac_objext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12318 (eval $ac_compile) 2>conftest.er1
12320 grep -v '^ *+' conftest.er1 >conftest.err
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag"
12326 || test ! -s conftest.err'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_member_struct_stat_st_blocks=yes
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_member_struct_stat_st_blocks=no
12345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12349 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12350 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12351 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12353 cat >>confdefs.h <<_ACEOF
12354 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_ST_BLOCKS 1
12364 "fileblocks.$ac_objext" | \
12365 *" fileblocks.$ac_objext" | \
12366 "fileblocks.$ac_objext "* | \
12367 *" fileblocks.$ac_objext "* ) ;;
12368 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12374 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12375 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12376 if test "${ac_cv_struct_tm+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <sys/types.h>
12391 struct tm *tp; tp->tm_sec;
12396 rm -f conftest.$ac_objext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398 (eval $ac_compile) 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_c_werror_flag"
12406 || test ! -s conftest.err'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; } &&
12412 { ac_try='test -s conftest.$ac_objext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_cv_struct_tm=time.h
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ac_cv_struct_tm=sys/time.h
12425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12428 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12429 if test $ac_cv_struct_tm = sys/time.h; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define TM_IN_SYS_TIME 1
12437 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12438 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12439 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 #include <sys/types.h>
12449 #include <$ac_cv_struct_tm>
12455 static struct tm ac_aggr;
12456 if (ac_aggr.tm_zone)
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest.$ac_objext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_member_struct_tm_tm_zone=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 #include <sys/types.h>
12496 #include <$ac_cv_struct_tm>
12502 static struct tm ac_aggr;
12503 if (sizeof ac_aggr.tm_zone)
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>conftest.er1
12513 grep -v '^ *+' conftest.er1 >conftest.err
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest.$ac_objext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_member_struct_tm_tm_zone=yes
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 ac_cv_member_struct_tm_tm_zone=no
12538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12542 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12543 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12544 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12546 cat >>confdefs.h <<_ACEOF
12547 #define HAVE_STRUCT_TM_TM_ZONE 1
12553 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12555 cat >>confdefs.h <<\_ACEOF
12556 #define HAVE_TM_ZONE 1
12560 echo "$as_me:$LINENO: checking for tzname" >&5
12561 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12562 if test "${ac_cv_var_tzname+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12572 #ifndef tzname /* For SGI. */
12573 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_var_tzname=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_var_tzname=no
12613 rm -f conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12617 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12618 if test $ac_cv_var_tzname = yes; then
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_TZNAME 1
12628 echo "$as_me:$LINENO: checking for utime.h" >&5
12629 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12630 if test "${ba_cv_header_utime_h+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12640 #include <sys/types.h>
12650 rm -f conftest.$ac_objext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest.$ac_objext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ba_cv_header_utime_h=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ba_cv_header_utime_h=no
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12681 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12682 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12683 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_UTIME_H 1
12688 echo "$as_me:$LINENO: checking for socklen_t" >&5
12689 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12690 if test "${ba_cv_header_socklen_t+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 #include <sys/types.h>
12701 #include <sys/socket.h>
12710 rm -f conftest.$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ba_cv_header_socklen_t=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ba_cv_header_socklen_t=no
12739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12742 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12743 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_SOCKLEN_T 1
12748 echo "$as_me:$LINENO: checking for bigendian" >&5
12749 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12750 if test "${ba_cv_bigendian+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 if test "$cross_compiling" = yes; then
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12764 rm -f conftest$ac_exeext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766 (eval $ac_link) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ba_cv_bigendian=yes
12777 echo "$as_me: program exited with status $ac_status" >&5
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ( exit $ac_status )
12784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12787 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12788 echo "${ECHO_T}$ba_cv_bigendian" >&6
12789 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_BIGENDIAN 1
12795 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12797 if test "${ac_cv_c_const+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 cat >conftest.$ac_ext <<_ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12810 /* FIXME: Include the comments suggested by Paul. */
12811 #ifndef __cplusplus
12812 /* Ultrix mips cc rejects this. */
12813 typedef int charset[2];
12815 /* SunOS 4.1.1 cc rejects this. */
12816 char const *const *ccp;
12818 /* NEC SVR4.0.2 mips cc rejects this. */
12819 struct point {int x, y;};
12820 static struct point const zero = {0,0};
12821 /* AIX XL C 1.02.0.0 rejects this.
12822 It does not let you subtract one const X* pointer from another in
12823 an arm of an if-expression whose if-part is not a constant
12825 const char *g = "string";
12826 ccp = &g + (g ? g-g : 0);
12827 /* HPUX 7.0 cc rejects these. */
12830 ccp = (char const *const *) p;
12831 { /* SCO 3.2v4 cc rejects this. */
12833 char const *s = 0 ? (char *) 0 : (char const *) 0;
12837 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12838 int x[] = {25, 17};
12839 const int *foo = &x[0];
12842 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12843 typedef const int *iptr;
12847 { /* AIX XL C 1.02.0.0 rejects this saying
12848 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12849 struct s { int j; const int *ap[3]; };
12850 struct s *b; b->j = 5;
12852 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12853 const int foo = 10;
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12893 echo "${ECHO_T}$ac_cv_c_const" >&6
12894 if test $ac_cv_c_const = no; then
12896 cat >>confdefs.h <<\_ACEOF
12904 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12905 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12907 # The order of these tests is important.
12908 cat >conftest.$ac_ext <<_ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 #include <sys/statvfs.h>
12915 #include <sys/fstyp.h>
12917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12920 grep -v '^ *+' conftest.er1 >conftest.err
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } >/dev/null; then
12925 if test -s conftest.err; then
12926 ac_cpp_err=$ac_c_preproc_warn_flag
12927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12934 if test -z "$ac_cpp_err"; then
12935 cat >>confdefs.h <<\_ACEOF
12936 #define FSTYPE_STATVFS 1
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12945 rm -f conftest.err conftest.$ac_ext
12946 if test $fstype = no; then
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 #include <sys/statfs.h>
12954 #include <sys/fstyp.h>
12956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } >/dev/null; then
12964 if test -s conftest.err; then
12965 ac_cpp_err=$ac_c_preproc_warn_flag
12966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12973 if test -z "$ac_cpp_err"; then
12974 cat >>confdefs.h <<\_ACEOF
12975 #define FSTYPE_USG_STATFS 1
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12984 rm -f conftest.err conftest.$ac_ext
12986 if test $fstype = no; then
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 #include <sys/statfs.h>
12994 #include <sys/vmount.h>
12996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } >/dev/null; then
13004 if test -s conftest.err; then
13005 ac_cpp_err=$ac_c_preproc_warn_flag
13006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13013 if test -z "$ac_cpp_err"; then
13014 cat >>confdefs.h <<\_ACEOF
13015 #define FSTYPE_AIX_STATFS 1
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13024 rm -f conftest.err conftest.$ac_ext
13026 if test $fstype = no; then
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 #include <mntent.h>
13035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } >/dev/null; then
13043 if test -s conftest.err; then
13044 ac_cpp_err=$ac_c_preproc_warn_flag
13045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13052 if test -z "$ac_cpp_err"; then
13053 cat >>confdefs.h <<\_ACEOF
13054 #define FSTYPE_MNTENT 1
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13063 rm -f conftest.err conftest.$ac_ext
13065 if test $fstype = no; then
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <sys/mount.h>
13075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13076 $EGREP "f_type;" >/dev/null 2>&1; then
13077 cat >>confdefs.h <<\_ACEOF
13078 #define FSTYPE_STATFS 1
13085 if test $fstype = no; then
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 #include <sys/mount.h>
13093 #include <sys/fs_types.h>
13095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } >/dev/null; then
13103 if test -s conftest.err; then
13104 ac_cpp_err=$ac_c_preproc_warn_flag
13105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13112 if test -z "$ac_cpp_err"; then
13113 cat >>confdefs.h <<\_ACEOF
13114 #define FSTYPE_GETMNT 1
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13123 rm -f conftest.err conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $fstype" >&5
13126 echo "${ECHO_T}$fstype" >&6
13128 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13129 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13130 if test "${ac_cv_type_signal+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 #include <sys/types.h>
13140 #include <signal.h>
13145 extern "C" void (*signal (int, void (*)(int)))(int);
13147 void (*signal ()) ();
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>conftest.er1
13162 grep -v '^ *+' conftest.er1 >conftest.err
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -z "$ac_c_werror_flag"
13168 || test ! -s conftest.err'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 ac_cv_type_signal=void
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ac_cv_type_signal=int
13187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13190 echo "${ECHO_T}$ac_cv_type_signal" >&6
13192 cat >>confdefs.h <<_ACEOF
13193 #define RETSIGTYPE $ac_cv_type_signal
13198 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13199 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13200 if test "${bash_cv_signal_vintage+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210 #include <signal.h>
13216 struct sigaction sa;
13217 sigemptyset(&ss); sigsuspend(&ss);
13218 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13219 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227 (eval $ac_link) 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag"
13235 || test ! -s conftest.err'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13247 bash_cv_signal_vintage=posix
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <signal.h>
13264 int mask = sigmask(SIGINT);
13265 sigsetmask(mask); sigblock(mask); sigpause(mask);
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13273 (eval $ac_link) 2>conftest.er1
13275 grep -v '^ *+' conftest.er1 >conftest.err
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 bash_cv_signal_vintage=4.2bsd
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13299 cat >conftest.$ac_ext <<_ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13306 #include <signal.h>
13307 RETSIGTYPE foo() { }
13312 int mask = sigmask(SIGINT);
13313 sigset(SIGINT, foo); sigrelse(SIGINT);
13314 sighold(SIGINT); sigpause(SIGINT);
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13322 (eval $ac_link) 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_c_werror_flag"
13330 || test ! -s conftest.err'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 bash_cv_signal_vintage=svr3
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 bash_cv_signal_vintage=v7
13350 rm -f conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13354 rm -f conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13358 rm -f conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13363 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13364 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13365 if test "$bash_cv_signal_vintage" = posix; then
13366 cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_POSIX_SIGNALS 1
13370 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_BSD_SIGNALS 1
13375 elif test "$bash_cv_signal_vintage" = svr3; then
13376 cat >>confdefs.h <<\_ACEOF
13377 #define HAVE_USG_SIGHOLD 1
13382 echo "$as_me:$LINENO: checking for mode_t" >&5
13383 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13384 if test "${ac_cv_type_mode_t+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13399 if (sizeof (mode_t))
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_type_mode_t=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_cv_type_mode_t=no
13434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13437 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13438 if test $ac_cv_type_mode_t = yes; then
13442 cat >>confdefs.h <<_ACEOF
13448 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13449 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13450 if test "${ac_cv_type_uid_t+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 #include <sys/types.h>
13462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13463 $EGREP "uid_t" >/dev/null 2>&1; then
13464 ac_cv_type_uid_t=yes
13466 ac_cv_type_uid_t=no
13471 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13472 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13473 if test $ac_cv_type_uid_t = no; then
13475 cat >>confdefs.h <<\_ACEOF
13480 cat >>confdefs.h <<\_ACEOF
13486 echo "$as_me:$LINENO: checking for size_t" >&5
13487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13488 if test "${ac_cv_type_size_t+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13503 if (sizeof (size_t))
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_type_size_t=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ac_cv_type_size_t=no
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13540 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13541 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13542 if test $ac_cv_type_size_t = yes; then
13546 cat >>confdefs.h <<_ACEOF
13547 #define size_t unsigned
13552 echo "$as_me:$LINENO: checking for pid_t" >&5
13553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13554 if test "${ac_cv_type_pid_t+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13569 if (sizeof (pid_t))
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13579 grep -v '^ *+' conftest.er1 >conftest.err
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_type_pid_t=yes
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_type_pid_t=no
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13607 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13608 if test $ac_cv_type_pid_t = yes; then
13612 cat >>confdefs.h <<_ACEOF
13618 echo "$as_me:$LINENO: checking for off_t" >&5
13619 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13620 if test "${ac_cv_type_off_t+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.$ac_ext <<_ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 $ac_includes_default
13635 if (sizeof (off_t))
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>conftest.er1
13645 grep -v '^ *+' conftest.er1 >conftest.err
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag"
13651 || test ! -s conftest.err'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try='test -s conftest.$ac_objext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_type_off_t=yes
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 ac_cv_type_off_t=no
13670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13673 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13674 if test $ac_cv_type_off_t = yes; then
13678 cat >>confdefs.h <<_ACEOF
13684 echo "$as_me:$LINENO: checking for ino_t" >&5
13685 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13686 if test "${ac_cv_type_ino_t+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13701 if (sizeof (ino_t))
13707 rm -f conftest.$ac_objext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709 (eval $ac_compile) 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest.$ac_objext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_type_ino_t=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_cv_type_ino_t=no
13736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13739 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13740 if test $ac_cv_type_ino_t = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define ino_t unsigned long
13750 echo "$as_me:$LINENO: checking for dev_t" >&5
13751 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13752 if test "${ac_cv_type_dev_t+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13767 if (sizeof (dev_t))
13773 rm -f conftest.$ac_objext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13775 (eval $ac_compile) 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_c_werror_flag"
13783 || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 ac_cv_type_dev_t=yes
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_cv_type_dev_t=no
13802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13804 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13805 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13806 if test $ac_cv_type_dev_t = yes; then
13810 cat >>confdefs.h <<_ACEOF
13811 #define dev_t unsigned long
13816 echo "$as_me:$LINENO: checking for daddr_t" >&5
13817 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13818 if test "${ac_cv_type_daddr_t+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 $ac_includes_default
13833 if (sizeof (daddr_t))
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_type_daddr_t=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_cv_type_daddr_t=no
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13870 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13871 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13872 if test $ac_cv_type_daddr_t = yes; then
13876 cat >>confdefs.h <<_ACEOF
13877 #define daddr_t long
13882 echo "$as_me:$LINENO: checking for major_t" >&5
13883 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13884 if test "${ac_cv_type_major_t+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 $ac_includes_default
13899 if (sizeof (major_t))
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_type_major_t=yes
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_cv_type_major_t=no
13934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13936 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13937 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13938 if test $ac_cv_type_major_t = yes; then
13942 cat >>confdefs.h <<_ACEOF
13943 #define major_t int
13948 echo "$as_me:$LINENO: checking for minor_t" >&5
13949 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13950 if test "${ac_cv_type_minor_t+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 $ac_includes_default
13965 if (sizeof (minor_t))
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973 (eval $ac_compile) 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag"
13981 || test ! -s conftest.err'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_type_minor_t=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_cv_type_minor_t=no
14000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14003 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14004 if test $ac_cv_type_minor_t = yes; then
14008 cat >>confdefs.h <<_ACEOF
14009 #define minor_t int
14014 echo "$as_me:$LINENO: checking for ssize_t" >&5
14015 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14016 if test "${ac_cv_type_ssize_t+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 $ac_includes_default
14031 if (sizeof (ssize_t))
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_type_ssize_t=yes
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_cv_type_ssize_t=no
14066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14068 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14069 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14070 if test $ac_cv_type_ssize_t = yes; then
14074 cat >>confdefs.h <<_ACEOF
14075 #define ssize_t int
14080 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14081 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14082 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 cat >conftest.$ac_ext <<_ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 $ac_includes_default
14095 static struct stat ac_aggr;
14096 if (ac_aggr.st_blocks)
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag"
14112 || test ! -s conftest.err'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_member_struct_stat_st_blocks=yes
14126 echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 $ac_includes_default
14139 static struct stat ac_aggr;
14140 if (sizeof ac_aggr.st_blocks)
14146 rm -f conftest.$ac_objext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14148 (eval $ac_compile) 2>conftest.er1
14150 grep -v '^ *+' conftest.er1 >conftest.err
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_c_werror_flag"
14156 || test ! -s conftest.err'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_member_struct_stat_st_blocks=yes
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14173 ac_cv_member_struct_stat_st_blocks=no
14175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14180 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14181 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_ST_BLOCKS 1
14194 "fileblocks.$ac_objext" | \
14195 *" fileblocks.$ac_objext" | \
14196 "fileblocks.$ac_objext "* | \
14197 *" fileblocks.$ac_objext "* ) ;;
14198 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14205 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14206 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14207 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 $ac_includes_default
14220 static struct stat ac_aggr;
14221 if (ac_aggr.st_rdev)
14227 rm -f conftest.$ac_objext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229 (eval $ac_compile) 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag"
14237 || test ! -s conftest.err'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest.$ac_objext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_cv_member_struct_stat_st_rdev=yes
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 cat >conftest.$ac_ext <<_ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 $ac_includes_default
14264 static struct stat ac_aggr;
14265 if (sizeof ac_aggr.st_rdev)
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14275 grep -v '^ *+' conftest.er1 >conftest.err
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_member_struct_stat_st_rdev=yes
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_member_struct_stat_st_rdev=no
14300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14304 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14305 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14306 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309 #define HAVE_STRUCT_STAT_ST_RDEV 1
14313 cat >>confdefs.h <<\_ACEOF
14314 #define HAVE_ST_RDEV 1
14320 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14322 if test "${ac_cv_struct_tm+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 #include <sys/types.h>
14337 struct tm *tp; tp->tm_sec;
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag"
14352 || test ! -s conftest.err'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_cv_struct_tm=time.h
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ac_cv_struct_tm=sys/time.h
14371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14375 if test $ac_cv_struct_tm = sys/time.h; then
14377 cat >>confdefs.h <<\_ACEOF
14378 #define TM_IN_SYS_TIME 1
14383 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14384 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14385 if test "${ac_cv_c_const+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14398 /* FIXME: Include the comments suggested by Paul. */
14399 #ifndef __cplusplus
14400 /* Ultrix mips cc rejects this. */
14401 typedef int charset[2];
14403 /* SunOS 4.1.1 cc rejects this. */
14404 char const *const *ccp;
14406 /* NEC SVR4.0.2 mips cc rejects this. */
14407 struct point {int x, y;};
14408 static struct point const zero = {0,0};
14409 /* AIX XL C 1.02.0.0 rejects this.
14410 It does not let you subtract one const X* pointer from another in
14411 an arm of an if-expression whose if-part is not a constant
14413 const char *g = "string";
14414 ccp = &g + (g ? g-g : 0);
14415 /* HPUX 7.0 cc rejects these. */
14418 ccp = (char const *const *) p;
14419 { /* SCO 3.2v4 cc rejects this. */
14421 char const *s = 0 ? (char *) 0 : (char const *) 0;
14425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14426 int x[] = {25, 17};
14427 const int *foo = &x[0];
14430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14431 typedef const int *iptr;
14435 { /* AIX XL C 1.02.0.0 rejects this saying
14436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14437 struct s { int j; const int *ap[3]; };
14438 struct s *b; b->j = 5;
14440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14441 const int foo = 10;
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>conftest.er1
14453 grep -v '^ *+' conftest.er1 >conftest.err
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14480 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14481 echo "${ECHO_T}$ac_cv_c_const" >&6
14482 if test $ac_cv_c_const = no; then
14484 cat >>confdefs.h <<\_ACEOF
14492 echo "$as_me:$LINENO: checking for char" >&5
14493 echo $ECHO_N "checking for char... $ECHO_C" >&6
14494 if test "${ac_cv_type_char+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 cat >conftest.$ac_ext <<_ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_cv_type_char=yes
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14546 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14547 echo "${ECHO_T}$ac_cv_type_char" >&6
14549 echo "$as_me:$LINENO: checking size of char" >&5
14550 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14551 if test "${ac_cv_sizeof_char+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 if test "$ac_cv_type_char" = yes; then
14555 # The cast to unsigned long works around a bug in the HP C Compiler
14556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14558 # This bug is HP SR number 8606223364.
14559 if test "$cross_compiling" = yes; then
14560 # Depending upon the size, compute the lo and hi bounds.
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 $ac_includes_default
14571 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14578 rm -f conftest.$ac_objext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 $ac_includes_default
14612 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621 (eval $ac_compile) 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag"
14629 || test ! -s conftest.err'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_hi=$ac_mid; break
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_lo=`expr $ac_mid + 1`
14647 if test $ac_lo -le $ac_mid; then
14651 ac_mid=`expr 2 '*' $ac_mid + 1`
14653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 $ac_includes_default
14669 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14710 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_lo=$ac_mid; break
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_hi=`expr '(' $ac_mid ')' - 1`
14745 if test $ac_mid -le $ac_hi; then
14749 ac_mid=`expr 2 '*' $ac_mid`
14751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762 # Binary search between lo and hi bounds.
14763 while test "x$ac_lo" != "x$ac_hi"; do
14764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14765 cat >conftest.$ac_ext <<_ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 $ac_includes_default
14775 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784 (eval $ac_compile) 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -z "$ac_c_werror_flag"
14792 || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_lo=`expr '(' $ac_mid ')' + 1`
14811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14814 ?*) ac_cv_sizeof_char=$ac_lo;;
14815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14816 See \`config.log' for more details." >&5
14817 echo "$as_me: error: cannot compute sizeof (char), 77
14818 See \`config.log' for more details." >&2;}
14819 { (exit 1); exit 1; }; } ;;
14822 if test "$cross_compiling" = yes; then
14823 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14824 See \`config.log' for more details." >&5
14825 echo "$as_me: error: cannot run test program while cross compiling
14826 See \`config.log' for more details." >&2;}
14827 { (exit 1); exit 1; }; }
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14836 long longval () { return (long) (sizeof (char)); }
14837 unsigned long ulongval () { return (long) (sizeof (char)); }
14839 #include <stdlib.h>
14844 FILE *f = fopen ("conftest.val", "w");
14847 if (((long) (sizeof (char))) < 0)
14849 long i = longval ();
14850 if (i != ((long) (sizeof (char))))
14852 fprintf (f, "%ld\n", i);
14856 unsigned long i = ulongval ();
14857 if (i != ((long) (sizeof (char))))
14859 fprintf (f, "%lu\n", i);
14861 exit (ferror (f) || fclose (f) != 0);
14867 rm -f conftest$ac_exeext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_cv_sizeof_char=`cat conftest.val`
14880 echo "$as_me: program exited with status $ac_status" >&5
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ( exit $ac_status )
14885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14886 See \`config.log' for more details." >&5
14887 echo "$as_me: error: cannot compute sizeof (char), 77
14888 See \`config.log' for more details." >&2;}
14889 { (exit 1); exit 1; }; }
14891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14896 ac_cv_sizeof_char=0
14899 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14900 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14901 cat >>confdefs.h <<_ACEOF
14902 #define SIZEOF_CHAR $ac_cv_sizeof_char
14906 echo "$as_me:$LINENO: checking for short int" >&5
14907 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14908 if test "${ac_cv_type_short_int+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cat >conftest.$ac_ext <<_ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 $ac_includes_default
14921 if ((short int *) 0)
14923 if (sizeof (short int))
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_type_short_int=yes
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_type_short_int=no
14958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14961 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14963 echo "$as_me:$LINENO: checking size of short int" >&5
14964 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14965 if test "${ac_cv_sizeof_short_int+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 if test "$ac_cv_type_short_int" = yes; then
14969 # The cast to unsigned long works around a bug in the HP C Compiler
14970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14972 # This bug is HP SR number 8606223364.
14973 if test "$cross_compiling" = yes; then
14974 # Depending upon the size, compute the lo and hi bounds.
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 $ac_includes_default
14985 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14992 rm -f conftest.$ac_objext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994 (eval $ac_compile) 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag"
15002 || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 $ac_includes_default
15026 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035 (eval $ac_compile) 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try='test -z "$ac_c_werror_flag"
15043 || test ! -s conftest.err'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } &&
15049 { ac_try='test -s conftest.$ac_objext'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
15055 ac_hi=$ac_mid; break
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 ac_lo=`expr $ac_mid + 1`
15061 if test $ac_lo -le $ac_mid; then
15065 ac_mid=`expr 2 '*' $ac_mid + 1`
15067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15083 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -z "$ac_c_werror_flag"
15100 || test ! -s conftest.err'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15114 cat >conftest.$ac_ext <<_ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 $ac_includes_default
15124 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15131 rm -f conftest.$ac_objext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15133 (eval $ac_compile) 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag"
15141 || test ! -s conftest.err'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; } &&
15147 { ac_try='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 ac_lo=$ac_mid; break
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ac_hi=`expr '(' $ac_mid ')' - 1`
15159 if test $ac_mid -le $ac_hi; then
15163 ac_mid=`expr 2 '*' $ac_mid`
15165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15176 # Binary search between lo and hi bounds.
15177 while test "x$ac_lo" != "x$ac_hi"; do
15178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 $ac_includes_default
15189 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15196 rm -f conftest.$ac_objext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15198 (eval $ac_compile) 2>conftest.er1
15200 grep -v '^ *+' conftest.er1 >conftest.err
15202 cat conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -z "$ac_c_werror_flag"
15206 || test ! -s conftest.err'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; } &&
15212 { ac_try='test -s conftest.$ac_objext'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_lo=`expr '(' $ac_mid ')' + 1`
15225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15228 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15229 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15230 See \`config.log' for more details." >&5
15231 echo "$as_me: error: cannot compute sizeof (short int), 77
15232 See \`config.log' for more details." >&2;}
15233 { (exit 1); exit 1; }; } ;;
15236 if test "$cross_compiling" = yes; then
15237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15238 See \`config.log' for more details." >&5
15239 echo "$as_me: error: cannot run test program while cross compiling
15240 See \`config.log' for more details." >&2;}
15241 { (exit 1); exit 1; }; }
15243 cat >conftest.$ac_ext <<_ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 $ac_includes_default
15250 long longval () { return (long) (sizeof (short int)); }
15251 unsigned long ulongval () { return (long) (sizeof (short int)); }
15253 #include <stdlib.h>
15258 FILE *f = fopen ("conftest.val", "w");
15261 if (((long) (sizeof (short int))) < 0)
15263 long i = longval ();
15264 if (i != ((long) (sizeof (short int))))
15266 fprintf (f, "%ld\n", i);
15270 unsigned long i = ulongval ();
15271 if (i != ((long) (sizeof (short int))))
15273 fprintf (f, "%lu\n", i);
15275 exit (ferror (f) || fclose (f) != 0);
15281 rm -f conftest$ac_exeext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15283 (eval $ac_link) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 ac_cv_sizeof_short_int=`cat conftest.val`
15294 echo "$as_me: program exited with status $ac_status" >&5
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 ( exit $ac_status )
15299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15300 See \`config.log' for more details." >&5
15301 echo "$as_me: error: cannot compute sizeof (short int), 77
15302 See \`config.log' for more details." >&2;}
15303 { (exit 1); exit 1; }; }
15305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15310 ac_cv_sizeof_short_int=0
15313 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15314 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15315 cat >>confdefs.h <<_ACEOF
15316 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15320 echo "$as_me:$LINENO: checking for int" >&5
15321 echo $ECHO_N "checking for int... $ECHO_C" >&6
15322 if test "${ac_cv_type_int+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 cat >conftest.$ac_ext <<_ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 $ac_includes_default
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345 (eval $ac_compile) 2>conftest.er1
15347 grep -v '^ *+' conftest.er1 >conftest.err
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15375 echo "${ECHO_T}$ac_cv_type_int" >&6
15377 echo "$as_me:$LINENO: checking size of int" >&5
15378 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15379 if test "${ac_cv_sizeof_int+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 if test "$ac_cv_type_int" = yes; then
15383 # The cast to unsigned long works around a bug in the HP C Compiler
15384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15386 # This bug is HP SR number 8606223364.
15387 if test "$cross_compiling" = yes; then
15388 # Depending upon the size, compute the lo and hi bounds.
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 $ac_includes_default
15399 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15406 rm -f conftest.$ac_objext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15408 (eval $ac_compile) 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag"
15416 || test ! -s conftest.err'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 $ac_includes_default
15440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15447 rm -f conftest.$ac_objext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15449 (eval $ac_compile) 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest.$ac_objext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_hi=$ac_mid; break
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 ac_lo=`expr $ac_mid + 1`
15475 if test $ac_lo -le $ac_mid; then
15479 ac_mid=`expr 2 '*' $ac_mid + 1`
15481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 $ac_includes_default
15497 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506 (eval $ac_compile) 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag"
15514 || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest.$ac_objext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 $ac_includes_default
15538 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547 (eval $ac_compile) 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_c_werror_flag"
15555 || test ! -s conftest.err'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest.$ac_objext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_lo=$ac_mid; break
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 ac_hi=`expr '(' $ac_mid ')' - 1`
15573 if test $ac_mid -le $ac_hi; then
15577 ac_mid=`expr 2 '*' $ac_mid`
15579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15590 # Binary search between lo and hi bounds.
15591 while test "x$ac_lo" != "x$ac_hi"; do
15592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15593 cat >conftest.$ac_ext <<_ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 $ac_includes_default
15603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15610 rm -f conftest.$ac_objext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612 (eval $ac_compile) 2>conftest.er1
15614 grep -v '^ *+' conftest.er1 >conftest.err
15616 cat conftest.err >&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -z "$ac_c_werror_flag"
15620 || test ! -s conftest.err'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 ac_lo=`expr '(' $ac_mid ')' + 1`
15639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15642 ?*) ac_cv_sizeof_int=$ac_lo;;
15643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15644 See \`config.log' for more details." >&5
15645 echo "$as_me: error: cannot compute sizeof (int), 77
15646 See \`config.log' for more details." >&2;}
15647 { (exit 1); exit 1; }; } ;;
15650 if test "$cross_compiling" = yes; then
15651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15652 See \`config.log' for more details." >&5
15653 echo "$as_me: error: cannot run test program while cross compiling
15654 See \`config.log' for more details." >&2;}
15655 { (exit 1); exit 1; }; }
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 long longval () { return (long) (sizeof (int)); }
15665 unsigned long ulongval () { return (long) (sizeof (int)); }
15667 #include <stdlib.h>
15672 FILE *f = fopen ("conftest.val", "w");
15675 if (((long) (sizeof (int))) < 0)
15677 long i = longval ();
15678 if (i != ((long) (sizeof (int))))
15680 fprintf (f, "%ld\n", i);
15684 unsigned long i = ulongval ();
15685 if (i != ((long) (sizeof (int))))
15687 fprintf (f, "%lu\n", i);
15689 exit (ferror (f) || fclose (f) != 0);
15695 rm -f conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697 (eval $ac_link) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_sizeof_int=`cat conftest.val`
15708 echo "$as_me: program exited with status $ac_status" >&5
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ( exit $ac_status )
15713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15714 See \`config.log' for more details." >&5
15715 echo "$as_me: error: cannot compute sizeof (int), 77
15716 See \`config.log' for more details." >&2;}
15717 { (exit 1); exit 1; }; }
15719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15729 cat >>confdefs.h <<_ACEOF
15730 #define SIZEOF_INT $ac_cv_sizeof_int
15734 echo "$as_me:$LINENO: checking for long int" >&5
15735 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15736 if test "${ac_cv_type_long_int+set}" = set; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 $ac_includes_default
15749 if ((long int *) 0)
15751 if (sizeof (long int))
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_cv_type_long_int=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_type_long_int=no
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15789 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15791 echo "$as_me:$LINENO: checking size of long int" >&5
15792 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15793 if test "${ac_cv_sizeof_long_int+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 if test "$ac_cv_type_long_int" = yes; then
15797 # The cast to unsigned long works around a bug in the HP C Compiler
15798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15800 # This bug is HP SR number 8606223364.
15801 if test "$cross_compiling" = yes; then
15802 # Depending upon the size, compute the lo and hi bounds.
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 $ac_includes_default
15813 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15844 cat >conftest.$ac_ext <<_ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 $ac_includes_default
15854 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863 (eval $ac_compile) 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag"
15871 || test ! -s conftest.err'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 ac_hi=$ac_mid; break
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_lo=`expr $ac_mid + 1`
15889 if test $ac_lo -le $ac_mid; then
15893 ac_mid=`expr 2 '*' $ac_mid + 1`
15895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 $ac_includes_default
15911 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15942 cat >conftest.$ac_ext <<_ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 $ac_includes_default
15952 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_lo=$ac_mid; break
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_hi=`expr '(' $ac_mid ')' - 1`
15987 if test $ac_mid -le $ac_hi; then
15991 ac_mid=`expr 2 '*' $ac_mid`
15993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
16001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16004 # Binary search between lo and hi bounds.
16005 while test "x$ac_lo" != "x$ac_hi"; do
16006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16007 cat >conftest.$ac_ext <<_ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 $ac_includes_default
16017 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16024 rm -f conftest.$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026 (eval $ac_compile) 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -z "$ac_c_werror_flag"
16034 || test ! -s conftest.err'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_lo=`expr '(' $ac_mid ')' + 1`
16053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16057 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16058 See \`config.log' for more details." >&5
16059 echo "$as_me: error: cannot compute sizeof (long int), 77
16060 See \`config.log' for more details." >&2;}
16061 { (exit 1); exit 1; }; } ;;
16064 if test "$cross_compiling" = yes; then
16065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16066 See \`config.log' for more details." >&5
16067 echo "$as_me: error: cannot run test program while cross compiling
16068 See \`config.log' for more details." >&2;}
16069 { (exit 1); exit 1; }; }
16071 cat >conftest.$ac_ext <<_ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 $ac_includes_default
16078 long longval () { return (long) (sizeof (long int)); }
16079 unsigned long ulongval () { return (long) (sizeof (long int)); }
16081 #include <stdlib.h>
16086 FILE *f = fopen ("conftest.val", "w");
16089 if (((long) (sizeof (long int))) < 0)
16091 long i = longval ();
16092 if (i != ((long) (sizeof (long int))))
16094 fprintf (f, "%ld\n", i);
16098 unsigned long i = ulongval ();
16099 if (i != ((long) (sizeof (long int))))
16101 fprintf (f, "%lu\n", i);
16103 exit (ferror (f) || fclose (f) != 0);
16109 rm -f conftest$ac_exeext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16111 (eval $ac_link) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_sizeof_long_int=`cat conftest.val`
16122 echo "$as_me: program exited with status $ac_status" >&5
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ( exit $ac_status )
16127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16128 See \`config.log' for more details." >&5
16129 echo "$as_me: error: cannot compute sizeof (long int), 77
16130 See \`config.log' for more details." >&2;}
16131 { (exit 1); exit 1; }; }
16133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16138 ac_cv_sizeof_long_int=0
16141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16142 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16143 cat >>confdefs.h <<_ACEOF
16144 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16148 echo "$as_me:$LINENO: checking for long long int" >&5
16149 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16150 if test "${ac_cv_type_long_long_int+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 cat >conftest.$ac_ext <<_ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 $ac_includes_default
16163 if ((long long int *) 0)
16165 if (sizeof (long long int))
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_cv_type_long_long_int=yes
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_cv_type_long_long_int=no
16200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16202 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16203 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16205 echo "$as_me:$LINENO: checking size of long long int" >&5
16206 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16207 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 if test "$ac_cv_type_long_long_int" = yes; then
16211 # The cast to unsigned long works around a bug in the HP C Compiler
16212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16214 # This bug is HP SR number 8606223364.
16215 if test "$cross_compiling" = yes; then
16216 # Depending upon the size, compute the lo and hi bounds.
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 $ac_includes_default
16227 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
16243 { ac_try='test -z "$ac_c_werror_flag"
16244 || test ! -s conftest.err'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 $ac_includes_default
16268 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277 (eval $ac_compile) 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag"
16285 || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_hi=$ac_mid; break
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 ac_lo=`expr $ac_mid + 1`
16303 if test $ac_lo -le $ac_mid; then
16307 ac_mid=`expr 2 '*' $ac_mid + 1`
16309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16325 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16332 rm -f conftest.$ac_objext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16334 (eval $ac_compile) 2>conftest.er1
16336 grep -v '^ *+' conftest.er1 >conftest.err
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -z "$ac_c_werror_flag"
16342 || test ! -s conftest.err'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16366 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16373 rm -f conftest.$ac_objext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375 (eval $ac_compile) 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag"
16383 || test ! -s conftest.err'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; } &&
16389 { ac_try='test -s conftest.$ac_objext'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_lo=$ac_mid; break
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_hi=`expr '(' $ac_mid ')' - 1`
16401 if test $ac_mid -le $ac_hi; then
16405 ac_mid=`expr 2 '*' $ac_mid`
16407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 # Binary search between lo and hi bounds.
16419 while test "x$ac_lo" != "x$ac_hi"; do
16420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 $ac_includes_default
16431 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16438 rm -f conftest.$ac_objext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440 (eval $ac_compile) 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -z "$ac_c_werror_flag"
16448 || test ! -s conftest.err'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_lo=`expr '(' $ac_mid ')' + 1`
16467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16470 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16472 See \`config.log' for more details." >&5
16473 echo "$as_me: error: cannot compute sizeof (long long int), 77
16474 See \`config.log' for more details." >&2;}
16475 { (exit 1); exit 1; }; } ;;
16478 if test "$cross_compiling" = yes; then
16479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16480 See \`config.log' for more details." >&5
16481 echo "$as_me: error: cannot run test program while cross compiling
16482 See \`config.log' for more details." >&2;}
16483 { (exit 1); exit 1; }; }
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 $ac_includes_default
16492 long longval () { return (long) (sizeof (long long int)); }
16493 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16495 #include <stdlib.h>
16500 FILE *f = fopen ("conftest.val", "w");
16503 if (((long) (sizeof (long long int))) < 0)
16505 long i = longval ();
16506 if (i != ((long) (sizeof (long long int))))
16508 fprintf (f, "%ld\n", i);
16512 unsigned long i = ulongval ();
16513 if (i != ((long) (sizeof (long long int))))
16515 fprintf (f, "%lu\n", i);
16517 exit (ferror (f) || fclose (f) != 0);
16523 rm -f conftest$ac_exeext
16524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16525 (eval $ac_link) 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_sizeof_long_long_int=`cat conftest.val`
16536 echo "$as_me: program exited with status $ac_status" >&5
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ( exit $ac_status )
16541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16542 See \`config.log' for more details." >&5
16543 echo "$as_me: error: cannot compute sizeof (long long int), 77
16544 See \`config.log' for more details." >&2;}
16545 { (exit 1); exit 1; }; }
16547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16552 ac_cv_sizeof_long_long_int=0
16555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16556 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16557 cat >>confdefs.h <<_ACEOF
16558 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16562 echo "$as_me:$LINENO: checking for int *" >&5
16563 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16564 if test "${ac_cv_type_int_p+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 $ac_includes_default
16579 if (sizeof (int *))
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587 (eval $ac_compile) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_type_int_p=yes
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 ac_cv_type_int_p=no
16614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16616 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16617 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16619 echo "$as_me:$LINENO: checking size of int *" >&5
16620 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16621 if test "${ac_cv_sizeof_int_p+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 if test "$ac_cv_type_int_p" = yes; then
16625 # The cast to unsigned long works around a bug in the HP C Compiler
16626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16628 # This bug is HP SR number 8606223364.
16629 if test "$cross_compiling" = yes; then
16630 # Depending upon the size, compute the lo and hi bounds.
16631 cat >conftest.$ac_ext <<_ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 $ac_includes_default
16641 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16648 rm -f conftest.$ac_objext
16649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650 (eval $ac_compile) 2>conftest.er1
16652 grep -v '^ *+' conftest.er1 >conftest.err
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try='test -z "$ac_c_werror_flag"
16658 || test ! -s conftest.err'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 $ac_includes_default
16682 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691 (eval $ac_compile) 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -z "$ac_c_werror_flag"
16699 || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_hi=$ac_mid; break
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_lo=`expr $ac_mid + 1`
16717 if test $ac_lo -le $ac_mid; then
16721 ac_mid=`expr 2 '*' $ac_mid + 1`
16723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16739 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 $ac_includes_default
16780 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789 (eval $ac_compile) 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_lo=$ac_mid; break
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 ac_hi=`expr '(' $ac_mid ')' - 1`
16815 if test $ac_mid -le $ac_hi; then
16819 ac_mid=`expr 2 '*' $ac_mid`
16821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16832 # Binary search between lo and hi bounds.
16833 while test "x$ac_lo" != "x$ac_hi"; do
16834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 $ac_includes_default
16845 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16856 grep -v '^ *+' conftest.er1 >conftest.err
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_lo=`expr '(' $ac_mid ')' + 1`
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16885 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16886 See \`config.log' for more details." >&5
16887 echo "$as_me: error: cannot compute sizeof (int *), 77
16888 See \`config.log' for more details." >&2;}
16889 { (exit 1); exit 1; }; } ;;
16892 if test "$cross_compiling" = yes; then
16893 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16894 See \`config.log' for more details." >&5
16895 echo "$as_me: error: cannot run test program while cross compiling
16896 See \`config.log' for more details." >&2;}
16897 { (exit 1); exit 1; }; }
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 $ac_includes_default
16906 long longval () { return (long) (sizeof (int *)); }
16907 unsigned long ulongval () { return (long) (sizeof (int *)); }
16909 #include <stdlib.h>
16914 FILE *f = fopen ("conftest.val", "w");
16917 if (((long) (sizeof (int *))) < 0)
16919 long i = longval ();
16920 if (i != ((long) (sizeof (int *))))
16922 fprintf (f, "%ld\n", i);
16926 unsigned long i = ulongval ();
16927 if (i != ((long) (sizeof (int *))))
16929 fprintf (f, "%lu\n", i);
16931 exit (ferror (f) || fclose (f) != 0);
16937 rm -f conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_sizeof_int_p=`cat conftest.val`
16950 echo "$as_me: program exited with status $ac_status" >&5
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 ( exit $ac_status )
16955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16956 See \`config.log' for more details." >&5
16957 echo "$as_me: error: cannot compute sizeof (int *), 77
16958 See \`config.log' for more details." >&2;}
16959 { (exit 1); exit 1; }; }
16961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16966 ac_cv_sizeof_int_p=0
16969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16970 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16971 cat >>confdefs.h <<_ACEOF
16972 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16977 # Check for sys/types.h types
16978 echo "$as_me:$LINENO: checking for u_int type" >&5
16979 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16980 if test "${ac_cv_have_u_int+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 #include <sys/types.h>
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001 (eval $ac_compile) 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag"
17009 || test ! -s conftest.err'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest.$ac_objext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_have_u_int="yes"
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_have_u_int="no"
17029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17032 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17033 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17034 if test "x$ac_cv_have_u_int" = "xyes" ; then
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_U_INT 1
17042 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17043 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17044 if test "${ac_cv_have_intmax_t+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 #include <sys/types.h>
17063 rm -f conftest.$ac_objext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065 (eval $ac_compile) 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_have_intmax_t="yes"
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 #include <stdint.h>
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>conftest.er1
17110 grep -v '^ *+' conftest.er1 >conftest.err
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag"
17116 || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_have_intmax_t="yes"
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_have_intmax_t="no"
17136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17144 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17145 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17146 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_INTMAX_T 1
17155 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17156 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17157 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <sys/types.h>
17171 u_intmax_t a; a = 1;
17176 rm -f conftest.$ac_objext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178 (eval $ac_compile) 2>conftest.er1
17180 grep -v '^ *+' conftest.er1 >conftest.err
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } &&
17185 { ac_try='test -z "$ac_c_werror_flag"
17186 || test ! -s conftest.err'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_have_u_intmax_t="yes"
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 #include <stdint.h>
17214 u_intmax_t a; a = 1;
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_have_u_intmax_t="yes"
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ac_cv_have_u_intmax_t="no"
17249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17256 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17257 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17258 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_U_INTMAX_T 1
17267 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17268 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17269 if test "${ac_cv_have_intxx_t+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 #include <sys/types.h>
17283 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17288 rm -f conftest.$ac_objext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17290 (eval $ac_compile) 2>conftest.er1
17292 grep -v '^ *+' conftest.er1 >conftest.err
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
17297 { ac_try='test -z "$ac_c_werror_flag"
17298 || test ! -s conftest.err'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_cv_have_intxx_t="yes"
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 ac_cv_have_intxx_t="no"
17318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17321 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17322 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17323 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_INTXX_T 1
17331 echo "$as_me:$LINENO: checking for int64_t type" >&5
17332 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17333 if test "${ac_cv_have_int64_t+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17343 #include <sys/types.h>
17352 rm -f conftest.$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_have_int64_t="yes"
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_have_int64_t="no"
17382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17386 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17387 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17388 cat >>confdefs.h <<\_ACEOF
17389 #define HAVE_INT64_T 1
17395 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17396 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17397 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 #include <sys/types.h>
17411 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest.$ac_objext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_have_u_intxx_t="yes"
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_have_u_intxx_t="no"
17446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17449 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17450 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17451 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_U_INTXX_T 1
17459 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17460 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17461 if test "${ac_cv_have_u_int64_t+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 #include <sys/types.h>
17475 u_int64_t a; a = 1;
17480 rm -f conftest.$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_have_u_int64_t="yes"
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_have_u_int64_t="no"
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17513 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17514 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17515 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_U_INT64_T 1
17523 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17524 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17526 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17527 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 #include <sys/bitypes.h>
17538 int8_t a; int16_t b; int32_t c;
17539 u_int8_t e; u_int16_t f; u_int32_t g;
17540 a = b = c = e = f = g = 1;
17545 rm -f conftest.$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
17549 grep -v '^ *+' conftest.er1 >conftest.err
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_U_INTXX_T 1
17571 cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_INTXX_T 1
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_SYS_BITYPES_H 1
17579 echo "$as_me:$LINENO: result: yes" >&5
17580 echo "${ECHO_T}yes" >&6
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17592 if test -z "$have_u_intxx_t" ; then
17593 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17594 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17595 if test "${ac_cv_have_uintxx_t+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 #include <sys/types.h>
17609 uint8_t a; uint16_t b;
17610 uint32_t c; a = b = c = 1;
17615 rm -f conftest.$ac_objext
17616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17617 (eval $ac_compile) 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag"
17625 || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_have_uintxx_t="yes"
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_have_uintxx_t="no"
17645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17648 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17649 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17650 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17651 cat >>confdefs.h <<\_ACEOF
17652 #define HAVE_UINTXX_T 1
17658 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17659 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17661 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17662 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17663 cat >conftest.$ac_ext <<_ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 #include <sys/bitypes.h>
17673 int64_t a; u_int64_t b;
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 cat >>confdefs.h <<\_ACEOF
17702 #define HAVE_U_INT64_T 1
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_INT64_T 1
17709 echo "$as_me:$LINENO: result: yes" >&5
17710 echo "${ECHO_T}yes" >&6
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 echo "$as_me:$LINENO: result: no" >&5
17716 echo "${ECHO_T}no" >&6
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17722 if (test -z "$have_uintxx_t" && \
17723 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17725 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17726 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <sys/bitypes.h>
17737 uint8_t a; uint16_t b;
17738 uint32_t c; a = b = c = 1;
17743 rm -f conftest.$ac_objext
17744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17745 (eval $ac_compile) 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag"
17753 || test ! -s conftest.err'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; } &&
17759 { ac_try='test -s conftest.$ac_objext'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 cat >>confdefs.h <<\_ACEOF
17766 #define HAVE_UINTXX_T 1
17769 echo "$as_me:$LINENO: result: yes" >&5
17770 echo "${ECHO_T}yes" >&6
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6
17779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17816 echo "$as_me:$LINENO: checking for $ac_func" >&5
17817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17818 if eval "test \"\${$as_ac_var+set}\" = set"; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17829 #define $ac_func innocuous_$ac_func
17831 /* System header to define __stub macros and hopefully few prototypes,
17832 which can conflict with char $ac_func (); below.
17833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834 <limits.h> exists even on freestanding compilers. */
17837 # include <limits.h>
17839 # include <assert.h>
17844 /* Override any gcc2 internal prototype to avoid an error. */
17849 /* We use char because int might match the return type of a gcc2
17850 builtin and then its argument prototype would still apply. */
17852 /* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17858 char (*f) () = $ac_func;
17867 return f != $ac_func;
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17874 (eval $ac_link) 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } &&
17881 { ac_try='test -z "$ac_c_werror_flag"
17882 || test ! -s conftest.err'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest$ac_exeext'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 eval "$as_ac_var=yes"
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 eval "$as_ac_var=no"
17901 rm -f conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
17904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17906 if test `eval echo '${'$as_ac_var'}'` = yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 echo 'configure: cannot find needed function.'; exit 1
17919 for ac_func in fchdir
17921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 echo "$as_me:$LINENO: checking for $ac_func" >&5
17923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17924 if eval "test \"\${$as_ac_var+set}\" = set"; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17935 #define $ac_func innocuous_$ac_func
17937 /* System header to define __stub macros and hopefully few prototypes,
17938 which can conflict with char $ac_func (); below.
17939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17940 <limits.h> exists even on freestanding compilers. */
17943 # include <limits.h>
17945 # include <assert.h>
17950 /* Override any gcc2 internal prototype to avoid an error. */
17955 /* We use char because int might match the return type of a gcc2
17956 builtin and then its argument prototype would still apply. */
17958 /* The GNU C library defines this for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17964 char (*f) () = $ac_func;
17973 return f != $ac_func;
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17980 (eval $ac_link) 2>conftest.er1
17982 grep -v '^ *+' conftest.er1 >conftest.err
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 eval "$as_ac_var=yes"
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 eval "$as_ac_var=no"
18007 rm -f conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18012 if test `eval echo '${'$as_ac_var'}'` = yes; then
18013 cat >>confdefs.h <<_ACEOF
18014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE_FCHDIR 1
18024 for ac_func in strtoll
18026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18027 echo "$as_me:$LINENO: checking for $ac_func" >&5
18028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_var+set}\" = set"; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18040 #define $ac_func innocuous_$ac_func
18042 /* System header to define __stub macros and hopefully few prototypes,
18043 which can conflict with char $ac_func (); below.
18044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18045 <limits.h> exists even on freestanding compilers. */
18048 # include <limits.h>
18050 # include <assert.h>
18055 /* Override any gcc2 internal prototype to avoid an error. */
18060 /* We use char because int might match the return type of a gcc2
18061 builtin and then its argument prototype would still apply. */
18063 /* The GNU C library defines this for functions which it implements
18064 to always fail with ENOSYS. Some functions are actually named
18065 something starting with __ and the normal name is an alias. */
18066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18069 char (*f) () = $ac_func;
18078 return f != $ac_func;
18083 rm -f conftest.$ac_objext conftest$ac_exeext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18085 (eval $ac_link) 2>conftest.er1
18087 grep -v '^ *+' conftest.er1 >conftest.err
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try='test -z "$ac_c_werror_flag"
18093 || test ! -s conftest.err'
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try='test -s conftest$ac_exeext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 eval "$as_ac_var=yes"
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 eval "$as_ac_var=no"
18112 rm -f conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18121 cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_STRTOLL 1
18130 for ac_func in chflags
18132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18133 echo "$as_me:$LINENO: checking for $ac_func" >&5
18134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18135 if eval "test \"\${$as_ac_var+set}\" = set"; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 cat >conftest.$ac_ext <<_ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18146 #define $ac_func innocuous_$ac_func
18148 /* System header to define __stub macros and hopefully few prototypes,
18149 which can conflict with char $ac_func (); below.
18150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151 <limits.h> exists even on freestanding compilers. */
18154 # include <limits.h>
18156 # include <assert.h>
18161 /* Override any gcc2 internal prototype to avoid an error. */
18166 /* We use char because int might match the return type of a gcc2
18167 builtin and then its argument prototype would still apply. */
18169 /* The GNU C library defines this for functions which it implements
18170 to always fail with ENOSYS. Some functions are actually named
18171 something starting with __ and the normal name is an alias. */
18172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18175 char (*f) () = $ac_func;
18184 return f != $ac_func;
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191 (eval $ac_link) 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest$ac_exeext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 eval "$as_ac_var=yes"
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 eval "$as_ac_var=no"
18218 rm -f conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
18221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18236 for ac_func in snprintf vsnprintf gethostid getdomainname
18238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18239 echo "$as_me:$LINENO: checking for $ac_func" >&5
18240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18241 if eval "test \"\${$as_ac_var+set}\" = set"; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 cat >conftest.$ac_ext <<_ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18252 #define $ac_func innocuous_$ac_func
18254 /* System header to define __stub macros and hopefully few prototypes,
18255 which can conflict with char $ac_func (); below.
18256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18257 <limits.h> exists even on freestanding compilers. */
18260 # include <limits.h>
18262 # include <assert.h>
18267 /* Override any gcc2 internal prototype to avoid an error. */
18272 /* We use char because int might match the return type of a gcc2
18273 builtin and then its argument prototype would still apply. */
18275 /* The GNU C library defines this for functions which it implements
18276 to always fail with ENOSYS. Some functions are actually named
18277 something starting with __ and the normal name is an alias. */
18278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18281 char (*f) () = $ac_func;
18290 return f != $ac_func;
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>conftest.er1
18299 grep -v '^ *+' conftest.er1 >conftest.err
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try='test -z "$ac_c_werror_flag"
18305 || test ! -s conftest.err'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest$ac_exeext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 eval "$as_ac_var=yes"
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 eval "$as_ac_var=no"
18324 rm -f conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18342 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18345 echo "$as_me:$LINENO: checking for $ac_func" >&5
18346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18347 if eval "test \"\${$as_ac_var+set}\" = set"; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18358 #define $ac_func innocuous_$ac_func
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below.
18362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363 <limits.h> exists even on freestanding compilers. */
18366 # include <limits.h>
18368 # include <assert.h>
18373 /* Override any gcc2 internal prototype to avoid an error. */
18378 /* We use char because int might match the return type of a gcc2
18379 builtin and then its argument prototype would still apply. */
18381 /* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18387 char (*f) () = $ac_func;
18396 return f != $ac_func;
18401 rm -f conftest.$ac_objext conftest$ac_exeext
18402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18403 (eval $ac_link) 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag"
18411 || test ! -s conftest.err'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; } &&
18417 { ac_try='test -s conftest$ac_exeext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18423 eval "$as_ac_var=yes"
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 eval "$as_ac_var=no"
18430 rm -f conftest.err conftest.$ac_objext \
18431 conftest$ac_exeext conftest.$ac_ext
18433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18435 if test `eval echo '${'$as_ac_var'}'` = yes; then
18436 cat >>confdefs.h <<_ACEOF
18437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18444 # If resolver functions are not in libc check for -lnsl or -lresolv.
18445 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18446 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18447 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18458 #define gethostbyname_r innocuous_gethostbyname_r
18460 /* System header to define __stub macros and hopefully few prototypes,
18461 which can conflict with char gethostbyname_r (); below.
18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463 <limits.h> exists even on freestanding compilers. */
18466 # include <limits.h>
18468 # include <assert.h>
18471 #undef gethostbyname_r
18473 /* Override any gcc2 internal prototype to avoid an error. */
18478 /* We use char because int might match the return type of a gcc2
18479 builtin and then its argument prototype would still apply. */
18480 char gethostbyname_r ();
18481 /* The GNU C library defines this for functions which it implements
18482 to always fail with ENOSYS. Some functions are actually named
18483 something starting with __ and the normal name is an alias. */
18484 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18487 char (*f) () = gethostbyname_r;
18496 return f != gethostbyname_r;
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503 (eval $ac_link) 2>conftest.er1
18505 grep -v '^ *+' conftest.er1 >conftest.err
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_c_werror_flag"
18511 || test ! -s conftest.err'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest$ac_exeext'
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_cv_func_gethostbyname_r=yes
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_func_gethostbyname_r=no
18530 rm -f conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
18533 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18534 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18535 if test $ac_cv_func_gethostbyname_r = yes; then
18536 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18537 echo "${ECHO_T}using libc's resolver" >&6
18540 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18541 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18542 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 ac_check_lib_save_LIBS=$LIBS
18547 cat >conftest.$ac_ext <<_ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18554 /* Override any gcc2 internal prototype to avoid an error. */
18558 /* We use char because int might match the return type of a gcc2
18559 builtin and then its argument prototype would still apply. */
18560 char gethostbyname_r ();
18564 gethostbyname_r ();
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>conftest.er1
18573 grep -v '^ *+' conftest.er1 >conftest.err
18575 cat conftest.err >&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -z "$ac_c_werror_flag"
18579 || test ! -s conftest.err'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest$ac_exeext'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_cv_lib_nsl_gethostbyname_r=yes
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_cv_lib_nsl_gethostbyname_r=no
18598 rm -f conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18602 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18603 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18604 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_LIBNSL 1
18614 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18615 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18616 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_check_lib_save_LIBS=$LIBS
18620 LIBS="-lresolv $LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18628 /* Override any gcc2 internal prototype to avoid an error. */
18632 /* We use char because int might match the return type of a gcc2
18633 builtin and then its argument prototype would still apply. */
18634 char gethostbyname_r ();
18638 gethostbyname_r ();
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } &&
18652 { ac_try='test -z "$ac_c_werror_flag"
18653 || test ! -s conftest.err'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_lib_resolv_gethostbyname_r=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_lib_resolv_gethostbyname_r=no
18672 rm -f conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18676 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18677 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18678 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18679 cat >>confdefs.h <<_ACEOF
18680 #define HAVE_LIBRESOLV 1
18683 LIBS="-lresolv $LIBS"
18693 for ac_func in inet_pton
18695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18696 echo "$as_me:$LINENO: checking for $ac_func" >&5
18697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18698 if eval "test \"\${$as_ac_var+set}\" = set"; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18701 cat >conftest.$ac_ext <<_ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18709 #define $ac_func innocuous_$ac_func
18711 /* System header to define __stub macros and hopefully few prototypes,
18712 which can conflict with char $ac_func (); below.
18713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18714 <limits.h> exists even on freestanding compilers. */
18717 # include <limits.h>
18719 # include <assert.h>
18724 /* Override any gcc2 internal prototype to avoid an error. */
18729 /* We use char because int might match the return type of a gcc2
18730 builtin and then its argument prototype would still apply. */
18732 /* The GNU C library defines this for functions which it implements
18733 to always fail with ENOSYS. Some functions are actually named
18734 something starting with __ and the normal name is an alias. */
18735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18738 char (*f) () = $ac_func;
18747 return f != $ac_func;
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>conftest.er1
18756 grep -v '^ *+' conftest.er1 >conftest.err
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag"
18762 || test ! -s conftest.err'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest$ac_exeext'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 eval "$as_ac_var=yes"
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 eval "$as_ac_var=no"
18781 rm -f conftest.err conftest.$ac_objext \
18782 conftest$ac_exeext conftest.$ac_ext
18784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18786 if test `eval echo '${'$as_ac_var'}'` = yes; then
18787 cat >>confdefs.h <<_ACEOF
18788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18790 cat >>confdefs.h <<\_ACEOF
18791 #define HAVE_INET_PTON 1
18798 for ac_func in inet_ntop
18800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18801 echo "$as_me:$LINENO: checking for $ac_func" >&5
18802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18803 if eval "test \"\${$as_ac_var+set}\" = set"; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 cat >conftest.$ac_ext <<_ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18814 #define $ac_func innocuous_$ac_func
18816 /* System header to define __stub macros and hopefully few prototypes,
18817 which can conflict with char $ac_func (); below.
18818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18819 <limits.h> exists even on freestanding compilers. */
18822 # include <limits.h>
18824 # include <assert.h>
18829 /* Override any gcc2 internal prototype to avoid an error. */
18834 /* We use char because int might match the return type of a gcc2
18835 builtin and then its argument prototype would still apply. */
18837 /* The GNU C library defines this for functions which it implements
18838 to always fail with ENOSYS. Some functions are actually named
18839 something starting with __ and the normal name is an alias. */
18840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18843 char (*f) () = $ac_func;
18852 return f != $ac_func;
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>conftest.er1
18861 grep -v '^ *+' conftest.er1 >conftest.err
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag"
18867 || test ! -s conftest.err'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 eval "$as_ac_var=yes"
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 eval "$as_ac_var=no"
18886 rm -f conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18891 if test `eval echo '${'$as_ac_var'}'` = yes; then
18892 cat >>confdefs.h <<_ACEOF
18893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18895 cat >>confdefs.h <<\_ACEOF
18896 #define HAVE_INET_NTOP 1
18903 for ac_func in gethostbyname2
18905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18906 echo "$as_me:$LINENO: checking for $ac_func" >&5
18907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18908 if eval "test \"\${$as_ac_var+set}\" = set"; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 cat >conftest.$ac_ext <<_ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18919 #define $ac_func innocuous_$ac_func
18921 /* System header to define __stub macros and hopefully few prototypes,
18922 which can conflict with char $ac_func (); below.
18923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18924 <limits.h> exists even on freestanding compilers. */
18927 # include <limits.h>
18929 # include <assert.h>
18934 /* Override any gcc2 internal prototype to avoid an error. */
18939 /* We use char because int might match the return type of a gcc2
18940 builtin and then its argument prototype would still apply. */
18942 /* The GNU C library defines this for functions which it implements
18943 to always fail with ENOSYS. Some functions are actually named
18944 something starting with __ and the normal name is an alias. */
18945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18948 char (*f) () = $ac_func;
18957 return f != $ac_func;
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964 (eval $ac_link) 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
18971 { ac_try='test -z "$ac_c_werror_flag"
18972 || test ! -s conftest.err'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest$ac_exeext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 eval "$as_ac_var=yes"
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 eval "$as_ac_var=no"
18991 rm -f conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18996 if test `eval echo '${'$as_ac_var'}'` = yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_GETHOSTBYNAME2 1
19008 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19009 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19010 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 #include <sys/socket.h>
19023 struct sockaddr s; s.sa_len;
19028 rm -f conftest.$ac_objext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030 (eval $ac_compile) 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_struct_sockaddr_sa_len=yes
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_cv_struct_sockaddr_sa_len=no
19057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19060 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19062 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19064 cat >>confdefs.h <<\_ACEOF
19065 #define HAVE_SA_LEN 1
19071 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19072 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19073 if test "${ac_cv_ipv6_support+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 #include <sys/types.h>
19083 #include <sys/socket.h>
19084 #include <netinet/in.h>
19088 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_ipv6_support=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_ipv6_support=no
19123 rm -f conftest.err conftest.$ac_objext \
19124 conftest$ac_exeext conftest.$ac_ext
19126 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19127 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19129 if test "$ac_cv_ipv6_support" = yes; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_IPV6 1
19140 for ac_func in strftime
19142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19143 echo "$as_me:$LINENO: checking for $ac_func" >&5
19144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19145 if eval "test \"\${$as_ac_var+set}\" = set"; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19156 #define $ac_func innocuous_$ac_func
19158 /* System header to define __stub macros and hopefully few prototypes,
19159 which can conflict with char $ac_func (); below.
19160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19161 <limits.h> exists even on freestanding compilers. */
19164 # include <limits.h>
19166 # include <assert.h>
19171 /* Override any gcc2 internal prototype to avoid an error. */
19176 /* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
19179 /* The GNU C library defines this for functions which it implements
19180 to always fail with ENOSYS. Some functions are actually named
19181 something starting with __ and the normal name is an alias. */
19182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19185 char (*f) () = $ac_func;
19194 return f != $ac_func;
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19201 (eval $ac_link) 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag"
19209 || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest$ac_exeext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 eval "$as_ac_var=yes"
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 eval "$as_ac_var=no"
19228 rm -f conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19233 if test `eval echo '${'$as_ac_var'}'` = yes; then
19234 cat >>confdefs.h <<_ACEOF
19235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19239 # strftime is in -lintl on SCO UNIX.
19240 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19241 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19242 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 ac_check_lib_save_LIBS=$LIBS
19246 LIBS="-lintl $LIBS"
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19254 /* Override any gcc2 internal prototype to avoid an error. */
19258 /* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271 (eval $ac_link) 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest$ac_exeext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_cv_lib_intl_strftime=yes
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_lib_intl_strftime=no
19298 rm -f conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19303 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19304 if test $ac_cv_lib_intl_strftime = yes; then
19305 cat >>confdefs.h <<\_ACEOF
19306 #define HAVE_STRFTIME 1
19309 LIBS="-lintl $LIBS"
19316 for ac_func in vprintf
19318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19319 echo "$as_me:$LINENO: checking for $ac_func" >&5
19320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19321 if eval "test \"\${$as_ac_var+set}\" = set"; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19332 #define $ac_func innocuous_$ac_func
19334 /* System header to define __stub macros and hopefully few prototypes,
19335 which can conflict with char $ac_func (); below.
19336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19337 <limits.h> exists even on freestanding compilers. */
19340 # include <limits.h>
19342 # include <assert.h>
19347 /* Override any gcc2 internal prototype to avoid an error. */
19352 /* We use char because int might match the return type of a gcc2
19353 builtin and then its argument prototype would still apply. */
19355 /* The GNU C library defines this for functions which it implements
19356 to always fail with ENOSYS. Some functions are actually named
19357 something starting with __ and the normal name is an alias. */
19358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19361 char (*f) () = $ac_func;
19370 return f != $ac_func;
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377 (eval $ac_link) 2>conftest.er1
19379 grep -v '^ *+' conftest.er1 >conftest.err
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag"
19385 || test ! -s conftest.err'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try='test -s conftest$ac_exeext'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 eval "$as_ac_var=yes"
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 eval "$as_ac_var=no"
19404 rm -f conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
19407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19409 if test `eval echo '${'$as_ac_var'}'` = yes; then
19410 cat >>confdefs.h <<_ACEOF
19411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19414 echo "$as_me:$LINENO: checking for _doprnt" >&5
19415 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19416 if test "${ac_cv_func__doprnt+set}" = set; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19427 #define _doprnt innocuous__doprnt
19429 /* System header to define __stub macros and hopefully few prototypes,
19430 which can conflict with char _doprnt (); below.
19431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19432 <limits.h> exists even on freestanding compilers. */
19435 # include <limits.h>
19437 # include <assert.h>
19442 /* Override any gcc2 internal prototype to avoid an error. */
19447 /* We use char because int might match the return type of a gcc2
19448 builtin and then its argument prototype would still apply. */
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19456 char (*f) () = _doprnt;
19465 return f != _doprnt;
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_func__doprnt=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_func__doprnt=no
19499 rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19503 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19504 if test $ac_cv_func__doprnt = yes; then
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_DOPRNT 1
19516 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19517 # for constant arguments. Useless!
19518 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19519 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19520 if test "${ac_cv_working_alloca_h+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <alloca.h>
19533 char *p = (char *) alloca (2 * sizeof (int));
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest$ac_exeext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_working_alloca_h=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_cv_working_alloca_h=no
19567 rm -f conftest.err conftest.$ac_objext \
19568 conftest$ac_exeext conftest.$ac_ext
19570 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19571 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19572 if test $ac_cv_working_alloca_h = yes; then
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE_ALLOCA_H 1
19580 echo "$as_me:$LINENO: checking for alloca" >&5
19581 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19582 if test "${ac_cv_func_alloca_works+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19592 # define alloca __builtin_alloca
19595 # include <malloc.h>
19596 # define alloca _alloca
19599 # include <alloca.h>
19604 # ifndef alloca /* predefined by HP cc +Olibcalls */
19615 char *p = (char *) alloca (1);
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19622 (eval $ac_link) 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag"
19630 || test ! -s conftest.err'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest$ac_exeext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_func_alloca_works=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_cv_func_alloca_works=no
19649 rm -f conftest.err conftest.$ac_objext \
19650 conftest$ac_exeext conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19655 if test $ac_cv_func_alloca_works = yes; then
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_ALLOCA 1
19662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19663 # that cause trouble. Some versions do not even contain alloca or
19664 # contain a buggy version. If you still want to use their alloca,
19665 # use ar to extract alloca.o from them instead of compiling alloca.c.
19667 ALLOCA=alloca.$ac_objext
19669 cat >>confdefs.h <<\_ACEOF
19674 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19676 if test "${ac_cv_os_cray+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #if defined(CRAY) && ! defined(CRAY2)
19692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19693 $EGREP "webecray" >/dev/null 2>&1; then
19701 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19702 echo "${ECHO_T}$ac_cv_os_cray" >&6
19703 if test $ac_cv_os_cray = yes; then
19704 for ac_func in _getb67 GETB67 getb67; do
19705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19706 echo "$as_me:$LINENO: checking for $ac_func" >&5
19707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19708 if eval "test \"\${$as_ac_var+set}\" = set"; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19719 #define $ac_func innocuous_$ac_func
19721 /* System header to define __stub macros and hopefully few prototypes,
19722 which can conflict with char $ac_func (); below.
19723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19724 <limits.h> exists even on freestanding compilers. */
19727 # include <limits.h>
19729 # include <assert.h>
19734 /* Override any gcc2 internal prototype to avoid an error. */
19739 /* We use char because int might match the return type of a gcc2
19740 builtin and then its argument prototype would still apply. */
19742 /* The GNU C library defines this for functions which it implements
19743 to always fail with ENOSYS. Some functions are actually named
19744 something starting with __ and the normal name is an alias. */
19745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19748 char (*f) () = $ac_func;
19757 return f != $ac_func;
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764 (eval $ac_link) 2>conftest.er1
19766 grep -v '^ *+' conftest.er1 >conftest.err
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 eval "$as_ac_var=yes"
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 eval "$as_ac_var=no"
19791 rm -f conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19796 if test `eval echo '${'$as_ac_var'}'` = yes; then
19798 cat >>confdefs.h <<_ACEOF
19799 #define CRAY_STACKSEG_END $ac_func
19808 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19809 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19810 if test "${ac_cv_c_stack_direction+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 if test "$cross_compiling" = yes; then
19814 ac_cv_c_stack_direction=0
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19823 find_stack_direction ()
19825 static char *addr = 0;
19830 return find_stack_direction ();
19833 return (&dummy > addr) ? 1 : -1;
19839 exit (find_stack_direction () < 0);
19842 rm -f conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844 (eval $ac_link) 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_c_stack_direction=1
19855 echo "$as_me: program exited with status $ac_status" >&5
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 ( exit $ac_status )
19860 ac_cv_c_stack_direction=-1
19862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19866 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19868 cat >>confdefs.h <<_ACEOF
19869 #define STACK_DIRECTION $ac_cv_c_stack_direction
19875 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19876 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19877 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19878 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 ac_check_lib_save_LIBS=$LIBS
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 /* Override any gcc2 internal prototype to avoid an error. */
19894 /* We use char because int might match the return type of a gcc2
19895 builtin and then its argument prototype would still apply. */
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907 (eval $ac_link) 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -z "$ac_c_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_lib_sun_getmntent=yes
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_cv_lib_sun_getmntent=no
19934 rm -f conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19938 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19939 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19940 if test $ac_cv_lib_sun_getmntent = yes; then
19943 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19944 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19945 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 ac_check_lib_save_LIBS=$LIBS
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19957 /* Override any gcc2 internal prototype to avoid an error. */
19961 /* We use char because int might match the return type of a gcc2
19962 builtin and then its argument prototype would still apply. */
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974 (eval $ac_link) 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest$ac_exeext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_lib_seq_getmntent=yes
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_lib_seq_getmntent=no
20001 rm -f conftest.err conftest.$ac_objext \
20002 conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20005 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20006 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20007 if test $ac_cv_lib_seq_getmntent = yes; then
20010 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20011 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20012 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 ac_check_lib_save_LIBS=$LIBS
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20024 /* Override any gcc2 internal prototype to avoid an error. */
20028 /* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_cv_lib_gen_getmntent=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_gen_getmntent=no
20068 rm -f conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20070 LIBS=$ac_check_lib_save_LIBS
20072 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20073 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20074 if test $ac_cv_lib_gen_getmntent = yes; then
20083 for ac_func in getmntent
20085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20086 echo "$as_me:$LINENO: checking for $ac_func" >&5
20087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20088 if eval "test \"\${$as_ac_var+set}\" = set"; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099 #define $ac_func innocuous_$ac_func
20101 /* System header to define __stub macros and hopefully few prototypes,
20102 which can conflict with char $ac_func (); below.
20103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104 <limits.h> exists even on freestanding compilers. */
20107 # include <limits.h>
20109 # include <assert.h>
20114 /* Override any gcc2 internal prototype to avoid an error. */
20119 /* We use char because int might match the return type of a gcc2
20120 builtin and then its argument prototype would still apply. */
20122 /* The GNU C library defines this for functions which it implements
20123 to always fail with ENOSYS. Some functions are actually named
20124 something starting with __ and the normal name is an alias. */
20125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20128 char (*f) () = $ac_func;
20137 return f != $ac_func;
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144 (eval $ac_link) 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag"
20152 || test ! -s conftest.err'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest$ac_exeext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 eval "$as_ac_var=yes"
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 eval "$as_ac_var=no"
20171 rm -f conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20176 if test `eval echo '${'$as_ac_var'}'` = yes; then
20177 cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20185 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20186 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20187 if test "${ac_cv_func_closedir_void+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 if test "$cross_compiling" = yes; then
20191 ac_cv_func_closedir_void=yes
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 $ac_includes_default
20200 #include <$ac_header_dirent>
20201 #ifndef __cplusplus
20208 exit (closedir (opendir (".")) != 0);
20213 rm -f conftest$ac_exeext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20215 (eval $ac_link) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_cv_func_closedir_void=no
20226 echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ( exit $ac_status )
20231 ac_cv_func_closedir_void=yes
20233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20237 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20238 if test $ac_cv_func_closedir_void = yes; then
20240 cat >>confdefs.h <<\_ACEOF
20241 #define CLOSEDIR_VOID 1
20246 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20247 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20248 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 if test "$cross_compiling" = yes; then
20252 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20253 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20254 { (exit 1); exit 1; }; }
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 # include <unistd.h>
20269 /* If this system has a BSD-style setpgrp which takes arguments,
20270 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20271 exit successfully. */
20272 exit (setpgrp (1,1) == -1 ? 0 : 1);
20277 rm -f conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279 (eval $ac_link) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_cv_func_setpgrp_void=no
20290 echo "$as_me: program exited with status $ac_status" >&5
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ( exit $ac_status )
20295 ac_cv_func_setpgrp_void=yes
20297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20300 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20301 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20302 if test $ac_cv_func_setpgrp_void = yes; then
20304 cat >>confdefs.h <<\_ACEOF
20305 #define SETPGRP_VOID 1
20309 # AC_FUNC_FNMATCH dnl use local version
20312 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20313 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20314 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 ac_check_lib_save_LIBS=$LIBS
20318 LIBS="-lxpg4 $LIBS"
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20326 /* Override any gcc2 internal prototype to avoid an error. */
20330 /* We use char because int might match the return type of a gcc2
20331 builtin and then its argument prototype would still apply. */
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20343 (eval $ac_link) 2>conftest.er1
20345 grep -v '^ *+' conftest.er1 >conftest.err
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
20350 { ac_try='test -z "$ac_c_werror_flag"
20351 || test ! -s conftest.err'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; } &&
20357 { ac_try='test -s conftest$ac_exeext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_lib_xpg4_setlocale=yes
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_cv_lib_xpg4_setlocale=no
20370 rm -f conftest.err conftest.$ac_objext \
20371 conftest$ac_exeext conftest.$ac_ext
20372 LIBS=$ac_check_lib_save_LIBS
20374 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20375 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20376 if test $ac_cv_lib_xpg4_setlocale = yes; then
20377 LIBS="$LIBS -lxpg4"
20383 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20384 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20385 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 ac_check_lib_save_LIBS=$LIBS
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20397 /* Override any gcc2 internal prototype to avoid an error. */
20401 /* We use char because int might match the return type of a gcc2
20402 builtin and then its argument prototype would still apply. */
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414 (eval $ac_link) 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest$ac_exeext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_lib_sun_getpwnam=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_lib_sun_getpwnam=no
20441 rm -f conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20445 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20446 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20447 if test $ac_cv_lib_sun_getpwnam = yes; then
20448 cat >>confdefs.h <<_ACEOF
20449 #define HAVE_LIBSUN 1
20458 for ac_header in zlib.h
20460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20462 echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20470 # Is the header compilable?
20471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 $ac_includes_default
20480 #include <$ac_header>
20482 rm -f conftest.$ac_objext
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag"
20492 || test ! -s conftest.err'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; } &&
20498 { ac_try='test -s conftest.$ac_objext'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
20504 ac_header_compiler=yes
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_header_compiler=no
20511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20513 echo "${ECHO_T}$ac_header_compiler" >&6
20515 # Is the header present?
20516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20518 cat >conftest.$ac_ext <<_ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524 #include <$ac_header>
20526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20529 grep -v '^ *+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } >/dev/null; then
20534 if test -s conftest.err; then
20535 ac_cpp_err=$ac_c_preproc_warn_flag
20536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20543 if test -z "$ac_cpp_err"; then
20544 ac_header_preproc=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_header_preproc=no
20551 rm -f conftest.err conftest.$ac_ext
20552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20553 echo "${ECHO_T}$ac_header_preproc" >&6
20555 # So? What about this header?
20556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20562 ac_header_preproc=yes
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20579 ## ------------------------------------------ ##
20580 ## Report this to the AC_PACKAGE_NAME lists. ##
20581 ## ------------------------------------------ ##
20584 sed "s/^/$as_me: WARNING: /" >&2
20587 echo "$as_me:$LINENO: checking for $ac_header" >&5
20588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 eval "$as_ac_Header=\$ac_header_preproc"
20594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20599 cat >>confdefs.h <<_ACEOF
20600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20607 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20608 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20609 if test "${ac_cv_lib_z_deflate+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 ac_check_lib_save_LIBS=$LIBS
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20621 /* Override any gcc2 internal prototype to avoid an error. */
20625 /* We use char because int might match the return type of a gcc2
20626 builtin and then its argument prototype would still apply. */
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest$ac_exeext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_z_deflate=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_z_deflate=no
20665 rm -f conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20670 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20671 if test $ac_cv_lib_z_deflate = yes; then
20676 if test x$FDLIBS = x-lz; then
20677 cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_LIBZ 1
20684 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20685 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20686 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20687 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20691 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20693 # Is the header compilable?
20694 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20695 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 $ac_includes_default
20703 #include <sys/acl.h>
20705 rm -f conftest.$ac_objext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707 (eval $ac_compile) 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
20714 { ac_try='test -z "$ac_c_werror_flag"
20715 || test ! -s conftest.err'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest.$ac_objext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_header_compiler=yes
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_header_compiler=no
20734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20736 echo "${ECHO_T}$ac_header_compiler" >&6
20738 # Is the header present?
20739 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20740 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <sys/acl.h>
20749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } >/dev/null; then
20757 if test -s conftest.err; then
20758 ac_cpp_err=$ac_c_preproc_warn_flag
20759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20766 if test -z "$ac_cpp_err"; then
20767 ac_header_preproc=yes
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 ac_header_preproc=no
20774 rm -f conftest.err conftest.$ac_ext
20775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20776 echo "${ECHO_T}$ac_header_preproc" >&6
20778 # So? What about this header?
20779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20781 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20782 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20784 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20785 ac_header_preproc=yes
20788 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20789 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20791 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20793 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20795 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20797 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20799 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20802 ## ------------------------------------------ ##
20803 ## Report this to the AC_PACKAGE_NAME lists. ##
20804 ## ------------------------------------------ ##
20807 sed "s/^/$as_me: WARNING: /" >&2
20810 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20811 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20812 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 ac_cv_header_sys_acl_h=$ac_header_preproc
20817 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20818 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20823 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20824 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20825 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 ac_check_lib_save_LIBS=$LIBS
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 /* Override any gcc2 internal prototype to avoid an error. */
20841 /* We use char because int might match the return type of a gcc2
20842 builtin and then its argument prototype would still apply. */
20843 char acl_get_file ();
20852 rm -f conftest.$ac_objext conftest$ac_exeext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20854 (eval $ac_link) 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag"
20862 || test ! -s conftest.err'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; } &&
20868 { ac_try='test -s conftest$ac_exeext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_lib_acl_acl_get_file=yes
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_cv_lib_acl_acl_get_file=no
20881 rm -f conftest.err conftest.$ac_objext \
20882 conftest$ac_exeext conftest.$ac_ext
20883 LIBS=$ac_check_lib_save_LIBS
20885 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20886 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20887 if test $ac_cv_lib_acl_acl_get_file = yes; then
20888 FDLIBS="-lacl $FDLIBS"
20892 if test $ac_cv_lib_acl_acl_get_file = yes; then
20893 cat >>confdefs.h <<\_ACEOF
20901 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20902 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20903 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 ac_check_lib_save_LIBS=$LIBS
20907 LIBS="-lpthread $LIBS"
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20915 /* Override any gcc2 internal prototype to avoid an error. */
20919 /* We use char because int might match the return type of a gcc2
20920 builtin and then its argument prototype would still apply. */
20921 char pthread_create ();
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932 (eval $ac_link) 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
20939 { ac_try='test -z "$ac_c_werror_flag"
20940 || test ! -s conftest.err'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest$ac_exeext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_lib_pthread_pthread_create=yes
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_lib_pthread_pthread_create=no
20959 rm -f conftest.err conftest.$ac_objext \
20960 conftest$ac_exeext conftest.$ac_ext
20961 LIBS=$ac_check_lib_save_LIBS
20963 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20964 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20965 if test $ac_cv_lib_pthread_pthread_create = yes; then
20966 PTHREAD_LIB="-lpthread"
20968 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20969 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20970 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 ac_check_lib_save_LIBS=$LIBS
20974 LIBS="-lpthreads $LIBS"
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 /* Override any gcc2 internal prototype to avoid an error. */
20986 /* We use char because int might match the return type of a gcc2
20987 builtin and then its argument prototype would still apply. */
20988 char pthread_create ();
20997 rm -f conftest.$ac_objext conftest$ac_exeext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20999 (eval $ac_link) 2>conftest.er1
21001 grep -v '^ *+' conftest.er1 >conftest.err
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
21006 { ac_try='test -z "$ac_c_werror_flag"
21007 || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest$ac_exeext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_cv_lib_pthreads_pthread_create=yes
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21024 ac_cv_lib_pthreads_pthread_create=no
21026 rm -f conftest.err conftest.$ac_objext \
21027 conftest$ac_exeext conftest.$ac_ext
21028 LIBS=$ac_check_lib_save_LIBS
21030 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21031 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21032 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21033 PTHREAD_LIB="-lpthreads"
21035 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21036 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21037 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 ac_check_lib_save_LIBS=$LIBS
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21049 /* Override any gcc2 internal prototype to avoid an error. */
21053 /* We use char because int might match the return type of a gcc2
21054 builtin and then its argument prototype would still apply. */
21055 char pthread_create ();
21064 rm -f conftest.$ac_objext conftest$ac_exeext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066 (eval $ac_link) 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_c_werror_flag"
21074 || test ! -s conftest.err'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try='test -s conftest$ac_exeext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_cv_lib_c_r_pthread_create=yes
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21091 ac_cv_lib_c_r_pthread_create=no
21093 rm -f conftest.err conftest.$ac_objext \
21094 conftest$ac_exeext conftest.$ac_ext
21095 LIBS=$ac_check_lib_save_LIBS
21097 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21098 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21099 if test $ac_cv_lib_c_r_pthread_create = yes; then
21100 PTHREAD_LIB="-lc_r"
21102 echo "$as_me:$LINENO: checking for pthread_create" >&5
21103 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21104 if test "${ac_cv_func_pthread_create+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21115 #define pthread_create innocuous_pthread_create
21117 /* System header to define __stub macros and hopefully few prototypes,
21118 which can conflict with char pthread_create (); below.
21119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21120 <limits.h> exists even on freestanding compilers. */
21123 # include <limits.h>
21125 # include <assert.h>
21128 #undef pthread_create
21130 /* Override any gcc2 internal prototype to avoid an error. */
21135 /* We use char because int might match the return type of a gcc2
21136 builtin and then its argument prototype would still apply. */
21137 char pthread_create ();
21138 /* The GNU C library defines this for functions which it implements
21139 to always fail with ENOSYS. Some functions are actually named
21140 something starting with __ and the normal name is an alias. */
21141 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21144 char (*f) () = pthread_create;
21153 return f != pthread_create;
21158 rm -f conftest.$ac_objext conftest$ac_exeext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21160 (eval $ac_link) 2>conftest.er1
21162 grep -v '^ *+' conftest.er1 >conftest.err
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_c_werror_flag"
21168 || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 ac_cv_func_pthread_create=yes
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 ac_cv_func_pthread_create=no
21187 rm -f conftest.err conftest.$ac_objext \
21188 conftest$ac_exeext conftest.$ac_ext
21190 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21191 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21204 cat >>confdefs.h <<\_ACEOF
21210 CFLAGS=${CFLAGS--O}
21211 LDFLAGS=${LDFLAGS--O}
21212 DB_LIBS="${SQL_LFLAGS}"
21214 CPPFLAGS="$CPPFLAGS"
21239 # Finally we set appropriate distribution specific
21240 # variables and defaults
21242 # PFILES are platform specific files
21243 PFILES="platforms/Makefile"
21247 hostname=`uname -n | cut -d '.' -f 1`
21248 case "$DISTNAME" in
21251 PSCMD="ps -e -o pid,comm"
21252 PFILES="${PFILES} \
21253 platforms/aix/Makefile"
21254 TAPEDRIVE="/dev/rmt0.1"
21258 PTHREAD_LIB="-lpthread -lexc"
21259 if test "${CC}" = "gcc" ; then
21266 TAPEDRIVE="/dev/nrmt0"
21269 DISTVER=`uname -a |awk '{print $3}'`
21270 TAPEDRIVE="/dev/nrmt0"
21271 PTHREAD_LIB="-pthread"
21272 CFLAGS="${CFLAGS} -pthread"
21273 PSCMD="ps -x -o pid,command"
21276 PFILES="${PFILES} \
21277 platforms/bsdi/Makefile \
21278 platforms/bsdi/bacula-fd \
21279 platforms/bsdi/bacula-sd \
21280 platforms/bsdi/bacula-dir"
21281 largefile_support="yes"
21284 DISTVER=`uname -a |awk '{print $3}'`
21285 TAPEDRIVE="/dev/nrst0"
21287 WCFLAGS="-mwindows"
21288 WLDFLAGS="-mwindows"
21292 TAPEDRIVE="/dev/nst0"
21293 PSCMD="ps -e -o pid,command"
21295 PFILES="${PFILES} \
21296 platforms/darwin/Makefile"
21299 DISTVER=`cat /etc/debian_version`
21300 TAPEDRIVE="/dev/nrst0"
21301 PSCMD="ps -e -o pid,command"
21304 DISTVER=`uname -a |awk '{print $3}'`
21305 VER=`echo $DISTVER | cut -c 1`
21306 if test x$VER = x4 ; then
21307 PTHREAD_LIB="-pthread"
21308 CFLAGS="${CFLAGS} -pthread"
21312 TAPEDRIVE="/dev/nrsa0"
21313 PSCMD="ps -x -o pid,command"
21314 PFILES="${PFILES} \
21315 platforms/freebsd/Makefile \
21316 platforms/freebsd/bacula-fd \
21317 platforms/freebsd/bacula-sd \
21318 platforms/freebsd/bacula-dir"
21319 largefile_support="yes"
21322 PSCMD="UNIX95=1 ps -e -o pid,comm"
21323 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21325 TAPEDRIVE="/dev/rmt/0hnb"
21326 PTHREAD_LIB="-lpthread"
21330 TAPEDRIVE="/dev/rmt/0cbn"
21331 PSCMD="ps -e -o pid,comm"
21332 PFILES="${PFILES} \
21333 platforms/irix/Makefile \
21334 platforms/irix/bacula-fd \
21335 platforms/irix/bacula-sd \
21336 platforms/irix/bacula-dir"
21339 DISTVER=`uname -a |awk '{print $3}'`
21342 TAPEDRIVE="/dev/nrst0"
21343 PSCMD="ps -a -o pid,command"
21344 PTHREAD_LIB="-pthread"
21345 CFLAGS="${CFLAGS} -pthread"
21348 DISTVER=`uname -a |awk '{print $3}'`
21351 TAPEDRIVE="/dev/nrst0"
21352 PSCMD="ps -ax -o pid,command"
21353 PTHREAD_LIB="-pthread"
21354 CFLAGS="${CFLAGS} -pthread"
21355 PFILES="${PFILES} \
21356 platforms/openbsd/Makefile \
21357 platforms/openbsd/bacula-fd \
21358 platforms/openbsd/bacula-sd \
21359 platforms/openbsd/bacula-dir"
21362 if test -f /etc/whitebox-release ; then
21363 f=/etc/whitebox-release
21365 f=/etc/redhat-release
21367 if test `cat $f | grep release |\
21368 cut -f 3 -d ' '`x = "Enterprise"x ; then
21369 DISTVER="Enterprise "`cat $f | grep release |\
21372 DISTVER=`cat /etc/redhat-release | grep release |\
21375 TAPEDRIVE="/dev/nst0"
21376 PSCMD="ps -e -o pid,command"
21377 PFILES="${PFILES} \
21378 platforms/redhat/Makefile \
21379 platforms/redhat/bacula-fd \
21380 platforms/redhat/bacula-sd \
21381 platforms/redhat/bacula-dir \
21382 platforms/redhat/bacula.spec \
21384 hostname=`hostname -s`
21387 DISTVER=`cat /etc/mandrake-release | grep release |\
21389 TAPEDRIVE="/dev/nst0"
21390 PSCMD="ps -e -o pid,command"
21391 PFILES="${PFILES} \
21392 platforms/mandrake/Makefile \
21393 platforms/mandrake/bacula-fd \
21394 platforms/mandrake/bacula-sd \
21395 platforms/mandrake/bacula-dir \
21396 platforms/mandrake/bacula.spec \
21400 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21401 TAPEDRIVE="/dev/nst0"
21402 PSCMD="ps -e -o pid,command"
21403 PFILES="${PFILES} \
21404 platforms/gentoo/Makefile \
21405 platforms/gentoo/bacula-init \
21406 platforms/gentoo/bacula-fd \
21407 platforms/gentoo/bacula-sd \
21408 platforms/gentoo/bacula-dir"
21411 DISTVER=`cat /etc/slackware-version`
21412 TAPEDRIVE="/dev/nst0"
21413 PSCMD="ps -e -o pid,command"
21414 PFILES="${PFILES} \
21415 platforms/slackware/Makefile \
21416 platforms/slackware/rc.bacula-fd \
21417 platforms/slackware/rc.bacula-sd \
21418 platforms/slackware/rc.bacula-dir\
21419 platforms/slackware/functions.bacula"
21423 TAPEDRIVE="/dev/rmt/0cbn"
21424 PSCMD="ps -e -o pid,comm"
21425 PFILES="${PFILES} \
21426 platforms/solaris/Makefile \
21427 platforms/solaris/bacula-fd \
21428 platforms/solaris/bacula-sd \
21429 platforms/solaris/bacula-dir"
21430 if test x$DISTVER = x5.6 ; then
21431 cat >>confdefs.h <<\_ACEOF
21432 #define HAVE_OLD_SOCKOPT 1
21438 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21440 TAPEDRIVE="/dev/nst0"
21441 PSCMD="ps -e -o pid,command"
21442 PFILES="${PFILES} \
21443 platforms/suse/Makefile \
21444 platforms/suse/bacula-fd \
21445 platforms/suse/bacula-sd \
21446 platforms/suse/bacula-dir \
21447 platforms/suse/bacula \
21448 platforms/suse/bacula.spec"
21453 TAPEDRIVE="/dev/nst0"
21454 PSCMD="ps -e -o pid,command"
21455 PFILES="${PFILES} \
21456 platforms/suse/Makefile \
21457 platforms/suse/bacula-fd \
21458 platforms/suse/bacula-sd \
21459 platforms/suse/bacula-dir"
21463 TAPEDRIVE="/dev/nst0"
21466 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21472 LIBS="$PTHREAD_LIB $LIBS"
21474 cat >>confdefs.h <<_ACEOF
21478 cat >>confdefs.h <<_ACEOF
21489 MCOMMON=./autoconf/Make.common
21492 if test "x${subsysdir}" = "x${sbindir}" ; then
21495 echo "You have set both --sbindir and --with-subsys-dir"
21496 echo " equal to: ${subsysdir} "
21497 echo "This is not permitted. Please reconfigure."
21499 echo "Aborting configuration ..."
21505 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21506 ac_config_commands="$ac_config_commands default"
21507 cat >confcache <<\_ACEOF
21508 # This file is a shell script that caches the results of configure
21509 # tests run on this system so they can be shared between configure
21510 # scripts and configure runs, see configure's option --config-cache.
21511 # It is not useful on other systems. If it contains results you don't
21512 # want to keep, you may remove or edit it.
21514 # config.status only pays attention to the cache file if you give it
21515 # the --recheck option to rerun configure.
21517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21519 # following values.
21523 # The following way of writing the cache mishandles newlines in values,
21524 # but we know of no workaround that is simple, portable, and efficient.
21525 # So, don't put newlines in cache variables' values.
21526 # Ultrix sh set writes to stderr and can't be redirected directly,
21527 # and sets the high bit in the cache file unless we assign to the vars.
21530 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21532 # `set' does not quote correctly, so add quotes (double-quote
21533 # substitution turns \\\\ into \\, and sed turns \\ into \).
21536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21539 # `set' quotes correctly as required by POSIX, so do not add quotes.
21541 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21550 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21552 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21553 if test -w $cache_file; then
21554 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21555 cat confcache >$cache_file
21557 echo "not updating unwritable cache $cache_file"
21562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21563 # Let make expand exec_prefix.
21564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21566 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21567 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21568 # trailing colons and then remove the whole line if VPATH becomes empty
21569 # (actually we leave an empty line to preserve line numbers).
21570 if test "x$srcdir" = x.; then
21571 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21572 s/:*\$(srcdir):*/:/;
21573 s/:*\${srcdir}:*/:/;
21575 s/^\([^=]*=[ ]*\):*/\1/;
21581 DEFS=-DHAVE_CONFIG_H
21585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21586 # 1. Remove the extension, and $U if already installed.
21587 ac_i=`echo "$ac_i" |
21588 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21590 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21591 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21593 LIBOBJS=$ac_libobjs
21595 LTLIBOBJS=$ac_ltlibobjs
21599 : ${CONFIG_STATUS=./config.status}
21600 ac_clean_files_save=$ac_clean_files
21601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21604 cat >$CONFIG_STATUS <<_ACEOF
21606 # Generated by $as_me.
21607 # Run this file to recreate the current configuration.
21608 # Compiler output produced by configure, useful for debugging
21609 # configure, is in config.log if it exists.
21612 ac_cs_recheck=false
21614 SHELL=\${CONFIG_SHELL-$SHELL}
21617 cat >>$CONFIG_STATUS <<\_ACEOF
21618 ## --------------------- ##
21619 ## M4sh Initialization. ##
21620 ## --------------------- ##
21622 # Be Bourne compatible
21623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21627 # is contrary to our usage. Disable this feature.
21628 alias -g '${1+"$@"}'='"$@"'
21629 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21632 DUALCASE=1; export DUALCASE # for MKS sh
21634 # Support unset when possible.
21635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21642 # Work around bugs in pre-3.0 UWIN ksh.
21643 $as_unset ENV MAIL MAILPATH
21650 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21651 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21652 LC_TELEPHONE LC_TIME
21654 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21655 eval $as_var=C; export $as_var
21661 # Required to use basename.
21662 if expr a : '\(a\)' >/dev/null 2>&1; then
21668 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21669 as_basename=basename
21675 # Name of the executable.
21676 as_me=`$as_basename "$0" ||
21677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21678 X"$0" : 'X\(//\)$' \| \
21679 X"$0" : 'X\(/\)$' \| \
21680 . : '\(.\)' 2>/dev/null ||
21682 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21683 /^X\/\(\/\/\)$/{ s//\1/; q; }
21684 /^X\/\(\/\).*/{ s//\1/; q; }
21688 # PATH needs CR, and LINENO needs CR and PATH.
21689 # Avoid depending upon Character Ranges.
21690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21693 as_cr_digits='0123456789'
21694 as_cr_alnum=$as_cr_Letters$as_cr_digits
21696 # The user is always right.
21697 if test "${PATH_SEPARATOR+set}" != set; then
21698 echo "#! /bin/sh" >conf$$.sh
21699 echo "exit 0" >>conf$$.sh
21701 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21710 as_lineno_1=$LINENO
21711 as_lineno_2=$LINENO
21712 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21713 test "x$as_lineno_1" != "x$as_lineno_2" &&
21714 test "x$as_lineno_3" = "x$as_lineno_2" || {
21715 # Find who we are. Look in the path if we contain no path at all
21718 *[\\/]* ) as_myself=$0 ;;
21719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21720 for as_dir in $PATH
21723 test -z "$as_dir" && as_dir=.
21724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21729 # We did not find ourselves, most probably we were run as `sh COMMAND'
21730 # in which case we are not to be found in the path.
21731 if test "x$as_myself" = x; then
21734 if test ! -f "$as_myself"; then
21735 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21736 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21737 { (exit 1); exit 1; }; }
21739 case $CONFIG_SHELL in
21741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21742 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21745 test -z "$as_dir" && as_dir=.
21746 for as_base in sh bash ksh sh5; do
21749 if ("$as_dir/$as_base" -c '
21750 as_lineno_1=$LINENO
21751 as_lineno_2=$LINENO
21752 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21753 test "x$as_lineno_1" != "x$as_lineno_2" &&
21754 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21755 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21756 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21757 CONFIG_SHELL=$as_dir/$as_base
21758 export CONFIG_SHELL
21759 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21767 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21768 # uniformly replaced by the line number. The first 'sed' inserts a
21769 # line-number line before each line; the second 'sed' does the real
21770 # work. The second script uses 'N' to pair each line-number line
21771 # with the numbered line, and appends trailing '-' during
21772 # substitution so that $LINENO is not a special case at line end.
21773 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21774 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21775 sed '=' <$as_myself |
21780 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21783 s,^['$as_cr_digits']*\n,,
21784 ' >$as_me.lineno &&
21785 chmod +x $as_me.lineno ||
21786 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21787 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21788 { (exit 1); exit 1; }; }
21790 # Don't try to exec as it changes $[0], causing all sort of problems
21791 # (the dirname of $[0] is not the place where we might find the
21792 # original and so on. Autoconf is especially sensible to this).
21794 # Exit status is that of the last command.
21799 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21800 *c*,-n*) ECHO_N= ECHO_C='
21802 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21803 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21806 if expr a : '\(a\)' >/dev/null 2>&1; then
21812 rm -f conf$$ conf$$.exe conf$$.file
21814 if ln -s conf$$.file conf$$ 2>/dev/null; then
21815 # We could just check for DJGPP; but this test a) works b) is more generic
21816 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21817 if test -f conf$$.exe; then
21818 # Don't use ln at all; we don't have any links
21823 elif ln conf$$.file conf$$ 2>/dev/null; then
21828 rm -f conf$$ conf$$.exe conf$$.file
21830 if mkdir -p . 2>/dev/null; then
21833 test -d ./-p && rmdir ./-p
21837 as_executable_p="test -f"
21839 # Sed expression to map a string onto a valid CPP name.
21840 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21842 # Sed expression to map a string onto a valid variable name.
21843 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21847 # We need space, tab and new line, in precisely that order.
21857 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21858 # report actual input values of CONFIG_FILES etc. instead of their
21859 # values after options handling. Logging --version etc. is OK.
21863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21864 ## Running $as_me. ##
21869 This file was extended by $as_me, which was
21870 generated by GNU Autoconf 2.59. Invocation command line was
21872 CONFIG_FILES = $CONFIG_FILES
21873 CONFIG_HEADERS = $CONFIG_HEADERS
21874 CONFIG_LINKS = $CONFIG_LINKS
21875 CONFIG_COMMANDS = $CONFIG_COMMANDS
21879 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21883 # Files that config.status was made for.
21884 if test -n "$ac_config_files"; then
21885 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21888 if test -n "$ac_config_headers"; then
21889 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21892 if test -n "$ac_config_links"; then
21893 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21896 if test -n "$ac_config_commands"; then
21897 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21900 cat >>$CONFIG_STATUS <<\_ACEOF
21903 \`$as_me' instantiates files from templates according to the
21904 current configuration.
21906 Usage: $0 [OPTIONS] [FILE]...
21908 -h, --help print this help, then exit
21909 -V, --version print version number, then exit
21910 -q, --quiet do not print progress messages
21911 -d, --debug don't remove temporary files
21912 --recheck update $as_me by reconfiguring in the same conditions
21913 --file=FILE[:TEMPLATE]
21914 instantiate the configuration file FILE
21915 --header=FILE[:TEMPLATE]
21916 instantiate the configuration header FILE
21918 Configuration files:
21921 Configuration headers:
21924 Configuration commands:
21927 Report bugs to <bug-autoconf@gnu.org>."
21930 cat >>$CONFIG_STATUS <<_ACEOF
21933 configured by $0, generated by GNU Autoconf 2.59,
21934 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21936 Copyright (C) 2003 Free Software Foundation, Inc.
21937 This config.status script is free software; the Free Software Foundation
21938 gives unlimited permission to copy, distribute and modify it."
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21944 # If no file are specified by the user, then we need to provide default
21945 # value. By we need to know if files were specified by the user.
21951 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21952 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21960 *) # This is not an option, so the user has probably given explicit
21963 ac_need_defaults=false;;
21967 # Handling of the options.
21969 cat >>$CONFIG_STATUS <<\_ACEOF
21970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21972 --version | --vers* | -V )
21973 echo "$ac_cs_version"; exit 0 ;;
21975 # Conflict between --help and --header
21976 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21977 Try \`$0 --help' for more information." >&5
21978 echo "$as_me: error: ambiguous option: $1
21979 Try \`$0 --help' for more information." >&2;}
21980 { (exit 1); exit 1; }; };;
21981 --help | --hel | -h )
21982 echo "$ac_cs_usage"; exit 0 ;;
21983 --debug | --d* | -d )
21985 --file | --fil | --fi | --f )
21987 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21988 ac_need_defaults=false;;
21989 --header | --heade | --head | --hea )
21991 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21992 ac_need_defaults=false;;
21993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21997 # This is an error.
21998 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21999 Try \`$0 --help' for more information." >&5
22000 echo "$as_me: error: unrecognized option: $1
22001 Try \`$0 --help' for more information." >&2;}
22002 { (exit 1); exit 1; }; } ;;
22004 *) ac_config_targets="$ac_config_targets $1" ;;
22010 ac_configure_extra_args=
22012 if $ac_cs_silent; then
22014 ac_configure_extra_args="$ac_configure_extra_args --silent"
22018 cat >>$CONFIG_STATUS <<_ACEOF
22019 if \$ac_cs_recheck; then
22020 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22021 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22030 cat >>$CONFIG_STATUS <<\_ACEOF
22031 for ac_config_target in $ac_config_targets
22033 case "$ac_config_target" in
22034 # Handling of arguments.
22035 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22036 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22037 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
22038 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
22039 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
22040 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
22041 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
22042 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
22043 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
22044 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22045 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22046 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22047 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22048 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22049 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22050 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22051 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22052 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22053 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22054 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22055 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22056 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22057 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22058 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22059 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22060 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22061 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22062 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22063 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22064 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22065 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22066 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22067 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22068 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22069 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22070 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22071 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22072 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22073 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22074 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22075 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22076 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22077 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22078 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22079 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22080 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22081 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22082 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22083 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22084 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22085 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22086 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22087 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22088 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22089 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22090 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22091 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22092 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22093 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22094 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22095 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22096 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22097 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22098 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22099 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22100 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22101 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22102 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22103 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22104 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22105 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22106 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22107 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22108 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22109 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22110 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22111 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22112 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22113 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22114 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22115 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22116 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22117 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22118 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22119 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22120 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22121 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22122 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22123 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22124 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22125 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22126 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22127 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22128 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22129 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22130 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22131 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22132 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22133 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22134 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22135 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22136 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22137 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22138 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22139 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22140 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22141 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22142 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22145 { (exit 1); exit 1; }; };;
22149 # If the user did not use the arguments to specify the items to instantiate,
22150 # then the envvar interface is used. Set only those that are not.
22151 # We use the long form for the default assignment because of an extremely
22152 # bizarre bug on SunOS 4.1.3.
22153 if $ac_need_defaults; then
22154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22156 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22159 # Have a temporary directory for convenience. Make it in the build tree
22160 # simply because there is no reason to put it here, and in addition,
22161 # creating and moving files from /tmp can sometimes cause problems.
22162 # Create a temporary directory, and hook for its removal unless debugging.
22165 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22166 trap '{ (exit 1); exit 1; }' 1 2 13 15
22169 # Create a (secure) tmp directory for tmp files.
22172 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22173 test -n "$tmp" && test -d "$tmp"
22176 tmp=./confstat$$-$RANDOM
22177 (umask 077 && mkdir $tmp)
22180 echo "$me: cannot create a temporary directory in ." >&2
22181 { (exit 1); exit 1; }
22186 cat >>$CONFIG_STATUS <<_ACEOF
22189 # CONFIG_FILES section.
22192 # No need to generate the scripts if there are no CONFIG_FILES.
22193 # This happens for instance when ./config.status config.h
22194 if test -n "\$CONFIG_FILES"; then
22195 # Protect against being on the right side of a sed subst in config.status.
22196 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22197 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22198 s,@SHELL@,$SHELL,;t t
22199 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22200 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22201 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22202 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22203 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22204 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22205 s,@exec_prefix@,$exec_prefix,;t t
22206 s,@prefix@,$prefix,;t t
22207 s,@program_transform_name@,$program_transform_name,;t t
22208 s,@bindir@,$bindir,;t t
22209 s,@sbindir@,$sbindir,;t t
22210 s,@libexecdir@,$libexecdir,;t t
22211 s,@datadir@,$datadir,;t t
22212 s,@sysconfdir@,$sysconfdir,;t t
22213 s,@sharedstatedir@,$sharedstatedir,;t t
22214 s,@localstatedir@,$localstatedir,;t t
22215 s,@libdir@,$libdir,;t t
22216 s,@includedir@,$includedir,;t t
22217 s,@oldincludedir@,$oldincludedir,;t t
22218 s,@infodir@,$infodir,;t t
22219 s,@mandir@,$mandir,;t t
22220 s,@build_alias@,$build_alias,;t t
22221 s,@host_alias@,$host_alias,;t t
22222 s,@target_alias@,$target_alias,;t t
22223 s,@DEFS@,$DEFS,;t t
22224 s,@ECHO_C@,$ECHO_C,;t t
22225 s,@ECHO_N@,$ECHO_N,;t t
22226 s,@ECHO_T@,$ECHO_T,;t t
22227 s,@LIBS@,$LIBS,;t t
22228 s,@BUILD_DIR@,$BUILD_DIR,;t t
22229 s,@TRUEPRG@,$TRUEPRG,;t t
22230 s,@FALSEPRG@,$FALSEPRG,;t t
22231 s,@VERSION@,$VERSION,;t t
22232 s,@DATE@,$DATE,;t t
22233 s,@LSMDATE@,$LSMDATE,;t t
22235 s,@CFLAGS@,$CFLAGS,;t t
22236 s,@LDFLAGS@,$LDFLAGS,;t t
22237 s,@CPPFLAGS@,$CPPFLAGS,;t t
22238 s,@ac_ct_CC@,$ac_ct_CC,;t t
22239 s,@EXEEXT@,$EXEEXT,;t t
22240 s,@OBJEXT@,$OBJEXT,;t t
22242 s,@CXXFLAGS@,$CXXFLAGS,;t t
22243 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22245 s,@EGREP@,$EGREP,;t t
22246 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22247 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22248 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22249 s,@RANLIB@,$RANLIB,;t t
22250 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22256 s,@ECHO@,$ECHO,;t t
22260 s,@OPENSSL@,$OPENSSL,;t t
22262 s,@MKISOFS@,$MKISOFS,;t t
22263 s,@PYTHON@,$PYTHON,;t t
22264 s,@GROWISOFS@,$GROWISOFS,;t t
22265 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22266 s,@PKGCONFIG@,$PKGCONFIG,;t t
22267 s,@WXCONFIG@,$WXCONFIG,;t t
22268 s,@CDRECORD@,$CDRECORD,;t t
22269 s,@PIDOF@,$PIDOF,;t t
22270 s,@ARFLAGS@,$ARFLAGS,;t t
22271 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22272 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22273 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22274 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22275 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22276 s,@build@,$build,;t t
22277 s,@build_cpu@,$build_cpu,;t t
22278 s,@build_vendor@,$build_vendor,;t t
22279 s,@build_os@,$build_os,;t t
22280 s,@host@,$host,;t t
22281 s,@host_cpu@,$host_cpu,;t t
22282 s,@host_vendor@,$host_vendor,;t t
22283 s,@host_os@,$host_os,;t t
22284 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22285 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22286 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22287 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22288 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22289 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22290 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22291 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22292 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22293 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22294 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22295 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22296 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22297 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22298 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22299 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22300 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22301 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22302 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22303 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22304 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22305 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22306 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22307 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22308 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22309 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22310 s,@MSGFMT@,$MSGFMT,;t t
22311 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22312 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22313 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22314 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22315 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22316 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22317 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22318 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22319 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22320 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22321 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22322 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22323 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22324 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22325 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22326 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22327 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22328 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22329 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22330 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22331 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22332 s,@GNOME_DIR@,$GNOME_DIR,;t t
22333 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22334 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22335 s,@WX_DIR@,$WX_DIR,;t t
22336 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22337 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22338 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22339 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22340 s,@STATIC_FD@,$STATIC_FD,;t t
22341 s,@STATIC_SD@,$STATIC_SD,;t t
22342 s,@STATIC_DIR@,$STATIC_DIR,;t t
22343 s,@STATIC_CONS@,$STATIC_CONS,;t t
22344 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22345 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22346 s,@ALL_DIRS@,$ALL_DIRS,;t t
22347 s,@CONS_INC@,$CONS_INC,;t t
22348 s,@CONS_OBJ@,$CONS_OBJ,;t t
22349 s,@CONS_SRC@,$CONS_SRC,;t t
22350 s,@CONS_LIBS@,$CONS_LIBS,;t t
22351 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22352 s,@READLINE_SRC@,$READLINE_SRC,;t t
22353 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22354 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22355 s,@CDSTL@,$CDSTL,;t t
22356 s,@working_dir@,$working_dir,;t t
22357 s,@scriptdir@,$scriptdir,;t t
22358 s,@dump_email@,$dump_email,;t t
22359 s,@job_email@,$job_email,;t t
22360 s,@smtp_host@,$smtp_host,;t t
22361 s,@piddir@,$piddir,;t t
22362 s,@subsysdir@,$subsysdir,;t t
22363 s,@baseport@,$baseport,;t t
22364 s,@dir_port@,$dir_port,;t t
22365 s,@fd_port@,$fd_port,;t t
22366 s,@sd_port@,$sd_port,;t t
22367 s,@dir_password@,$dir_password,;t t
22368 s,@fd_password@,$fd_password,;t t
22369 s,@sd_password@,$sd_password,;t t
22370 s,@mon_dir_password@,$mon_dir_password,;t t
22371 s,@mon_fd_password@,$mon_fd_password,;t t
22372 s,@mon_sd_password@,$mon_sd_password,;t t
22373 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22374 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22375 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22376 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22377 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22378 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22379 s,@dir_user@,$dir_user,;t t
22380 s,@dir_group@,$dir_group,;t t
22381 s,@sd_user@,$sd_user,;t t
22382 s,@sd_group@,$sd_group,;t t
22383 s,@fd_user@,$fd_user,;t t
22384 s,@fd_group@,$fd_group,;t t
22385 s,@SBINPERM@,$SBINPERM,;t t
22386 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22387 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22388 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22389 s,@cats@,$cats,;t t
22390 s,@DB_NAME@,$DB_NAME,;t t
22391 s,@GETCONF@,$GETCONF,;t t
22392 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22393 s,@X_CFLAGS@,$X_CFLAGS,;t t
22394 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22395 s,@X_LIBS@,$X_LIBS,;t t
22396 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22397 s,@LIBOBJS@,$LIBOBJS,;t t
22398 s,@ALLOCA@,$ALLOCA,;t t
22399 s,@FDLIBS@,$FDLIBS,;t t
22400 s,@DEBUG@,$DEBUG,;t t
22401 s,@DINCLUDE@,$DINCLUDE,;t t
22402 s,@DLIB@,$DLIB,;t t
22403 s,@DB_LIBS@,$DB_LIBS,;t t
22404 s,@WCFLAGS@,$WCFLAGS,;t t
22405 s,@WLDFLAGS@,$WLDFLAGS,;t t
22406 s,@OBJLIST@,$OBJLIST,;t t
22407 s,@hostname@,$hostname,;t t
22408 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22409 s,@PSCMD@,$PSCMD,;t t
22410 s,@WIN32@,$WIN32,;t t
22411 s,@MACOSX@,$MACOSX,;t t
22412 s,@DISTNAME@,$DISTNAME,;t t
22413 s,@DISTVER@,$DISTVER,;t t
22414 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22415 /@MCOMMON@/r $MCOMMON
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22422 # Split the substitutions into bite-sized pieces for seds with
22423 # small command number limits, like on Digital OSF/1 and HP-UX.
22424 ac_max_sed_lines=48
22425 ac_sed_frag=1 # Number of current file.
22426 ac_beg=1 # First line for current file.
22427 ac_end=$ac_max_sed_lines # Line after last line for current file.
22430 while $ac_more_lines; do
22431 if test $ac_beg -gt 1; then
22432 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22434 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22436 if test ! -s $tmp/subs.frag; then
22437 ac_more_lines=false
22439 # The purpose of the label and of the branching condition is to
22440 # speed up the sed processing (if there are no `@' at all, there
22441 # is no need to browse any of the substitutions).
22442 # These are the two extra sed commands mentioned above.
22444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22445 if test -z "$ac_sed_cmds"; then
22446 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22448 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22450 ac_sed_frag=`expr $ac_sed_frag + 1`
22452 ac_end=`expr $ac_end + $ac_max_sed_lines`
22455 if test -z "$ac_sed_cmds"; then
22458 fi # test -n "$CONFIG_FILES"
22461 cat >>$CONFIG_STATUS <<\_ACEOF
22462 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22465 - | *:- | *:-:* ) # input from stdin
22467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22471 * ) ac_file_in=$ac_file.in ;;
22474 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22475 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22477 X"$ac_file" : 'X\(//\)[^/]' \| \
22478 X"$ac_file" : 'X\(//\)$' \| \
22479 X"$ac_file" : 'X\(/\)' \| \
22480 . : '\(.\)' 2>/dev/null ||
22482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22484 /^X\(\/\/\)$/{ s//\1/; q; }
22485 /^X\(\/\).*/{ s//\1/; q; }
22487 { if $as_mkdir_p; then
22492 while test ! -d "$as_dir"; do
22493 as_dirs="$as_dir $as_dirs"
22494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22496 X"$as_dir" : 'X\(//\)[^/]' \| \
22497 X"$as_dir" : 'X\(//\)$' \| \
22498 X"$as_dir" : 'X\(/\)' \| \
22499 . : '\(.\)' 2>/dev/null ||
22501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22503 /^X\(\/\/\)$/{ s//\1/; q; }
22504 /^X\(\/\).*/{ s//\1/; q; }
22507 test ! -n "$as_dirs" || mkdir $as_dirs
22508 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22510 { (exit 1); exit 1; }; }; }
22514 if test "$ac_dir" != .; then
22515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22516 # A "../" for each directory in $ac_dir_suffix.
22517 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22519 ac_dir_suffix= ac_top_builddir=
22523 .) # No --srcdir option. We are building in place.
22525 if test -z "$ac_top_builddir"; then
22528 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22530 [\\/]* | ?:[\\/]* ) # Absolute path.
22531 ac_srcdir=$srcdir$ac_dir_suffix;
22532 ac_top_srcdir=$srcdir ;;
22533 *) # Relative path.
22534 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22535 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22538 # Do not use `cd foo && pwd` to compute absolute paths, because
22539 # the directories may not exist.
22541 .) ac_abs_builddir="$ac_dir";;
22544 .) ac_abs_builddir=`pwd`;;
22545 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22546 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22549 case $ac_abs_builddir in
22550 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22552 case ${ac_top_builddir}. in
22553 .) ac_abs_top_builddir=$ac_abs_builddir;;
22554 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22555 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22558 case $ac_abs_builddir in
22559 .) ac_abs_srcdir=$ac_srcdir;;
22562 .) ac_abs_srcdir=$ac_abs_builddir;;
22563 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22564 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22567 case $ac_abs_builddir in
22568 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22570 case $ac_top_srcdir in
22571 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22572 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22573 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22580 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22583 if test x"$ac_file" != x-; then
22584 { echo "$as_me:$LINENO: creating $ac_file" >&5
22585 echo "$as_me: creating $ac_file" >&6;}
22588 # Let's still pretend it is `configure' which instantiates (i.e., don't
22589 # use $as_me), people would be surprised to read:
22590 # /* config.h. Generated by config.status. */
22591 if test x"$ac_file" = x-; then
22594 configure_input="$ac_file. "
22596 configure_input=$configure_input"Generated from `echo $ac_file_in |
22597 sed 's,.*/,,'` by configure."
22599 # First look for the input files in the build tree, otherwise in the
22601 ac_file_inputs=`IFS=:
22602 for f in $ac_file_in; do
22604 -) echo $tmp/stdin ;;
22606 # Absolute (can't be DOS-style, as IFS=:)
22607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22608 echo "$as_me: error: cannot find input file: $f" >&2;}
22609 { (exit 1); exit 1; }; }
22612 if test -f "$f"; then
22615 elif test -f "$srcdir/$f"; then
22620 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22621 echo "$as_me: error: cannot find input file: $f" >&2;}
22622 { (exit 1); exit 1; }; }
22625 done` || { (exit 1); exit 1; }
22627 cat >>$CONFIG_STATUS <<_ACEOF
22631 cat >>$CONFIG_STATUS <<\_ACEOF
22633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22634 s,@configure_input@,$configure_input,;t t
22635 s,@srcdir@,$ac_srcdir,;t t
22636 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22637 s,@top_srcdir@,$ac_top_srcdir,;t t
22638 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22639 s,@builddir@,$ac_builddir,;t t
22640 s,@abs_builddir@,$ac_abs_builddir,;t t
22641 s,@top_builddir@,$ac_top_builddir,;t t
22642 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22643 s,@INSTALL@,$ac_INSTALL,;t t
22644 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22646 if test x"$ac_file" != x-; then
22647 mv $tmp/out $ac_file
22655 cat >>$CONFIG_STATUS <<\_ACEOF
22658 # CONFIG_HEADER section.
22661 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22662 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22664 # ac_d sets the value in "#define NAME VALUE" lines.
22665 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22666 ac_dB='[ ].*$,\1#\2'
22669 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22670 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22671 ac_uB='$,\1#\2define\3'
22675 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22678 - | *:- | *:-:* ) # input from stdin
22680 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22682 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22684 * ) ac_file_in=$ac_file.in ;;
22687 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22688 echo "$as_me: creating $ac_file" >&6;}
22690 # First look for the input files in the build tree, otherwise in the
22692 ac_file_inputs=`IFS=:
22693 for f in $ac_file_in; do
22695 -) echo $tmp/stdin ;;
22697 # Absolute (can't be DOS-style, as IFS=:)
22698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22699 echo "$as_me: error: cannot find input file: $f" >&2;}
22700 { (exit 1); exit 1; }; }
22701 # Do quote $f, to prevent DOS paths from being IFS'd.
22704 if test -f "$f"; then
22707 elif test -f "$srcdir/$f"; then
22712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22713 echo "$as_me: error: cannot find input file: $f" >&2;}
22714 { (exit 1); exit 1; }; }
22717 done` || { (exit 1); exit 1; }
22718 # Remove the trailing spaces.
22719 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22723 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22724 # `conftest.undefs', that substitutes the proper values into
22725 # config.h.in to produce config.h. The first handles `#define'
22726 # templates, and the second `#undef' templates.
22727 # And first: Protect against being on the right side of a sed subst in
22728 # config.status. Protect against being in an unquoted here document
22729 # in config.status.
22730 rm -f conftest.defines conftest.undefs
22731 # Using a here document instead of a string reduces the quoting nightmare.
22732 # Putting comments in sed scripts is not portable.
22734 # `end' is used to avoid that the second main sed command (meant for
22735 # 0-ary CPP macros) applies to n-ary macro definitions.
22736 # See the Autoconf documentation for `clear'.
22737 cat >confdef2sed.sed <<\_ACEOF
22742 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22744 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22747 # If some macros were called several times there might be several times
22748 # the same #defines, which is useless. Nevertheless, we may not want to
22749 # sort them, since we want the *last* AC-DEFINE to be honored.
22750 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22751 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22752 rm -f confdef2sed.sed
22754 # This sed command replaces #undef with comments. This is necessary, for
22755 # example, in the case of _POSIX_SOURCE, which is predefined and required
22756 # on some systems where configure will not decide to define it.
22757 cat >>conftest.undefs <<\_ACEOF
22758 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22761 # Break up conftest.defines because some shells have a limit on the size
22762 # of here documents, and old seds have small limits too (100 cmds).
22763 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22764 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22765 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22766 echo ' :' >>$CONFIG_STATUS
22767 rm -f conftest.tail
22768 while grep . conftest.defines >/dev/null
22770 # Write a limited-size here document to $tmp/defines.sed.
22771 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22772 # Speed up: don't consider the non `#define' lines.
22773 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22774 # Work around the forget-to-reset-the-flag bug.
22775 echo 't clr' >>$CONFIG_STATUS
22776 echo ': clr' >>$CONFIG_STATUS
22777 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22779 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22781 mv $tmp/out $tmp/in
22783 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22784 rm -f conftest.defines
22785 mv conftest.tail conftest.defines
22787 rm -f conftest.defines
22788 echo ' fi # grep' >>$CONFIG_STATUS
22789 echo >>$CONFIG_STATUS
22791 # Break up conftest.undefs because some shells have a limit on the size
22792 # of here documents, and old seds have small limits too (100 cmds).
22793 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22794 rm -f conftest.tail
22795 while grep . conftest.undefs >/dev/null
22797 # Write a limited-size here document to $tmp/undefs.sed.
22798 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22799 # Speed up: don't consider the non `#undef'
22800 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22801 # Work around the forget-to-reset-the-flag bug.
22802 echo 't clr' >>$CONFIG_STATUS
22803 echo ': clr' >>$CONFIG_STATUS
22804 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22806 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22808 mv $tmp/out $tmp/in
22810 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22811 rm -f conftest.undefs
22812 mv conftest.tail conftest.undefs
22814 rm -f conftest.undefs
22816 cat >>$CONFIG_STATUS <<\_ACEOF
22817 # Let's still pretend it is `configure' which instantiates (i.e., don't
22818 # use $as_me), people would be surprised to read:
22819 # /* config.h. Generated by config.status. */
22820 if test x"$ac_file" = x-; then
22821 echo "/* Generated by configure. */" >$tmp/config.h
22823 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22825 cat $tmp/in >>$tmp/config.h
22827 if test x"$ac_file" != x-; then
22828 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22829 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22830 echo "$as_me: $ac_file is unchanged" >&6;}
22832 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22834 X"$ac_file" : 'X\(//\)[^/]' \| \
22835 X"$ac_file" : 'X\(//\)$' \| \
22836 X"$ac_file" : 'X\(/\)' \| \
22837 . : '\(.\)' 2>/dev/null ||
22839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22841 /^X\(\/\/\)$/{ s//\1/; q; }
22842 /^X\(\/\).*/{ s//\1/; q; }
22844 { if $as_mkdir_p; then
22849 while test ! -d "$as_dir"; do
22850 as_dirs="$as_dir $as_dirs"
22851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22853 X"$as_dir" : 'X\(//\)[^/]' \| \
22854 X"$as_dir" : 'X\(//\)$' \| \
22855 X"$as_dir" : 'X\(/\)' \| \
22856 . : '\(.\)' 2>/dev/null ||
22858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22860 /^X\(\/\/\)$/{ s//\1/; q; }
22861 /^X\(\/\).*/{ s//\1/; q; }
22864 test ! -n "$as_dirs" || mkdir $as_dirs
22865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22866 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22867 { (exit 1); exit 1; }; }; }
22870 mv $tmp/config.h $ac_file
22874 rm -f $tmp/config.h
22878 cat >>$CONFIG_STATUS <<\_ACEOF
22881 # CONFIG_COMMANDS section.
22883 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22884 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22885 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22886 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22888 X"$ac_dest" : 'X\(//\)[^/]' \| \
22889 X"$ac_dest" : 'X\(//\)$' \| \
22890 X"$ac_dest" : 'X\(/\)' \| \
22891 . : '\(.\)' 2>/dev/null ||
22893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22895 /^X\(\/\/\)$/{ s//\1/; q; }
22896 /^X\(\/\).*/{ s//\1/; q; }
22898 { if $as_mkdir_p; then
22903 while test ! -d "$as_dir"; do
22904 as_dirs="$as_dir $as_dirs"
22905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22907 X"$as_dir" : 'X\(//\)[^/]' \| \
22908 X"$as_dir" : 'X\(//\)$' \| \
22909 X"$as_dir" : 'X\(/\)' \| \
22910 . : '\(.\)' 2>/dev/null ||
22912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22914 /^X\(\/\/\)$/{ s//\1/; q; }
22915 /^X\(\/\).*/{ s//\1/; q; }
22918 test ! -n "$as_dirs" || mkdir $as_dirs
22919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22921 { (exit 1); exit 1; }; }; }
22925 if test "$ac_dir" != .; then
22926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22927 # A "../" for each directory in $ac_dir_suffix.
22928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22930 ac_dir_suffix= ac_top_builddir=
22934 .) # No --srcdir option. We are building in place.
22936 if test -z "$ac_top_builddir"; then
22939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22941 [\\/]* | ?:[\\/]* ) # Absolute path.
22942 ac_srcdir=$srcdir$ac_dir_suffix;
22943 ac_top_srcdir=$srcdir ;;
22944 *) # Relative path.
22945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22949 # Do not use `cd foo && pwd` to compute absolute paths, because
22950 # the directories may not exist.
22952 .) ac_abs_builddir="$ac_dir";;
22955 .) ac_abs_builddir=`pwd`;;
22956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22960 case $ac_abs_builddir in
22961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22963 case ${ac_top_builddir}. in
22964 .) ac_abs_top_builddir=$ac_abs_builddir;;
22965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22969 case $ac_abs_builddir in
22970 .) ac_abs_srcdir=$ac_srcdir;;
22973 .) ac_abs_srcdir=$ac_abs_builddir;;
22974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22978 case $ac_abs_builddir in
22979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22981 case $ac_top_srcdir in
22982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22989 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22990 echo "$as_me: executing $ac_dest commands" >&6;}
22992 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22998 cat >>$CONFIG_STATUS <<\_ACEOF
23000 { (exit 0); exit 0; }
23002 chmod +x $CONFIG_STATUS
23003 ac_clean_files=$ac_clean_files_save
23006 # configure is writing to config.log, and then calls config.status.
23007 # config.status does its own redirection, appending to config.log.
23008 # Unfortunately, on DOS this fails, as config.log is still kept open
23009 # by configure, so config.status won't be able to write to it; its
23010 # output is simply discarded. So we exec the FD to /dev/null,
23011 # effectively closing config.log, so it can be properly (re)opened and
23012 # appended to by config.status. When coming back to configure, we
23013 # need to make the FD available again.
23014 if test "$no_create" != yes; then
23016 ac_config_status_args=
23017 test "$silent" = yes &&
23018 ac_config_status_args="$ac_config_status_args --quiet"
23020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23023 # would make configure fail if this is the last instruction.
23024 $ac_cs_success || { (exit 1); exit 1; }
23029 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23030 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23035 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23036 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23038 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23039 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23041 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23042 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23044 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23045 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23047 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23048 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23050 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23051 chmod 755 $c/sqlite
23054 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23055 largefile_support="yes"
23059 # A whole lot of hand springs to get the compiler version.
23060 # This is because gcc changed the output in version 3.0
23062 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23063 if test "x${CCVERSION}" = "x" ; then
23064 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23066 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23067 if test x"${CXXVERSION}" = x ; then
23068 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23071 if test "x${subsysdir}" = "x${sbindir}" ; then
23074 echo "You have set --sbindir and --with-subsys-dir"
23075 echo " both equal to: ${subsysdir} "
23076 echo " This is not permitted. Please reconfigure."
23078 echo "Aborting configuration ..."
23084 if test "x${db_name}" = "xInternal" ; then
23087 echo "You have not specified either --enable-client-only or one of the"
23088 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23089 echo " This is not permitted. Please reconfigure."
23091 echo "Aborting the configuration ..."
23098 Configuration on `date`:
23100 Host: $host -- ${DISTNAME} ${DISTVER}
23101 Bacula version: ${VERSION} (${DATE})
23102 Source code location: ${srcdir}
23103 Install binaries: ${sbindir}
23104 Install config files: ${sysconfdir}
23105 Scripts directory: ${scriptdir}
23106 Working directory: ${working_dir}
23107 PID directory: ${piddir}
23108 Subsys directory: ${subsysdir}
23109 C Compiler: ${CC} ${CCVERSION}
23110 C++ Compiler: ${CXX} ${CXXVERSION}
23111 Compiler flags: ${WCFLAGS} ${CFLAGS}
23112 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23114 Statically Linked Tools: ${support_static_tools}
23115 Statically Linked FD: ${support_static_fd}
23116 Statically Linked SD: ${support_static_sd}
23117 Statically Linked DIR: ${support_static_dir}
23118 Statically Linked CONS: ${support_static_cons}
23119 Database type: ${db_name}
23120 Database lib: ${DB_LIBS}
23122 Job Output Email: ${job_email}
23123 Traceback Email: ${dump_email}
23124 SMTP Host Address: ${smtp_host}
23126 Director Port: ${dir_port}
23127 File daemon Port: ${fd_port}
23128 Storage daemon Port: ${sd_port}
23130 Director User: ${dir_user}
23131 Director Group: ${dir_group}
23132 Storage Daemon User: ${sd_user}
23133 Storage DaemonGroup: ${sd_group}
23134 File Daemon User: ${fd_user}
23135 File Daemon Group: ${fd_group}
23137 SQL binaries Directory ${SQL_BINDIR}
23139 Large file support: $largefile_support
23140 Bacula conio support: ${got_conio} ${CONS_LIBS}
23141 readline support: ${got_readline} ${PRTREADLINE_SRC}
23142 TCP Wrappers support: ${TCPW_MSG}
23143 ZLIB support: ${have_zlib}
23144 enable-smartalloc: ${support_smartalloc}
23145 enable-gnome: ${support_gnome} ${gnome_version}
23146 enable-wx-console: ${support_wx_console}
23147 enable-tray-monitor: ${support_tray_monitor}
23148 client-only: ${build_client_only}
23149 ACL support: ${have_acl}
23150 Python support: ${support_python} ${PYTHON_LIBS}
23157 # cweb support: ${got_cweb} ${CWEB_SRC}
23158 # gmp support: ${got_gmp} ${GMP_SRC}