2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 PKGCONFIG WXCONFIG 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 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 working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-smartalloc enable smartalloc debugging support disabled
861 --enable-static-tools enable static tape tools disabled
862 --enable-static-fd enable static File daemon disabled
863 --enable-static-sd enable static Storage daemon disabled
864 --enable-static-dir enable static Director disabled
865 --enable-static-cons enable static Console disabled
866 --enable-client-only build client (File daemon) only disabled
867 --disable-conio disable conio support enabled
869 --disable-readline disable readline support disable
871 --disable-largefile omit support for large files
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnome-includes Specify location of GNOME headers
877 --with-gnome-libs Specify location of GNOME libs
878 --with-gnome Specify prefix for GNOME files
879 --with-readline=DIR specify readline library directory
880 --with-tcp-wrappers=DIR enable tcpwrappers support
881 --with-working-dir=PATH specify path of Bacula working directory
882 --with-scriptdir=PATH specify path of Bacula scripts directory
883 --with-dump-email=EMAIL dump email address
884 --with-job-email=EMAIL job output email address
885 --with-smtp-host=HOST SMTP mail host address
886 --with-pid-dir=PATH specify location of Bacula pid files
887 --with-subsys-dir=PATH specify location of Bacula subsys file
888 --with-baseport=PORT specify base port address for daemons
889 --with-dir-password=PASSWORD specify Director's password
890 --with-fd-password=PASSWORD specify Client's password
891 --with-sd-password=PASSWORD specify Storage daemon's password
892 --with-dir-user=USER specify user for Director daemon
893 --with-dir-group=GROUP specify group for Director daemon
894 --with-sd-user=USER specify user for Storage daemon
895 --with-sd-group=GROUP specify group for Storage daemon
896 --with-fd-user=USER specify user for File daemon
897 --with-fd-group=GROUP specify group for File daemon
898 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
899 base install directory, defaults to /usr/local/pgsql
901 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
902 install directory, default is to search through
903 a number of common places for the MySQL files.
905 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
906 install directory, default is to search through
907 a number of common places for the MySQL files.
909 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
910 install directory, default is to search through
911 a number of common places for the SQLite files.
912 --with-x use the X Window System
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
921 CXX C++ compiler command
922 CXXFLAGS C++ compiler flags
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
931 if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
938 if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 ac_dir_suffix= ac_top_builddir=
947 .) # No --srcdir option. We are building in place.
949 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57. Invocation command line was
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h; then
1173 sed "/^$/d" confdefs.h | sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core core.* *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338 if test -f $ac_dir/install-sh; then
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 elif test -f $ac_dir/install.sh; then
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 elif test -f $ac_dir/shtool; then
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355 { (exit 1); exit 1; }; }
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1369 # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 test -z "$as_dir" && as_dir=.
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1400 if test -n "$TRUEPRG"; then
1401 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1408 test -n "$TRUEPRG" && break
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1412 for ac_prog in false
1414 # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1445 if test -n "$FALSEPRG"; then
1446 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1449 echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1453 test -n "$FALSEPRG" && break
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1460 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 echo "configuring for bacula $VERSION ($DATE)"
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1509 if test -z "$ac_cv_prog_CC"; then
1511 # Extract the first word of "gcc", so it can be a program name with args.
1512 set dummy gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_ac_ct_CC="gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1551 if test -z "$CC"; then
1552 if test -n "$ac_tool_prefix"; then
1553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554 set dummy ${ac_tool_prefix}cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="${ac_tool_prefix}cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1589 if test -z "$ac_cv_prog_CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_ac_ct_CC="cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618 if test -n "$ac_ct_CC"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620 echo "${ECHO_T}$ac_ct_CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1632 if test -z "$CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652 ac_prog_rejected=yes
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test $ac_prog_rejected = yes; then
1663 # We found a bogon in the path, so make sure we never use it.
1664 set dummy $ac_cv_prog_CC
1666 if test $# != 0; then
1667 # We chose a different compiler from the bogus one.
1668 # However, it has the same basename, so the bogon will be chosen
1669 # first if we set CC to just the basename; use the full file name.
1671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1728 if test -z "$CC"; then
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&2;}
1780 { (exit 1); exit 1; }; }
1782 # Provide some information about the compiler.
1783 echo "$as_me:$LINENO:" \
1784 "checking for C compiler version" >&5
1785 ac_compiler=`set X $ac_compile; echo $2`
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787 (eval $ac_compiler --version </dev/null >&5) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792 (eval $ac_compiler -v </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797 (eval $ac_compiler -V </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line $LINENO "configure"
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h. */
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1823 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1824 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827 (eval $ac_link_default) 2>&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; then
1831 # Find the output, starting from the most likely. This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 # b.out is created by i960 compilers.
1839 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 test -f "$ac_file" || continue
1843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1846 # This is the source file.
1849 # We found the default executable, but exeext='' is most
1853 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1854 # FIXME: I believe we export ac_cv_exeext for Libtool,
1855 # but it would be cool to find out if it's true. Does anybody
1856 # maintain Libtool? --akim.
1864 echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&2;}
1871 { (exit 77); exit 77; }; }
1874 ac_exeext=$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_file" >&5
1876 echo "${ECHO_T}$ac_file" >&6
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1883 # If not cross compiling, check that we can run a simple program.
1884 if test "$cross_compiling" != yes; then
1885 if { ac_try='./$ac_file'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; }; then
1893 if test "$cross_compiling" = maybe; then
1896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot run C compiled programs.
1900 If you meant to cross compile, use \`--host'.
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1910 ac_clean_files=$ac_clean_files_save
1911 # Check the compiler produces executables we can run. If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1915 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1916 echo "${ECHO_T}$cross_compiling" >&6
1918 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1921 (eval $ac_link) 2>&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; then
1925 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1926 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1927 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 for ac_file in conftest.exe conftest conftest.*; do
1930 test -f "$ac_file" || continue
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1933 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1947 rm -f conftest$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1949 echo "${ECHO_T}$ac_cv_exeext" >&6
1951 rm -f conftest.$ac_ext
1952 EXEEXT=$ac_cv_exeext
1954 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1956 if test "${ac_cv_objext+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 cat >conftest.$ac_ext <<_ACEOF
1960 #line $LINENO "configure"
1963 cat confdefs.h >>conftest.$ac_ext
1964 cat >>conftest.$ac_ext <<_ACEOF
1965 /* end confdefs.h. */
1975 rm -f conftest.o conftest.obj
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; then
1981 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1989 echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2002 echo "${ECHO_T}$ac_cv_objext" >&6
2003 OBJEXT=$ac_cv_objext
2005 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2006 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h. */
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2048 rm -f conftest.$ac_objext conftest.$ac_ext
2049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS=${CFLAGS+set}
2056 ac_save_CFLAGS=$CFLAGS
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103 CFLAGS=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105 if test "$GCC" = yes; then
2111 if test "$GCC" = yes; then
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 ac_cv_prog_cc_stdc=no
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 #include <sys/types.h>
2134 #include <sys/stat.h>
2135 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2136 struct buf { int x; };
2137 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2138 static char *e (p, i)
2144 static char *f (char * (*g) (char **, int), char **p, ...)
2149 s = g (p, va_arg (v,int));
2153 int test (int i, double x);
2154 struct s1 {int (*f) (int a);};
2155 struct s2 {int (*f) (double a);};
2156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2167 # Don't try gcc -ansi; that turns off useful extensions and
2168 # breaks some systems' header files.
2169 # AIX -qlanglvl=ansi
2170 # Ultrix and OSF/1 -std1
2171 # HP-UX 10.20 and later -Ae
2172 # HP-UX older versions -Aa -D_HPUX_SOURCE
2173 # SVR4 -Xc -D__EXTENSIONS__
2174 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 CC="$ac_save_CC $ac_arg"
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2196 rm -f conftest.$ac_objext
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2203 case "x$ac_cv_prog_cc_stdc" in
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 # Some people use a C++ compiler to compile C. Since we use `exit',
2214 # in C++ we need to declare it. In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 for ac_declaration in \
2236 '#include <stdlib.h>' \
2237 'extern "C" void std::exit (int) throw (); using std::exit;' \
2238 'extern "C" void std::exit (int); using std::exit;' \
2239 'extern "C" void exit (int) throw ();' \
2240 'extern "C" void exit (int);' \
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #line $LINENO "configure"
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.$ac_objext conftest.$ac_ext
2280 cat >conftest.$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2314 rm -f conftest.$ac_objext conftest.$ac_ext
2317 if test -n "$ac_declaration"; then
2318 echo '#ifdef __cplusplus' >>confdefs.h
2319 echo $ac_declaration >>confdefs.h
2320 echo '#endif' >>confdefs.h
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2328 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 ac_cpp='$CXXCPP $CPPFLAGS'
2337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2345 echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347 if test "${ac_cv_prog_CXX+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$CXX"; then
2351 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$CXX"; then
2371 echo "$as_me:$LINENO: result: $CXX" >&5
2372 echo "${ECHO_T}$CXX" >&6
2374 echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2378 test -n "$CXX" && break
2381 if test -z "$CXX"; then
2383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 # Extract the first word of "$ac_prog", so it can be a program name with args.
2386 set dummy $ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$ac_ct_CXX"; then
2393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 ac_cv_prog_ac_ct_CXX="$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2412 if test -n "$ac_ct_CXX"; then
2413 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2414 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2420 test -n "$ac_ct_CXX" && break
2422 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO:" \
2430 "checking for C++ compiler version" >&5
2431 ac_compiler=`set X $ac_compile; echo $2`
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433 (eval $ac_compiler --version </dev/null >&5) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438 (eval $ac_compiler -v </dev/null >&5) 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2443 (eval $ac_compiler -V </dev/null >&5) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2448 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2450 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2491 rm -f conftest.$ac_objext conftest.$ac_ext
2492 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2495 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2496 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2497 GXX=`test $ac_compiler_gnu = yes && echo yes`
2498 ac_test_CXXFLAGS=${CXXFLAGS+set}
2499 ac_save_CXXFLAGS=$CXXFLAGS
2501 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2502 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2503 if test "${ac_cv_prog_cxx_g+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 ac_cv_prog_cxx_g=yes
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2543 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2544 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2545 if test "$ac_test_CXXFLAGS" = set; then
2546 CXXFLAGS=$ac_save_CXXFLAGS
2547 elif test $ac_cv_prog_cxx_g = yes; then
2548 if test "$GXX" = yes; then
2554 if test "$GXX" = yes; then
2560 for ac_declaration in \
2562 '#include <stdlib.h>' \
2563 'extern "C" void std::exit (int) throw (); using std::exit;' \
2564 'extern "C" void std::exit (int); using std::exit;' \
2565 'extern "C" void exit (int) throw ();' \
2566 'extern "C" void exit (int);' \
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2605 rm -f conftest.$ac_objext conftest.$ac_ext
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.$ac_objext conftest.$ac_ext
2643 if test -n "$ac_declaration"; then
2644 echo '#ifdef __cplusplus' >>confdefs.h
2645 echo $ac_declaration >>confdefs.h
2646 echo '#endif' >>confdefs.h
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 if test "x$CC" != xcc; then
2656 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2657 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2660 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 set dummy $CC; ac_cc=`echo $2 |
2663 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2664 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line $LINENO "configure"
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2683 # Make sure it works both with $CC and with simple cc.
2684 # We do the test twice because some compilers refuse to overwrite an
2685 # existing .o file with -o, though they will create one.
2686 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2687 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); };
2698 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2699 if test "x$CC" != xcc; then
2700 # Test first that cc exists at all.
2701 if { ac_try='cc -c conftest.$ac_ext >&5'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2708 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); };
2722 # cc exists but doesn't like -o.
2723 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2728 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2733 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2740 cat >>confdefs.h <<\_ACEOF
2741 #define NO_MINUS_C_MINUS_O 1
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2752 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2753 # On Suns, sometimes $CPP names a directory.
2754 if test -n "$CPP" && test -d "$CPP"; then
2757 if test -z "$CPP"; then
2758 if test "${ac_cv_prog_CPP+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 # Double quotes because CPP needs to be expanded
2762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2765 for ac_c_preproc_warn_flag in '' yes
2767 # Use a header file that comes with gcc, so configuring glibc
2768 # with a fresh cross-compiler works.
2769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2770 # <limits.h> exists even on freestanding compilers.
2771 # On the NeXT, cc -E runs the code through the compiler's parser,
2772 # not just through cpp. "Syntax error" is here to catch this case.
2773 cat >conftest.$ac_ext <<_ACEOF
2774 #line $LINENO "configure"
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2781 # include <limits.h>
2783 # include <assert.h>
2787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null; then
2795 if test -s conftest.err; then
2796 ac_cpp_err=$ac_c_preproc_warn_flag
2803 if test -z "$ac_cpp_err"; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2809 # Broken: fails on valid input.
2812 rm -f conftest.err conftest.$ac_ext
2814 # OK, works on sane cases. Now check whether non-existent headers
2815 # can be detected and how.
2816 cat >conftest.$ac_ext <<_ACEOF
2817 #line $LINENO "configure"
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 #include <ac_nonexistent.h>
2825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828 grep -v '^ *+' conftest.er1 >conftest.err
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } >/dev/null; then
2833 if test -s conftest.err; then
2834 ac_cpp_err=$ac_c_preproc_warn_flag
2841 if test -z "$ac_cpp_err"; then
2842 # Broken: success on invalid input.
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 # Passes both tests.
2852 rm -f conftest.err conftest.$ac_ext
2855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2856 rm -f conftest.err conftest.$ac_ext
2857 if $ac_preproc_ok; then
2869 echo "$as_me:$LINENO: result: $CPP" >&5
2870 echo "${ECHO_T}$CPP" >&6
2872 for ac_c_preproc_warn_flag in '' yes
2874 # Use a header file that comes with gcc, so configuring glibc
2875 # with a fresh cross-compiler works.
2876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2877 # <limits.h> exists even on freestanding compilers.
2878 # On the NeXT, cc -E runs the code through the compiler's parser,
2879 # not just through cpp. "Syntax error" is here to catch this case.
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2888 # include <limits.h>
2890 # include <assert.h>
2894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897 grep -v '^ *+' conftest.er1 >conftest.err
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } >/dev/null; then
2902 if test -s conftest.err; then
2903 ac_cpp_err=$ac_c_preproc_warn_flag
2910 if test -z "$ac_cpp_err"; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 # Broken: fails on valid input.
2919 rm -f conftest.err conftest.$ac_ext
2921 # OK, works on sane cases. Now check whether non-existent headers
2922 # can be detected and how.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2930 #include <ac_nonexistent.h>
2932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } >/dev/null; then
2940 if test -s conftest.err; then
2941 ac_cpp_err=$ac_c_preproc_warn_flag
2948 if test -z "$ac_cpp_err"; then
2949 # Broken: success on invalid input.
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 # Passes both tests.
2959 rm -f conftest.err conftest.$ac_ext
2962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2963 rm -f conftest.err conftest.$ac_ext
2964 if $ac_preproc_ok; then
2967 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 echo "$as_me:$LINENO: checking for egrep" >&5
2982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2983 if test "${ac_cv_prog_egrep+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2987 then ac_cv_prog_egrep='grep -E'
2988 else ac_cv_prog_egrep='egrep'
2991 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2992 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2993 EGREP=$ac_cv_prog_egrep
2996 if test $ac_cv_c_compiler_gnu = yes; then
2997 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2998 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2999 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_pattern="Autoconf.*'x'"
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3015 ac_cv_prog_gcc_traditional=yes
3017 ac_cv_prog_gcc_traditional=no
3022 if test $ac_cv_prog_gcc_traditional = no; then
3023 cat >conftest.$ac_ext <<_ACEOF
3024 #line $LINENO "configure"
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3035 ac_cv_prog_gcc_traditional=yes
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3043 if test $ac_cv_prog_gcc_traditional = yes; then
3044 CC="$CC -traditional"
3050 cat >>confdefs.h <<\_ACEOF
3056 # Find a good install program. We prefer a C program (faster),
3057 # so one script is as good as another. But avoid the broken or
3058 # incompatible versions:
3059 # SysV /etc/install, /usr/sbin/install
3060 # SunOS /usr/etc/install
3061 # IRIX /sbin/install
3063 # AmigaOS /C/install, which installs bootblocks on floppy discs
3064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3067 # ./install, which can be erroneously created by make from ./install.sh.
3068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3070 if test -z "$INSTALL"; then
3071 if test "${ac_cv_path_install+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 # Account for people who put trailing slashes in PATH elements.
3081 ./ | .// | /cC/* | \
3082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3085 # OSF1 and SCO ODT 3.0 have their own names for install.
3086 # Don't use installbsd from OSF since it installs stuff as root
3088 for ac_prog in ginstall scoinst install; do
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3091 if test $ac_prog = install &&
3092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093 # AIX install. It has an incompatible calling convention.
3095 elif test $ac_prog = install &&
3096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097 # program-specific install script used by HP pwplus--don't use.
3100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3112 if test "${ac_cv_path_install+set}" = set; then
3113 INSTALL=$ac_cv_path_install
3115 # As a last resort, use the slow shell script. We don't cache a
3116 # path for INSTALL within a source directory, because that will
3117 # break other packages using the cache if that directory is
3118 # removed, or if the path is relative.
3119 INSTALL=$ac_install_sh
3122 echo "$as_me:$LINENO: result: $INSTALL" >&5
3123 echo "${ECHO_T}$INSTALL" >&6
3125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3126 # It thinks the first close brace ends the variable substitution.
3127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_RANLIB+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 if test -n "$RANLIB"; then
3142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 RANLIB=$ac_cv_prog_RANLIB
3161 if test -n "$RANLIB"; then
3162 echo "$as_me:$LINENO: result: $RANLIB" >&5
3163 echo "${ECHO_T}$RANLIB" >&6
3165 echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3170 if test -z "$ac_cv_prog_RANLIB"; then
3171 ac_ct_RANLIB=$RANLIB
3172 # Extract the first word of "ranlib", so it can be a program name with args.
3173 set dummy ranlib; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 if test -n "$ac_ct_RANLIB"; then
3180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_RANLIB="ranlib"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3200 if test -n "$ac_ct_RANLIB"; then
3201 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3208 RANLIB=$ac_ct_RANLIB
3210 RANLIB="$ac_cv_prog_RANLIB"
3213 # Extract the first word of "mv", so it can be a program name with args.
3214 set dummy mv; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_MV+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3245 if test -n "$MV"; then
3246 echo "$as_me:$LINENO: result: $MV" >&5
3247 echo "${ECHO_T}$MV" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 # Extract the first word of "rm", so it can be a program name with args.
3254 set dummy rm; ac_word=$2
3255 echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257 if test "${ac_cv_path_RM+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3285 if test -n "$RM"; then
3286 echo "$as_me:$LINENO: result: $RM" >&5
3287 echo "${ECHO_T}$RM" >&6
3289 echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3293 # Extract the first word of "cp", so it can be a program name with args.
3294 set dummy cp; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_path_CP+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3325 if test -n "$CP"; then
3326 echo "$as_me:$LINENO: result: $CP" >&5
3327 echo "${ECHO_T}$CP" >&6
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3333 # Extract the first word of "sed", so it can be a program name with args.
3334 set dummy sed; ac_word=$2
3335 echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_path_SED+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3365 if test -n "$SED"; then
3366 echo "$as_me:$LINENO: result: $SED" >&5
3367 echo "${ECHO_T}$SED" >&6
3369 echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3373 # Extract the first word of "awk", so it can be a program name with args.
3374 set dummy awk; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_path_AWK+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3405 if test -n "$AWK"; then
3406 echo "$as_me:$LINENO: result: $AWK" >&5
3407 echo "${ECHO_T}$AWK" >&6
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3413 # Extract the first word of "echo", so it can be a program name with args.
3414 set dummy echo; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_path_ECHO+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3443 ECHO=$ac_cv_path_ECHO
3445 if test -n "$ECHO"; then
3446 echo "$as_me:$LINENO: result: $ECHO" >&5
3447 echo "${ECHO_T}$ECHO" >&6
3449 echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3453 # Extract the first word of "cmp", so it can be a program name with args.
3454 set dummy cmp; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_path_CMP+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3485 if test -n "$CMP"; then
3486 echo "$as_me:$LINENO: result: $CMP" >&5
3487 echo "${ECHO_T}$CMP" >&6
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3493 # Extract the first word of "tbl", so it can be a program name with args.
3494 set dummy tbl; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_path_TBL+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3525 if test -n "$TBL"; then
3526 echo "$as_me:$LINENO: result: $TBL" >&5
3527 echo "${ECHO_T}$TBL" >&6
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3533 # Extract the first word of "ar", so it can be a program name with args.
3534 set dummy ar; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_path_AR+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3565 if test -n "$AR"; then
3566 echo "$as_me:$LINENO: result: $AR" >&5
3567 echo "${ECHO_T}$AR" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 # Extract the first word of "ranlib", so it can be a program name with args.
3574 set dummy ranlib; ac_word=$2
3575 echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 if test "${ac_cv_path_RANLIB+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3603 RANLIB=$ac_cv_path_RANLIB
3605 if test -n "$RANLIB"; then
3606 echo "$as_me:$LINENO: result: $RANLIB" >&5
3607 echo "${ECHO_T}$RANLIB" >&6
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3613 # Extract the first word of "openssl", so it can be a program name with args.
3614 set dummy openssl; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_path_OPENSSL+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3643 OPENSSL=$ac_cv_path_OPENSSL
3645 if test -n "$OPENSSL"; then
3646 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3647 echo "${ECHO_T}$OPENSSL" >&6
3649 echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3653 # Extract the first word of "mtx", so it can be a program name with args.
3654 set dummy mtx; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_path_MTX+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3685 if test -n "$MTX"; then
3686 echo "$as_me:$LINENO: result: $MTX" >&5
3687 echo "${ECHO_T}$MTX" >&6
3689 echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3693 # Extract the first word of "pkg-config", so it can be a program name with args.
3694 set dummy pkg-config; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3723 PKGCONFIG=$ac_cv_path_PKGCONFIG
3725 if test -n "$PKGCONFIG"; then
3726 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3727 echo "${ECHO_T}$PKGCONFIG" >&6
3729 echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3733 # Extract the first word of "wx-config", so it can be a program name with args.
3734 set dummy wx-config; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3763 WXCONFIG=$ac_cv_path_WXCONFIG
3765 if test -n "$WXCONFIG"; then
3766 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3767 echo "${ECHO_T}$WXCONFIG" >&6
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3774 test -n "$ARFLAG" || ARFLAGS="cr"
3787 # Make sure we can run config.sub.
3788 $ac_config_sub sun4 >/dev/null 2>&1 ||
3789 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3790 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3791 { (exit 1); exit 1; }; }
3793 echo "$as_me:$LINENO: checking build system type" >&5
3794 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3795 if test "${ac_cv_build+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 ac_cv_build_alias=$build_alias
3799 test -z "$ac_cv_build_alias" &&
3800 ac_cv_build_alias=`$ac_config_guess`
3801 test -z "$ac_cv_build_alias" &&
3802 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3803 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3804 { (exit 1); exit 1; }; }
3805 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3806 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3807 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3808 { (exit 1); exit 1; }; }
3811 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3812 echo "${ECHO_T}$ac_cv_build" >&6
3814 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3815 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3816 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3819 echo "$as_me:$LINENO: checking for Operating System" >&5
3820 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3821 echo "$as_me:$LINENO: checking host system type" >&5
3822 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3823 if test "${ac_cv_host+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 ac_cv_host_alias=$host_alias
3827 test -z "$ac_cv_host_alias" &&
3828 ac_cv_host_alias=$ac_cv_build_alias
3829 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3830 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3831 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3832 { (exit 1); exit 1; }; }
3835 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3836 echo "${ECHO_T}$ac_cv_host" >&6
3838 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3839 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3840 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3844 *cygwin* ) CYGWIN=yes;;
3848 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3854 HAVE_SUN_OS_FALSE='#'
3856 HAVE_SUN_OS_TRUE='#'
3859 cat >>confdefs.h <<\_ACEOF
3860 #define HAVE_SUN_OS 1
3868 HAVE_SUN_OS_FALSE='#'
3870 HAVE_SUN_OS_TRUE='#'
3875 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3881 HAVE_OSF1_OS_FALSE='#'
3883 HAVE_OSF1_OS_TRUE='#'
3886 cat >>confdefs.h <<\_ACEOF
3887 #define HAVE_OSF1_OS 1
3895 HAVE_OSF1_OS_FALSE='#'
3897 HAVE_OSF1_OS_TRUE='#'
3902 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3908 HAVE_AIX_OS_FALSE='#'
3910 HAVE_AIX_OS_TRUE='#'
3913 cat >>confdefs.h <<\_ACEOF
3914 #define HAVE_AIX_OS 1
3922 HAVE_AIX_OS_FALSE='#'
3924 HAVE_AIX_OS_TRUE='#'
3929 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3935 HAVE_HPUX_OS_FALSE='#'
3937 HAVE_HPUX_OS_TRUE='#'
3940 cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_HPUX_OS 1
3949 HAVE_HPUX_OS_FALSE='#'
3951 HAVE_HPUX_OS_TRUE='#'
3956 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3962 HAVE_LINUX_OS_FALSE='#'
3964 HAVE_LINUX_OS_TRUE='#'
3965 HAVE_LINUX_OS_FALSE=
3967 cat >>confdefs.h <<\_ACEOF
3968 #define HAVE_LINUX_OS 1
3976 HAVE_LINUX_OS_FALSE='#'
3978 HAVE_LINUX_OS_TRUE='#'
3979 HAVE_LINUX_OS_FALSE=
3983 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3988 HAVE_FREEBSD_OS_TRUE=
3989 HAVE_FREEBSD_OS_FALSE='#'
3991 HAVE_FREEBSD_OS_TRUE='#'
3992 HAVE_FREEBSD_OS_FALSE=
3994 cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_FREEBSD_OS 1
4002 HAVE_FREEBSD_OS_TRUE=
4003 HAVE_FREEBSD_OS_FALSE='#'
4005 HAVE_FREEBSD_OS_TRUE='#'
4006 HAVE_FREEBSD_OS_FALSE=
4010 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4015 HAVE_NETBSD_OS_TRUE=
4016 HAVE_NETBSD_OS_FALSE='#'
4018 HAVE_NETBSD_OS_TRUE='#'
4019 HAVE_NETBSD_OS_FALSE=
4021 cat >>confdefs.h <<\_ACEOF
4022 #define HAVE_NETBSD_OS 1
4029 HAVE_NETBSD_OS_TRUE=
4030 HAVE_NETBSD_OS_FALSE='#'
4032 HAVE_NETBSD_OS_TRUE='#'
4033 HAVE_NETBSD_OS_FALSE=
4037 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4042 HAVE_OPENBSD_OS_TRUE=
4043 HAVE_OPENBSD_OS_FALSE='#'
4045 HAVE_OPENBSD_OS_TRUE='#'
4046 HAVE_OPENBSD_OS_FALSE=
4048 cat >>confdefs.h <<\_ACEOF
4049 #define HAVE_OPENBSD_OS 1
4056 HAVE_OPENBSD_OS_TRUE=
4057 HAVE_OPENBSD_OS_FALSE='#'
4059 HAVE_OPENBSD_OS_TRUE='#'
4060 HAVE_OPENBSD_OS_FALSE=
4064 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4070 HAVE_BSDI_OS_FALSE='#'
4072 HAVE_BSDI_OS_TRUE='#'
4075 cat >>confdefs.h <<\_ACEOF
4076 #define HAVE_BSDI_OS 1
4084 HAVE_BSDI_OS_FALSE='#'
4086 HAVE_BSDI_OS_TRUE='#'
4091 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4097 HAVE_SGI_OS_FALSE='#'
4099 HAVE_SGI_OS_TRUE='#'
4102 cat >>confdefs.h <<\_ACEOF
4103 #define HAVE_SGI_OS 1
4111 HAVE_SGI_OS_FALSE='#'
4113 HAVE_SGI_OS_TRUE='#'
4118 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4124 HAVE_IRIX_OS_FALSE='#'
4126 HAVE_IRIX_OS_TRUE='#'
4129 cat >>confdefs.h <<\_ACEOF
4130 #define HAVE_IRIX_OS 1
4138 HAVE_IRIX_OS_FALSE='#'
4140 HAVE_IRIX_OS_TRUE='#'
4145 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4150 HAVE_DARWIN_OS_TRUE=
4151 HAVE_DARWIN_OS_FALSE='#'
4153 HAVE_DARWIN_OS_TRUE='#'
4154 HAVE_DARWIN_OS_FALSE=
4156 cat >>confdefs.h <<\_ACEOF
4157 #define HAVE_DARWIN_OS 1
4164 HAVE_DARWIN_OS_TRUE=
4165 HAVE_DARWIN_OS_FALSE='#'
4167 HAVE_DARWIN_OS_TRUE='#'
4168 HAVE_DARWIN_OS_FALSE=
4172 echo "$as_me:$LINENO: result: \" \"" >&5
4173 echo "${ECHO_T}\" \"" >&6
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4182 echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4210 elif test -f /etc/SuSE-release
4213 elif test -d /etc/SuSEconfig
4216 elif test -f /etc/mandrake-release
4219 elif test -f /etc/redhat-release
4222 elif test -f /etc/gentoo-release
4225 elif test -f /etc/debian_version
4228 elif test -f /etc/slackware-version
4231 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4234 elif test -f /etc/engarde-version
4237 elif test "$CYGWIN" = yes
4240 cat >>confdefs.h <<\_ACEOF
4241 #define HAVE_CYGWIN 1
4247 echo "$as_me:$LINENO: result: \" \"" >&5
4248 echo "${ECHO_T}\" \"" >&6
4251 # -----------------------------------------------------------
4252 # ----------------------------------------------------------
4257 INSIDE_GNOME_COMMON_TRUE=
4258 INSIDE_GNOME_COMMON_FALSE='#'
4260 INSIDE_GNOME_COMMON_TRUE='#'
4261 INSIDE_GNOME_COMMON_FALSE=
4264 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4266 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4269 # ------------------------------------------------------------------
4270 # If the user has not set --prefix, we set our default to nothing.
4271 # In this case, if the user has not set --sysconfdir, we set it
4272 # to the package default of /etc/bacula. If either --prefix or
4273 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4274 # ------------------------------------------------------------------
4275 if test x${prefix} = xNONE ; then
4276 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4277 sysconfdir=/etc/bacula
4281 sysconfdir=`eval echo ${sysconfdir}`
4283 # -------------------------------------------------------------------------
4284 # If the user has not set --exec-prefix, we default to ${prefix}
4285 # -------------------------------------------------------------------------
4286 if test x${exec_prefix} = xNONE ; then
4287 exec_prefix=${prefix}
4290 # ------------------------------------------------------------------
4291 # If the user has not set --sbindir, we set our default as /sbin
4292 # ------------------------------------------------------------------
4293 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4294 sbindir=${exec_prefix}/sbin
4296 sbindir=`eval echo ${sbindir}`
4298 # ------------------------------------------------------------------
4299 # All list of languages for which a translation exist. Each
4300 # language is separated by a space.
4301 # ------------------------------------------------------------------
4304 for ac_prog in msgfmt
4306 # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310 if test "${ac_cv_path_MSGFMT+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 MSGFMT=$ac_cv_path_MSGFMT
4337 if test -n "$MSGFMT"; then
4338 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4339 echo "${ECHO_T}$MSGFMT" >&6
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4345 test -n "$MSGFMT" && break
4347 test -n "$MSGFMT" || MSGFMT="no"
4349 if test "$MSGFMT" = "no"
4351 echo 'msgfmt program not found, disabling NLS !'
4353 USE_INCLUDED_LIBINTL=no
4361 support_postgresql=no
4362 support_smartalloc=yes
4363 support_readline=yes
4366 support_wx_console=no
4368 support_static_tools=no
4369 support_static_fd=no
4370 support_static_sd=no
4371 support_static_dir=no
4372 support_static_cons=no
4373 build_client_only=no
4379 # -------------------------------------------
4380 # gnome (default off)
4381 # -------------------------------------------
4382 # Check whether --enable-gnome or --disable-gnome was given.
4383 if test "${enable_gnome+set}" = set; then
4384 enableval="$enable_gnome"
4385 if test x$enableval = xyes; then
4391 if test x$support_gnome = xyes; then
4392 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4394 if test $pkg = 0; then
4395 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4396 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4397 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4398 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4403 GNOME_DIR=src/gnome2-console
4404 gnome_version="Version 2.x"
4417 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4418 if test "${with_gnome_includes+set}" = set; then
4419 withval="$with_gnome_includes"
4421 CFLAGS="$CFLAGS -I$withval"
4426 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4427 if test "${with_gnome_libs+set}" = set; then
4428 withval="$with_gnome_libs"
4430 LDFLAGS="$LDFLAGS -L$withval"
4431 gnome_prefix=$withval
4436 # Check whether --with-gnome or --without-gnome was given.
4437 if test "${with_gnome+set}" = set; then
4438 withval="$with_gnome"
4439 if test x$withval = xyes; then
4443 if test "x$withval" = xno; then
4447 LDFLAGS="$LDFLAGS -L$withval/lib"
4448 CFLAGS="$CFLAGS -I$withval/include"
4449 gnome_prefix=$withval/lib
4456 if test "x$want_gnome" = xyes; then
4458 # Extract the first word of "gnome-config", so it can be a program name with args.
4459 set dummy gnome-config; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 case $GNOME_CONFIG in
4467 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4488 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4490 if test -n "$GNOME_CONFIG"; then
4491 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4492 echo "${ECHO_T}$GNOME_CONFIG" >&6
4494 echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4498 if test "$GNOME_CONFIG" = "no"; then
4499 no_gnome_config="yes"
4501 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4502 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4503 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4504 echo "$as_me:$LINENO: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4508 # Extract the first word of "orbit-config", so it can be a program name with args.
4509 set dummy orbit-config; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 case $ORBIT_CONFIG in
4517 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4538 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4540 if test -n "$ORBIT_CONFIG"; then
4541 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4542 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 # Extract the first word of "orbit-idl", so it can be a program name with args.
4549 set dummy orbit-idl; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4578 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4580 if test -n "$ORBIT_IDL"; then
4581 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4582 echo "${ECHO_T}$ORBIT_IDL" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4589 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4590 if test "${gnome_cv_orbit_found+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4595 gnome_cv_orbit_found=no
4597 gnome_cv_orbit_found=yes
4601 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4602 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4605 if test x$gnome_cv_orbit_found = xyes; then
4607 HAVE_ORBIT_FALSE='#'
4612 if test x$gnome_cv_orbit_found = xyes; then
4614 ORBIT_CFLAGS=`orbit-config --cflags client server`
4615 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4619 if test xfail = xfailure; then
4620 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4621 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4622 { (exit 1); exit 1; }; }
4626 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4627 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4628 if test "${gnome_cv_gnorba_found+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 gnome_cv_gnorba_found=no
4633 if test x$gnome_cv_orbit_found = xyes; then
4634 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4635 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4636 if test -n "$GNORBA_LIBS"; then
4637 gnome_cv_gnorba_found=yes
4642 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4643 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4646 if test x$gnome_cv_gnorba_found = xyes; then
4648 HAVE_GNORBA_FALSE='#'
4650 HAVE_GNORBA_TRUE='#'
4653 if test x$gnome_cv_orbit_found = xyes; then
4655 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4656 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4660 if test xfail = xfailure; then
4661 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4662 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4663 { (exit 1); exit 1; }; }
4667 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4668 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4669 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4670 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4671 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4672 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4673 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678 no_gnome_config="yes"
4682 if test x$exec_prefix = xNONE; then
4683 if test x$prefix = xNONE; then
4684 gnome_prefix=$ac_default_prefix/lib
4686 gnome_prefix=$prefix/lib
4689 gnome_prefix=`eval echo \`echo $libdir\``
4692 if test "$no_gnome_config" = "yes"; then
4693 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4694 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4695 if test -f $gnome_prefix/gnomeConf.sh; then
4696 echo "$as_me:$LINENO: result: found" >&5
4697 echo "${ECHO_T}found" >&6
4698 echo "loading gnome configuration from" \
4699 "$gnome_prefix/gnomeConf.sh"
4700 . $gnome_prefix/gnomeConf.sh
4703 echo "$as_me:$LINENO: result: not found" >&5
4704 echo "${ECHO_T}not found" >&6
4705 if test xfail = xfail; then
4706 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4707 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4708 { (exit 1); exit 1; }; }
4717 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4718 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4722 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4723 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4724 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4727 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4728 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4729 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4732 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4733 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4734 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4736 echo "$as_me:$LINENO: result: unknown library" >&5
4737 echo "${ECHO_T}unknown library" >&6
4739 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4740 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4745 GNOME_DIR=src/gnome-console
4746 gnome_version="Version 1.4"
4752 # -------------------------------------------
4753 # wx-console (default off)
4754 # -------------------------------------------
4755 # Check whether --enable-wx-console or --disable-wx-console was given.
4756 if test "${enable_wx_console+set}" = set; then
4757 enableval="$enable_wx_console"
4758 if test x$enableval = xyes; then
4759 support_wx_console=yes
4764 if test x$support_wx_console = xyes; then
4765 abc=`$WXCONFIG --cppflags`
4767 if test $pkg = 0; then
4768 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4769 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4772 WX_DIR=src/wx-console
4775 echo "wx-config program not found. wx-console disabled."
4777 support_wx_console=no
4784 # -------------------------------------------
4785 # smartalloc (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4788 if test "${enable_smartalloc+set}" = set; then
4789 enableval="$enable_smartalloc"
4790 if test x$enableval = xno; then
4791 support_smartalloc=no
4795 if test x$support_smartalloc = xyes; then
4796 cat >>confdefs.h <<\_ACEOF
4797 #define SMARTALLOC 1
4802 # -------------------------------------------
4803 # static-tools (default off)
4804 # -------------------------------------------
4805 # Check whether --enable-static-tools or --disable-static-tools was given.
4806 if test "${enable_static_tools+set}" = set; then
4807 enableval="$enable_static_tools"
4808 if test x$enableval = xyes; then
4809 support_static_tools=yes
4814 if test x$support_static_tools = xyes; then
4815 TTOOL_LDFLAGS="-static"
4819 # -------------------------------------------
4820 # static-fd (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-static-fd or --disable-static-fd was given.
4823 if test "${enable_static_fd+set}" = set; then
4824 enableval="$enable_static_fd"
4825 if test x$enableval = xyes; then
4826 support_static_fd=yes
4831 if test x$support_static_fd = xyes; then
4832 STATIC_FD="static-bacula-fd"
4836 # -------------------------------------------
4837 # static-sd (default off)
4838 # -------------------------------------------
4839 # Check whether --enable-static-sd or --disable-static-sd was given.
4840 if test "${enable_static_sd+set}" = set; then
4841 enableval="$enable_static_sd"
4842 if test x$enableval = xyes; then
4843 support_static_sd=yes
4848 if test x$support_static_sd = xyes; then
4849 STATIC_SD="static-bacula-sd"
4853 # -------------------------------------------
4854 # static-dir (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-static-dir or --disable-static-dir was given.
4857 if test "${enable_static_dir+set}" = set; then
4858 enableval="$enable_static_dir"
4859 if test x$enableval = xyes; then
4860 support_static_dir=yes
4865 if test x$support_static_dir = xyes; then
4866 STATIC_DIR="static-bacula-dir"
4870 # -------------------------------------------
4871 # static-cons (default off)
4872 # -------------------------------------------
4873 # Check whether --enable-static-cons or --disable-static-cons was given.
4874 if test "${enable_static_cons+set}" = set; then
4875 enableval="$enable_static_cons"
4876 if test x$enableval = xyes; then
4877 support_static_cons=yes
4884 if test x$support_static_cons = xyes; then
4885 STATIC_CONS="static-bconsole"
4886 STATIC_GNOME_CONS="static-gnome-console"
4887 STATIC_WX_CONS="static-wx-console"
4893 # -------------------------------------------
4894 # client_only (default off)
4895 # -------------------------------------------
4896 # Check whether --enable-client-only or --disable-client-only was given.
4897 if test "${enable_client_only+set}" = set; then
4898 enableval="$enable_client_only"
4899 if test x$enableval = xyes; then
4900 build_client_only=yes
4903 if test x$build_client_only = xno; then
4910 # ---------------------------------------------------
4911 # Check for conio (Bacula readline substitute)(
4912 # ---------------------------------------------------
4913 # this allows you to turn it completely off
4914 # Check whether --enable-conio or --disable-conio was given.
4915 if test "${enable_conio+set}" = set; then
4916 enableval="$enable_conio"
4917 if test x$enableval = xno; then
4923 if test x$support_conio = xyes; then
4924 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4926 if test "${ac_cv_header_stdc+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 cat >conftest.$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_header_stdc=yes
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 ac_cv_header_stdc=no
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4970 if test $ac_cv_header_stdc = yes; then
4971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4983 $EGREP "memchr" >/dev/null 2>&1; then
4986 ac_cv_header_stdc=no
4992 if test $ac_cv_header_stdc = yes; then
4993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4994 cat >conftest.$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005 $EGREP "free" >/dev/null 2>&1; then
5008 ac_cv_header_stdc=no
5014 if test $ac_cv_header_stdc = yes; then
5015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016 if test "$cross_compiling" = yes; then
5019 cat >conftest.$ac_ext <<_ACEOF
5020 #line $LINENO "configure"
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5027 #if ((' ' & 0x0FF) == 0x020)
5028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 # define ISLOWER(c) \
5032 (('a' <= (c) && (c) <= 'i') \
5033 || ('j' <= (c) && (c) <= 'r') \
5034 || ('s' <= (c) && (c) <= 'z'))
5035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5043 for (i = 0; i < 256; i++)
5044 if (XOR (islower (i), ISLOWER (i))
5045 || toupper (i) != TOUPPER (i))
5050 rm -f conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5068 ac_cv_header_stdc=no
5070 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5074 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5075 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5076 if test $ac_cv_header_stdc = yes; then
5078 cat >>confdefs.h <<\_ACEOF
5079 #define STDC_HEADERS 1
5084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5095 inttypes.h stdint.h unistd.h
5097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098 echo "$as_me:$LINENO: checking for $ac_header" >&5
5099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5112 #include <$ac_header>
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -s conftest.$ac_objext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 eval "$as_ac_Header=yes"
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5131 eval "$as_ac_Header=no"
5133 rm -f conftest.$ac_objext conftest.$ac_ext
5135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5138 cat >>confdefs.h <<_ACEOF
5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147 if test "${ac_cv_header_termcap_h+set}" = set; then
5148 echo "$as_me:$LINENO: checking for termcap.h" >&5
5149 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_termcap_h+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5156 # Is the header compilable?
5157 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5158 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 $ac_includes_default
5167 #include <termcap.h>
5169 rm -f conftest.$ac_objext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_header_compiler=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ac_header_compiler=no
5188 rm -f conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5190 echo "${ECHO_T}$ac_header_compiler" >&6
5192 # Is the header present?
5193 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5194 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <termcap.h>
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207 grep -v '^ *+' conftest.er1 >conftest.err
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_c_preproc_warn_flag
5220 if test -z "$ac_cpp_err"; then
5221 ac_header_preproc=yes
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 ac_header_preproc=no
5228 rm -f conftest.err conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5230 echo "${ECHO_T}$ac_header_preproc" >&6
5232 # So? What about this header?
5233 case $ac_header_compiler:$ac_header_preproc in
5235 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5236 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5237 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5238 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5241 ## ------------------------------------ ##
5242 ## Report this to bug-autoconf@gnu.org. ##
5243 ## ------------------------------------ ##
5246 sed "s/^/$as_me: WARNING: /" >&2
5249 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5254 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5257 ## ------------------------------------ ##
5258 ## Report this to bug-autoconf@gnu.org. ##
5259 ## ------------------------------------ ##
5262 sed "s/^/$as_me: WARNING: /" >&2
5265 echo "$as_me:$LINENO: checking for termcap.h" >&5
5266 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_termcap_h+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_cv_header_termcap_h=$ac_header_preproc
5272 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5273 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5276 if test $ac_cv_header_termcap_h = yes; then
5277 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5278 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5279 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-ltermcap $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5292 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_lib_termcap_tgetent=yes
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 ac_cv_lib_termcap_tgetent=no
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5330 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5331 if test $ac_cv_lib_termcap_tgetent = yes; then
5332 CONS_LIBS="-ltermcap"
5338 cat >>confdefs.h <<\_ACEOF
5339 #define HAVE_CONIO 1
5344 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5345 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5346 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-lncurses $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5359 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376 (eval $ac_link) 2>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_cv_lib_ncurses_tgetent=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_cv_lib_ncurses_tgetent=no
5393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5396 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5397 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5398 if test $ac_cv_lib_ncurses_tgetent = yes; then
5399 CONS_LIBS="-lncurses"
5405 cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_CONIO 1
5411 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5419 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5426 # ---------------------------------------------------
5427 # Check for readline support/directory (default off)
5428 # ---------------------------------------------------
5429 # this allows you to turn it completely off
5430 # Check whether --enable-readline or --disable-readline was given.
5431 if test "${enable_readline+set}" = set; then
5432 enableval="$enable_readline"
5433 if test x$enableval = xno; then
5440 if test x$support_readline = xyes; then
5442 # Check whether --with-readline or --without-readline was given.
5443 if test "${with_readline+set}" = set; then
5444 withval="$with_readline"
5446 case "$with_readline" in
5449 if test "$with_readline" != "yes"; then
5450 CONS_INC="-I${with_readline}"
5451 CONS_LDFLAGS="-L$with_readline"
5453 with_readline="/usr/include/readline"
5455 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5458 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465 # Is the header compilable?
5466 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5467 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5476 #include <${with_readline}/readline.h>
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_header_compiler=yes
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_header_compiler=no
5497 rm -f conftest.$ac_objext conftest.$ac_ext
5498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5499 echo "${ECHO_T}$ac_header_compiler" >&6
5501 # Is the header present?
5502 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5503 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5504 cat >conftest.$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 #include <${with_readline}/readline.h>
5513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } >/dev/null; then
5521 if test -s conftest.err; then
5522 ac_cpp_err=$ac_c_preproc_warn_flag
5529 if test -z "$ac_cpp_err"; then
5530 ac_header_preproc=yes
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_header_preproc=no
5537 rm -f conftest.err conftest.$ac_ext
5538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5539 echo "${ECHO_T}$ac_header_preproc" >&6
5541 # So? What about this header?
5542 case $ac_header_compiler:$ac_header_preproc in
5544 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5545 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5547 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5550 ## ------------------------------------ ##
5551 ## Report this to bug-autoconf@gnu.org. ##
5552 ## ------------------------------------ ##
5555 sed "s/^/$as_me: WARNING: /" >&2
5558 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5559 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5561 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5563 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5566 ## ------------------------------------ ##
5567 ## Report this to bug-autoconf@gnu.org. ##
5568 ## ------------------------------------ ##
5571 sed "s/^/$as_me: WARNING: /" >&2
5574 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5575 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 eval "$as_ac_Header=$ac_header_preproc"
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5586 cat >>confdefs.h <<\_ACEOF
5587 #define HAVE_READLINE 1
5590 CONS_LIBS="-lreadline -ltermcap"
5595 echo "readline.h not found. readline turned off ..."
5607 # check for standard readline library
5608 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5609 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5610 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5611 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5615 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5617 # Is the header compilable?
5618 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5619 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627 $ac_includes_default
5628 #include </usr/include/readline/readline.h>
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632 (eval $ac_compile) 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -s conftest.$ac_objext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_header_compiler=yes
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_header_compiler=no
5649 rm -f conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5651 echo "${ECHO_T}$ac_header_compiler" >&6
5653 # Is the header present?
5654 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5655 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include </usr/include/readline/readline.h>
5665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668 grep -v '^ *+' conftest.er1 >conftest.err
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } >/dev/null; then
5673 if test -s conftest.err; then
5674 ac_cpp_err=$ac_c_preproc_warn_flag
5681 if test -z "$ac_cpp_err"; then
5682 ac_header_preproc=yes
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_header_preproc=no
5689 rm -f conftest.err conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5691 echo "${ECHO_T}$ac_header_preproc" >&6
5693 # So? What about this header?
5694 case $ac_header_compiler:$ac_header_preproc in
5696 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5697 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5702 ## ------------------------------------ ##
5703 ## Report this to bug-autoconf@gnu.org. ##
5704 ## ------------------------------------ ##
5707 sed "s/^/$as_me: WARNING: /" >&2
5710 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5711 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5713 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5718 ## ------------------------------------ ##
5719 ## Report this to bug-autoconf@gnu.org. ##
5720 ## ------------------------------------ ##
5723 sed "s/^/$as_me: WARNING: /" >&2
5726 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5727 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5728 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5733 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5734 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5737 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5738 cat >>confdefs.h <<\_ACEOF
5739 #define HAVE_READLINE 1
5743 CONS_INC="-I/usr/include/readline"
5744 CONS_LIBS="-lreadline -ltermcap"
5748 # Did not find standard library, so try Bacula's default
5749 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5752 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759 # Is the header compilable?
5760 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5761 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 $ac_includes_default
5770 #include <${TOP_DIR}/depkgs/readline/readline.h>
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_header_compiler=yes
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 ac_header_compiler=no
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5793 echo "${ECHO_T}$ac_header_compiler" >&6
5795 # Is the header present?
5796 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5797 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <${TOP_DIR}/depkgs/readline/readline.h>
5807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null; then
5815 if test -s conftest.err; then
5816 ac_cpp_err=$ac_c_preproc_warn_flag
5823 if test -z "$ac_cpp_err"; then
5824 ac_header_preproc=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_header_preproc=no
5831 rm -f conftest.err conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5833 echo "${ECHO_T}$ac_header_preproc" >&6
5835 # So? What about this header?
5836 case $ac_header_compiler:$ac_header_preproc in
5838 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5839 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5840 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5841 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5844 ## ------------------------------------ ##
5845 ## Report this to bug-autoconf@gnu.org. ##
5846 ## ------------------------------------ ##
5849 sed "s/^/$as_me: WARNING: /" >&2
5852 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5853 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5855 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5857 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5860 ## ------------------------------------ ##
5861 ## Report this to bug-autoconf@gnu.org. ##
5862 ## ------------------------------------ ##
5865 sed "s/^/$as_me: WARNING: /" >&2
5868 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5869 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 eval "$as_ac_Header=$ac_header_preproc"
5875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5880 cat >>confdefs.h <<\_ACEOF
5881 #define HAVE_READLINE 1
5885 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5886 CONS_LIBS="-lreadline -lhistory -ltermcap"
5887 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5888 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5892 echo "readline.h not found. readline turned off ..."
5918 # Minimal stuff for readline Makefile configuration
5922 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5923 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5924 if test "${ac_cv_header_stat_broken+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <sys/types.h>
5935 #include <sys/stat.h>
5937 #if defined(S_ISBLK) && defined(S_IFDIR)
5938 # if S_ISBLK (S_IFDIR)
5943 #if defined(S_ISBLK) && defined(S_IFCHR)
5944 # if S_ISBLK (S_IFCHR)
5949 #if defined(S_ISLNK) && defined(S_IFREG)
5950 # if S_ISLNK (S_IFREG)
5955 #if defined(S_ISSOCK) && defined(S_IFREG)
5956 # if S_ISSOCK (S_IFREG)
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 $EGREP "You lose" >/dev/null 2>&1; then
5964 ac_cv_header_stat_broken=yes
5966 ac_cv_header_stat_broken=no
5971 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5972 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5973 if test $ac_cv_header_stat_broken = yes; then
5975 cat >>confdefs.h <<\_ACEOF
5976 #define STAT_MACROS_BROKEN 1
5987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5988 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5989 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5990 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <sys/types.h>
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 eval "$as_ac_Header=yes"
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 eval "$as_ac_Header=no"
6032 rm -f conftest.$ac_objext conftest.$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6041 ac_header_dirent=$ac_hdr; break
6045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6046 if test $ac_header_dirent = dirent.h; then
6047 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6049 if test "${ac_cv_search_opendir+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 ac_func_search_save_LIBS=$LIBS
6053 ac_cv_search_opendir=no
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -s conftest$ac_exeext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_search_opendir="none required"
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6096 if test "$ac_cv_search_opendir" = no; then
6097 for ac_lib in dir; do
6098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6107 /* Override any gcc2 internal prototype to avoid an error. */
6111 /* We use char because int might match the return type of a gcc2
6112 builtin and then its argument prototype would still apply. */
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -s conftest$ac_exeext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_search_opendir="-l$ac_lib"
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6144 LIBS=$ac_func_search_save_LIBS
6146 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6147 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6148 if test "$ac_cv_search_opendir" != no; then
6149 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6154 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6156 if test "${ac_cv_search_opendir+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 ac_func_search_save_LIBS=$LIBS
6160 ac_cv_search_opendir=no
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6169 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_search_opendir="none required"
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 if test "$ac_cv_search_opendir" = no; then
6205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6206 cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_search_opendir="-l$ac_lib"
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6251 LIBS=$ac_func_search_save_LIBS
6253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6255 if test "$ac_cv_search_opendir" != no; then
6256 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6271 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6274 echo "$as_me:$LINENO: checking for $ac_func" >&5
6275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6276 if eval "test \"\${$as_ac_var+set}\" = set"; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 /* System header to define __stub macros and hopefully few prototypes,
6287 which can conflict with char $ac_func (); below.
6288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289 <limits.h> exists even on freestanding compilers. */
6291 # include <limits.h>
6293 # include <assert.h>
6295 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6303 /* The GNU C library defines this for functions which it implements
6304 to always fail with ENOSYS. Some functions are actually named
6305 something starting with __ and the normal name is an alias. */
6306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6309 char (*f) () = $ac_func;
6318 return f != $ac_func;
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 eval "$as_ac_var=yes"
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 eval "$as_ac_var=no"
6342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6346 if test `eval echo '${'$as_ac_var'}'` = yes; then
6347 cat >>confdefs.h <<_ACEOF
6348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6355 for ac_func in nanosleep
6357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6358 echo "$as_me:$LINENO: checking for $ac_func" >&5
6359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6360 if eval "test \"\${$as_ac_var+set}\" = set"; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line $LINENO "configure"
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 /* System header to define __stub macros and hopefully few prototypes,
6371 which can conflict with char $ac_func (); below.
6372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6373 <limits.h> exists even on freestanding compilers. */
6375 # include <limits.h>
6377 # include <assert.h>
6379 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6387 /* The GNU C library defines this for functions which it implements
6388 to always fail with ENOSYS. Some functions are actually named
6389 something starting with __ and the normal name is an alias. */
6390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6393 char (*f) () = $ac_func;
6402 return f != $ac_func;
6407 rm -f conftest.$ac_objext conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409 (eval $ac_link) 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 eval "$as_ac_var=yes"
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_var=no"
6426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6430 if test `eval echo '${'$as_ac_var'}'` = yes; then
6431 cat >>confdefs.h <<_ACEOF
6432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6440 for ac_header in varargs.h
6442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6444 echo "$as_me:$LINENO: checking for $ac_header" >&5
6445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452 # Is the header compilable?
6453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6463 #include <$ac_header>
6465 rm -f conftest.$ac_objext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467 (eval $ac_compile) 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_header_compiler=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_header_compiler=no
6484 rm -f conftest.$ac_objext conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6486 echo "${ECHO_T}$ac_header_compiler" >&6
6488 # Is the header present?
6489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6491 cat >conftest.$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <$ac_header>
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } >/dev/null; then
6508 if test -s conftest.err; then
6509 ac_cpp_err=$ac_c_preproc_warn_flag
6516 if test -z "$ac_cpp_err"; then
6517 ac_header_preproc=yes
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 ac_header_preproc=no
6524 rm -f conftest.err conftest.$ac_ext
6525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6526 echo "${ECHO_T}$ac_header_preproc" >&6
6528 # So? What about this header?
6529 case $ac_header_compiler:$ac_header_preproc in
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6537 ## ------------------------------------ ##
6538 ## Report this to bug-autoconf@gnu.org. ##
6539 ## ------------------------------------ ##
6542 sed "s/^/$as_me: WARNING: /" >&2
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6553 ## ------------------------------------ ##
6554 ## Report this to bug-autoconf@gnu.org. ##
6555 ## ------------------------------------ ##
6558 sed "s/^/$as_me: WARNING: /" >&2
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 eval "$as_ac_Header=$ac_header_preproc"
6568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6573 cat >>confdefs.h <<_ACEOF
6574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582 # End of readline/conio stuff
6583 # -----------------------------------------------------------------------
6586 # ---------------------------------------------------
6587 # Check for GMP support/directory
6588 # ---------------------------------------------------
6592 # [ --with-gmp[=DIR] Specify gmp library directory],
6594 # case "$with_gmp" in
6597 # if test "$with_gmp" != "yes"; then
6598 # GMP_INC="-I$with_gmp"
6600 # GMP_LDFLAGS="-L$with_gmp"
6602 # with_gmp="/usr/include"
6604 # AC_CHECK_HEADER($with_gmp/gmp.h,
6605 # [ AC_MSG_RESULT(yes)
6606 # AC_DEFINE(HAVE_GMP)
6610 # [ AC_MSG_ERROR([*** gmp library missing])
6616 # # check for standard gmp library
6617 # AC_CHECK_HEADER(/usr/include/gmp.h,
6618 # [ AC_MSG_RESULT(yes)
6619 # AC_DEFINE(HAVE_GMP)
6624 # # Did not find standard library, so use our own
6625 # AC_MSG_RESULT(yes)
6626 # AC_DEFINE(HAVE_GMP)
6629 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6631 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6632 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6638 #AC_SUBST(GMP_LDFLAGS)
6642 # -----------------------------------------------------------------------
6645 # ---------------------------------------------------
6646 # Check for CWEB support/directory
6647 # ---------------------------------------------------
6652 # [ --with-cweb[=DIR] Specify cweb library directory],
6654 # case "$with_cweb" in
6657 # if test "$with_cweb" != "yes"; then
6658 # CWEB_INC="-I$with_cweb"
6659 # CWEB_LIBS="-lcweb"
6660 # CWEB_LDFLAGS="-L$with_cweb"
6662 # with_cweb="/usr/include"
6664 # AC_CHECK_HEADER($with_cweb/cweb.h,
6665 # [ AC_MSG_RESULT(yes)
6666 # AC_DEFINE(HAVE_CWEB)
6667 # CWEB_LIBS="-lcweb"
6670 # [ AC_MSG_ERROR([*** cweb library missing])
6676 # # check for standard cweb library
6677 # AC_CHECK_HEADER(/usr/include/cweb.h,
6678 # [ AC_MSG_RESULT(yes)
6679 # AC_DEFINE(HAVE_CWEB)
6682 # CWEB_LIBS="-lcweb"
6684 # # Did not find starndard library, so use our own
6685 # AC_MSG_RESULT(yes)
6686 # AC_DEFINE(HAVE_CWEB)
6689 # CWEB=${TOP_DIR}/depkgs/cweb
6690 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6691 # CWEB_LIBS="-lcweb"
6692 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6693 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6699 #AC_SUBST(CWEB_LIBS)
6700 #AC_SUBST(CWEB_LDFLAGS)
6704 # -----------------------------------------------------------------------
6708 # -----------------------------------------------------------
6709 # Check whether user wants TCP wrappers support (default off)
6710 # -----------------------------------------------------------
6713 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6714 if test "${with_tcp_wrappers+set}" = set; then
6715 withval="$with_tcp_wrappers"
6717 if test "x$withval" != "xno" ; then
6719 LIBS="$saved_LIBS -lwrap"
6720 echo "$as_me:$LINENO: checking for libwrap" >&5
6721 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6722 cat >conftest.$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6730 int deny_severity = 0;
6731 int allow_severity = 0;
6732 struct request_info *req;
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -s conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755 echo "${ECHO_T}yes" >&6
6756 cat >>confdefs.h <<\_ACEOF
6757 #define HAVE_LIBWRAP 1
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6767 LIBS="$saved_LIBS -lwrap -lnsl"
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6776 int deny_severity = 0;
6777 int allow_severity = 0;
6778 struct request_info *req;
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -s conftest$ac_exeext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6800 echo "$as_me:$LINENO: result: yes" >&5
6801 echo "${ECHO_T}yes" >&6
6802 cat >>confdefs.h <<\_ACEOF
6803 #define HAVE_LIBWRAP 1
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6813 echo "$as_me: error: *** libwrap missing" >&2;}
6814 { (exit 1); exit 1; }; }
6817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6826 # ------------------------------------------
6827 # Where to place working dir
6828 # ------------------------------------------
6829 working_dir=`eval echo ${prefix}/var/bacula/working`
6831 # Check whether --with-working-dir or --without-working-dir was given.
6832 if test "${with_working_dir+set}" = set; then
6833 withval="$with_working_dir"
6835 if test "x$withval" != "xno" ; then
6836 working_dir=$withval
6845 # ------------------------------------------
6846 # Where to place scriptdir (script files)
6847 # ------------------------------------------
6848 scriptdir=`eval echo ${sysconfdir}`
6850 # Check whether --with-scriptdir or --without-scriptdir was given.
6851 if test "${with_scriptdir+set}" = set; then
6852 withval="$with_scriptdir"
6854 if test "x$withval" != "xno" ; then
6864 # ------------------------------------------
6865 # Where to send dump email
6866 # ------------------------------------------
6867 dump_email=root@localhost
6869 # Check whether --with-dump-email or --without-dump-email was given.
6870 if test "${with_dump_email+set}" = set; then
6871 withval="$with_dump_email"
6873 if test "x$withval" != "xno" ; then
6882 # ------------------------------------------
6883 # Where to send job email
6884 # ------------------------------------------
6885 job_email=root@localhost
6887 # Check whether --with-job-email or --without-job-email was given.
6888 if test "${with_job_email+set}" = set; then
6889 withval="$with_job_email"
6891 if test "x$withval" != "xno" ; then
6900 # ------------------------------------------
6901 # Where to find smtp host
6902 # ------------------------------------------
6905 # Check whether --with-smtp_host or --without-smtp_host was given.
6906 if test "${with_smtp_host+set}" = set; then
6907 withval="$with_smtp_host"
6909 if test "x$withval" != "xno" ; then
6919 # ------------------------------------
6920 # Where to place pid files
6921 # ------------------------------------
6924 # Check whether --with-pid-dir or --without-pid-dir was given.
6925 if test "${with_pid_dir+set}" = set; then
6926 withval="$with_pid_dir"
6928 if test "x$withval" != "xno" ; then
6935 cat >>confdefs.h <<_ACEOF
6936 #define _PATH_BACULA_PIDDIR "$piddir"
6942 # ------------------------------------
6943 # Where to place subsys "lock file"
6944 # ------------------------------------
6945 subsysdir=/var/run/subsys
6947 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6948 if test "${with_subsys_dir+set}" = set; then
6949 withval="$with_subsys_dir"
6951 if test "x$withval" != "xno" ; then
6962 # ------------------------------------
6963 # Where to start assigning ports
6964 # ------------------------------------
6967 # Check whether --with-baseport or --without-baseport was given.
6968 if test "${with_baseport+set}" = set; then
6969 withval="$with_baseport"
6971 if test "x$withval" != "xno" ; then
6979 dir_port=`expr $baseport`
6980 fd_port=`expr $baseport + 1`
6981 sd_port=`expr $fd_port + 1`
6988 # ------------------------------------------
6989 # Generate passwords
6990 # ------------------------------------------
6993 # Check whether --with-dir-password or --without-dir-password was given.
6994 if test "${with_dir_password+set}" = set; then
6995 withval="$with_dir_password"
6997 if test "x$withval" != "xno" ; then
6998 dir_password=$withval
7004 if test "x$dir_password" = "x" ; then
7005 if test "x$OPENSSL" = "xnone" ; then
7006 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7007 key=`autoconf/randpass 33`
7009 key=`openssl rand -base64 33`
7016 # Check whether --with-fd-password or --without-fd-password was given.
7017 if test "${with_fd_password+set}" = set; then
7018 withval="$with_fd_password"
7020 if test "x$withval" != "xno" ; then
7021 fd_password=$withval
7027 if test "x$fd_password" = "x" ; then
7028 if test "x$OPENSSL" = "xnone" ; then
7029 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7030 key=`autoconf/randpass 37`
7032 key=`openssl rand -base64 33`
7039 # Check whether --with-sd-password or --without-sd-password was given.
7040 if test "${with_sd_password+set}" = set; then
7041 withval="$with_sd_password"
7043 if test "x$withval" != "xno" ; then
7044 sd_password=$withval
7050 if test "x$sd_password" = "x" ; then
7051 if test "x$OPENSSL" = "xnone" ; then
7052 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7053 key=`autoconf/randpass 41`
7055 key=`openssl rand -base64 33`
7067 # Handle users and groups for each daemon
7071 # Check whether --with-dir_user or --without-dir_user was given.
7072 if test "${with_dir_user+set}" = set; then
7073 withval="$with_dir_user"
7075 if test "x$withval" != "x" ; then
7084 # Check whether --with-dir_group or --without-dir_group was given.
7085 if test "${with_dir_group+set}" = set; then
7086 withval="$with_dir_group"
7088 if test "x$withval" != "x" ; then
7097 # Check whether --with-sd_user or --without-sd_user was given.
7098 if test "${with_sd_user+set}" = set; then
7099 withval="$with_sd_user"
7101 if test "x$withval" != "x" ; then
7110 # Check whether --with-sd_group or --without-sd_group was given.
7111 if test "${with_sd_group+set}" = set; then
7112 withval="$with_sd_group"
7114 if test "x$withval" != "x" ; then
7123 # Check whether --with-fd_user or --without-fd_user was given.
7124 if test "${with_fd_user+set}" = set; then
7125 withval="$with_fd_user"
7127 if test "x$withval" != "x" ; then
7136 # Check whether --with-fd_group or --without-fd_group was given.
7137 if test "${with_fd_group+set}" = set; then
7138 withval="$with_fd_group"
7140 if test "x$withval" != "x" ; then
7157 # ------------------------------------------------
7158 # Bacula check for various SQL database engines
7159 # ------------------------------------------------
7162 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7163 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7165 # Check whether --with-postgresql or --without-postgresql was given.
7166 if test "${with_postgresql+set}" = set; then
7167 withval="$with_postgresql"
7169 if test "$withval" != "no"; then
7170 if test "$db_found" = "yes"; then
7171 echo "$as_me:$LINENO: result: error" >&5
7172 echo "${ECHO_T}error" >&6
7173 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7174 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7175 { (exit 1); exit 1; }; };
7177 if test "$withval" = "yes"; then
7178 if test -f /usr/local/include/libpq-fe.h; then
7179 POSTGRESQL_INCDIR=/usr/local/include
7180 POSTGRESQL_LIBDIR=/usr/local/lib
7181 POSTGRESQL_BINDIR=/usr/local/bin
7182 elif test -f /usr/include/libpq-fe.h; then
7183 POSTGRESQL_INCDIR=/usr/include
7184 POSTGRESQL_LIBDIR=/usr/lib
7185 POSTGRESQL_BINDIR=/usr/bin
7186 elif test -f /usr/include/pgsql/libpq-fe.h; then
7187 POSTGRESQL_INCDIR=/usr/include/pgsql
7188 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7189 POSTGRESQL_BINDIR=/usr/bin
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7194 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7195 { (exit 1); exit 1; }; }
7197 elif test -f $withval/libpq-fe.h; then
7198 POSTGRESQL_INCDIR=$withval
7199 POSTGRESQL_LIBDIR=$withval
7200 POSTGRESQL_BINDIR=$withval
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7205 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7206 { (exit 1); exit 1; }; }
7208 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7209 echo "$as_me:$LINENO: checking for crypt" >&5
7210 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7211 if test "${ac_cv_func_crypt+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 /* System header to define __stub macros and hopefully few prototypes,
7222 which can conflict with char crypt (); below.
7223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 <limits.h> exists even on freestanding compilers. */
7226 # include <limits.h>
7228 # include <assert.h>
7230 /* Override any gcc2 internal prototype to avoid an error. */
7235 /* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7238 /* The GNU C library defines this for functions which it implements
7239 to always fail with ENOSYS. Some functions are actually named
7240 something starting with __ and the normal name is an alias. */
7241 #if defined (__stub_crypt) || defined (__stub___crypt)
7244 char (*f) () = crypt;
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260 (eval $ac_link) 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_func_crypt=yes
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7279 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7280 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7281 if test $ac_cv_func_crypt = yes; then
7284 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7285 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7286 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-lcrypt $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7299 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_cv_lib_crypt_crypt=yes
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_cv_lib_crypt_crypt=no
7333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7337 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7338 if test $ac_cv_lib_crypt_crypt = yes; then
7339 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7344 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7345 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7346 SQL_BINDIR=$POSTGRESQL_BINDIR
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_POSTGRESQL 1
7351 echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7354 support_postgresql=yes
7358 echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7376 echo "$as_me:$LINENO: checking for MySQL support" >&5
7377 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7379 # Check whether --with-mysql or --without-mysql was given.
7380 if test "${with_mysql+set}" = set; then
7381 withval="$with_mysql"
7383 if test "$withval" != "no"; then
7384 if test "$withval" = "yes"; then
7385 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7386 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7387 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7388 MYSQL_BINDIR=/usr/local/mysql/bin
7389 elif test -f /usr/include/mysql/mysql.h; then
7390 MYSQL_INCDIR=/usr/include/mysql
7391 MYSQL_LIBDIR=/usr/lib/mysql
7392 MYSQL_BINDIR=/usr/bin
7393 elif test -f /usr/include/mysql.h; then
7394 MYSQL_INCDIR=/usr/include
7395 MYSQL_LIBDIR=/usr/lib
7396 MYSQL_BINDIR=/usr/bin
7397 elif test -f /usr/local/include/mysql/mysql.h; then
7398 MYSQL_INCDIR=/usr/local/include/mysql
7399 MYSQL_LIBDIR=/usr/local/lib/mysql
7400 MYSQL_BINDIR=/usr/local/bin
7401 elif test -f /usr/local/include/mysql.h; then
7402 MYSQL_INCDIR=/usr/local/include
7403 MYSQL_LIBDIR=/usr/local/lib
7404 MYSQL_BINDIR=/usr/local/bin
7406 echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7408 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7409 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7410 { (exit 1); exit 1; }; }
7413 if test -f $withval/include/mysql/mysql.h; then
7414 MYSQL_INCDIR=$withval/include/mysql
7415 MYSQL_LIBDIR=$withval/lib/mysql
7416 MYSQL_BINDIR=$withval/bin
7417 elif test -f $withval/include/mysql.h; then
7418 MYSQL_INCDIR=$withval/include
7419 MYSQL_LIBDIR=$withval/lib
7420 MYSQL_BINDIR=$withval/bin
7422 echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7424 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7425 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7426 { (exit 1); exit 1; }; }
7429 SQL_INCLUDE=-I$MYSQL_INCDIR
7430 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7431 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_THREAD_SAFE_MYSQL 1
7437 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7439 SQL_BINDIR=$MYSQL_BINDIR
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_MYSQL 1
7445 echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7453 echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6
7459 echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6
7465 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7466 if test "${with_embedded_mysql+set}" = set; then
7467 withval="$with_embedded_mysql"
7469 if test "$withval" != "no"; then
7470 if test "$withval" = "yes"; then
7471 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7472 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7473 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7474 MYSQL_BINDIR=/usr/local/mysql/bin
7475 elif test -f /usr/include/mysql/mysql.h; then
7476 MYSQL_INCDIR=/usr/include/mysql
7477 MYSQL_LIBDIR=/usr/lib/mysql
7478 MYSQL_BINDIR=/usr/bin
7479 elif test -f /usr/include/mysql.h; then
7480 MYSQL_INCDIR=/usr/include
7481 MYSQL_LIBDIR=/usr/lib
7482 MYSQL_BINDIR=/usr/bin
7483 elif test -f /usr/local/include/mysql/mysql.h; then
7484 MYSQL_INCDIR=/usr/local/include/mysql
7485 MYSQL_LIBDIR=/usr/local/lib/mysql
7486 MYSQL_BINDIR=/usr/local/bin
7487 elif test -f /usr/local/include/mysql.h; then
7488 MYSQL_INCDIR=/usr/local/include
7489 MYSQL_LIBDIR=/usr/local/lib
7490 MYSQL_BINDIR=/usr/local/bin
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7495 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7496 { (exit 1); exit 1; }; }
7499 if test -f $withval/include/mysql/mysql.h; then
7500 MYSQL_INCDIR=$withval/include/mysql
7501 MYSQL_LIBDIR=$withval/lib/mysql
7502 MYSQL_BINDIR=$withval/bin
7503 elif test -f $withval/include/mysql.h; then
7504 MYSQL_INCDIR=$withval/include
7505 MYSQL_LIBDIR=$withval/lib
7506 MYSQL_BINDIR=$withval/bin
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7511 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7512 { (exit 1); exit 1; }; }
7515 SQL_INCLUDE=-I$MYSQL_INCDIR
7516 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7517 SQL_BINDIR=$MYSQL_BINDIR
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_MYSQL 1
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_EMBEDDED_MYSQL 1
7527 echo "$as_me:$LINENO: result: yes" >&5
7528 echo "${ECHO_T}yes" >&6
7535 echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6
7541 echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7555 echo "$as_me:$LINENO: checking for SQLite support" >&5
7556 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7558 # Check whether --with-sqlite or --without-sqlite was given.
7559 if test "${with_sqlite+set}" = set; then
7560 withval="$with_sqlite"
7562 if test "$withval" != "no"; then
7563 if test "$withval" = "yes"; then
7564 if test -f /usr/local/include/sqlite.h; then
7565 SQLITE_INCDIR=/usr/local/include
7566 SQLITE_LIBDIR=/usr/local/lib
7567 SQLITE_BINDIR=/usr/local/bin
7568 elif test -f /usr/include/sqlite.h; then
7569 SQLITE_INCDIR=/usr/include
7570 SQLITE_LIBDIR=/usr/lib
7571 SQLITE_BINDIR=/usr/bin
7573 echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7575 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7576 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7577 { (exit 1); exit 1; }; }
7580 if test -f $withval/sqlite.h; then
7581 SQLITE_INCDIR=$withval
7582 SQLITE_LIBDIR=$withval
7583 SQLITE_BINDIR=$withval
7585 echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7588 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7589 { (exit 1); exit 1; }; }
7592 SQL_INCLUDE=-I$SQLITE_INCDIR
7593 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7594 SQL_BINDIR=$SQLITE_BINDIR
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_SQLITE 1
7600 echo "$as_me:$LINENO: result: yes" >&5
7601 echo "${ECHO_T}yes" >&6
7608 echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7627 cat >>confdefs.h <<\_ACEOF
7628 #define PROTOTYPES 1
7632 if test -z "$CFLAGS"; then
7633 if test -z "$CCOPTS"; then
7642 largefile_support="no"
7644 # Check whether --enable-largefile or --disable-largefile was given.
7645 if test "${enable_largefile+set}" = set; then
7646 enableval="$enable_largefile"
7649 if test "$enable_largefile" != no; then
7650 if test -n "$ac_tool_prefix"; then
7651 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7653 echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7655 if test "${ac_cv_prog_GETCONF+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 if test -n "$GETCONF"; then
7659 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 GETCONF=$ac_cv_prog_GETCONF
7678 if test -n "$GETCONF"; then
7679 echo "$as_me:$LINENO: result: $GETCONF" >&5
7680 echo "${ECHO_T}$GETCONF" >&6
7682 echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7687 if test -z "$ac_cv_prog_GETCONF"; then
7688 ac_ct_GETCONF=$GETCONF
7689 # Extract the first word of "getconf", so it can be a program name with args.
7690 set dummy getconf; ac_word=$2
7691 echo "$as_me:$LINENO: checking for $ac_word" >&5
7692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7693 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 if test -n "$ac_ct_GETCONF"; then
7697 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_ac_ct_GETCONF="getconf"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7716 if test -n "$ac_ct_GETCONF"; then
7717 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7718 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7720 echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6
7724 GETCONF=$ac_ct_GETCONF
7726 GETCONF="$ac_cv_prog_GETCONF"
7729 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7730 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7731 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7735 ac_cv_sys_largefile_CFLAGS=no
7737 # IRIX 6.2 and later require cc -n32.
7738 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7739 if test "$GCC" != yes; then
7740 ac_cv_sys_largefile_CFLAGS=-n32
7743 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7744 cat >conftest.$ac_ext <<_ACEOF
7745 #line $LINENO "configure"
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -s conftest$ac_exeext'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 ac_cv_sys_largefile_CFLAGS=no
7779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7785 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7786 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7787 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7788 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7792 ac_cv_sys_largefile_LDFLAGS=no
7796 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7797 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7798 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7799 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7800 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7804 ac_cv_sys_largefile_LIBS=no
7808 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7809 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7811 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7814 -D_FILE_OFFSET_BITS=*) ;;
7815 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7816 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7822 '') CPPFLAGS="$ac_flag" ;;
7823 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7831 '') CFLAGS="$ac_flag" ;;
7832 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7837 case "$ac_cv_sys_largefile_LDFLAGS" in
7841 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7842 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7845 case "$ac_cv_sys_largefile_LIBS" in
7849 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7850 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7853 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7854 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7855 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 ac_cv_sys_file_offset_bits=no
7860 # HP-UX 10.20 and later
7861 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7862 ac_cv_sys_file_offset_bits=64 ;;
7864 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7866 -D_FILE_OFFSET_BITS)
7867 ac_cv_sys_file_offset_bits=1 ;;
7868 -D_FILE_OFFSET_BITS=*)
7869 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7874 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7875 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7876 if test "$ac_cv_sys_file_offset_bits" != no; then
7878 cat >>confdefs.h <<_ACEOF
7879 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7883 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7884 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7885 if test "${ac_cv_sys_largefile_source+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 ac_cv_sys_largefile_source=no
7890 # HP-UX 10.20 and later
7891 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7892 ac_cv_sys_largefile_source=1 ;;
7894 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7896 -D_LARGEFILE_SOURCE)
7897 ac_cv_sys_largefile_source=1 ;;
7898 -D_LARGEFILE_SOURCE=*)
7899 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7904 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7905 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7906 if test "$ac_cv_sys_largefile_source" != no; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7913 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7914 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7915 if test "${ac_cv_sys_large_files+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_cv_sys_large_files=no
7921 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7922 ac_cv_sys_large_files=1 ;;
7924 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7927 ac_cv_sys_large_files=1 ;;
7929 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7934 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7935 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7936 if test "$ac_cv_sys_large_files" != no; then
7938 cat >>confdefs.h <<_ACEOF
7939 #define _LARGE_FILES $ac_cv_sys_large_files
7947 echo "$as_me:$LINENO: checking for X" >&5
7948 echo $ECHO_N "checking for X... $ECHO_C" >&6
7951 # Check whether --with-x or --without-x was given.
7952 if test "${with_x+set}" = set; then
7956 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7957 if test "x$with_x" = xno; then
7958 # The user explicitly disabled X.
7961 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7962 # Both variables are already set.
7965 if test "${ac_cv_have_x+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 # One or both of the vars are not set, and there is no cached value.
7969 ac_x_includes=no ac_x_libraries=no
7971 if mkdir conftest.dir; then
7973 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7974 cat >Imakefile <<'_ACEOF'
7976 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7978 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7980 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7981 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7982 for ac_extension in a so sl; do
7983 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7984 test -f $ac_im_libdir/libX11.$ac_extension; then
7985 ac_im_usrlibdir=$ac_im_libdir; break
7988 # Screen out bogus values from the imake configuration. They are
7989 # bogus both because they are the default anyway, and because
7990 # using them would break gcc on systems where it needs fixed includes.
7991 case $ac_im_incroot in
7993 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7995 case $ac_im_usrlibdir in
7997 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8004 # Standard set of common directories for X headers.
8005 # Check X11 before X11Rn because it is often a symlink to the current release.
8017 /usr/local/X11/include
8018 /usr/local/X11R6/include
8019 /usr/local/X11R5/include
8020 /usr/local/X11R4/include
8022 /usr/local/include/X11
8023 /usr/local/include/X11R6
8024 /usr/local/include/X11R5
8025 /usr/local/include/X11R4
8029 /usr/XFree86/include/X11
8033 /usr/unsupported/include
8035 /usr/local/x11r5/include
8036 /usr/lpp/Xamples/include
8038 /usr/openwin/include
8039 /usr/openwin/share/include'
8041 if test "$ac_x_includes" = no; then
8042 # Guess where to find include files, by looking for Intrinsic.h.
8043 # First, try using that file with no special directory specified.
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <X11/Intrinsic.h>
8053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } >/dev/null; then
8061 if test -s conftest.err; then
8062 ac_cpp_err=$ac_c_preproc_warn_flag
8069 if test -z "$ac_cpp_err"; then
8070 # We can compile using X headers with no special include directory.
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 for ac_dir in $ac_x_header_dirs; do
8077 if test -r "$ac_dir/X11/Intrinsic.h"; then
8078 ac_x_includes=$ac_dir
8083 rm -f conftest.err conftest.$ac_ext
8084 fi # $ac_x_includes = no
8086 if test "$ac_x_libraries" = no; then
8087 # Check for the libraries.
8088 # See if we find them without any special options.
8089 # Don't add to $LIBS permanently.
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 #include <X11/Intrinsic.h>
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8121 # We can link X programs with no special library path.
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8128 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8130 # Don't even attempt the hair of trying to link an X program!
8131 for ac_extension in a so sl; do
8132 if test -r $ac_dir/libXt.$ac_extension; then
8133 ac_x_libraries=$ac_dir
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 fi # $ac_x_libraries = no
8142 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8143 # Didn't find X anywhere. Cache the known absence of X.
8144 ac_cv_have_x="have_x=no"
8146 # Record where we found X for the cache.
8147 ac_cv_have_x="have_x=yes \
8148 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8153 eval "$ac_cv_have_x"
8156 if test "$have_x" != yes; then
8157 echo "$as_me:$LINENO: result: $have_x" >&5
8158 echo "${ECHO_T}$have_x" >&6
8161 # If each of the values was on the command line, it overrides each guess.
8162 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8163 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8164 # Update the cache value to reflect the command line values.
8165 ac_cv_have_x="have_x=yes \
8166 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8167 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8168 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8171 if test "$no_x" = yes; then
8172 # Not all programs may use this symbol, but it does not hurt to define it.
8174 cat >>confdefs.h <<\_ACEOF
8175 #define X_DISPLAY_MISSING 1
8178 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8180 if test -n "$x_includes"; then
8181 X_CFLAGS="$X_CFLAGS -I$x_includes"
8184 # It would also be nice to do this for all -L options, not just this one.
8185 if test -n "$x_libraries"; then
8186 X_LIBS="$X_LIBS -L$x_libraries"
8187 # For Solaris; some versions of Sun CC require a space after -R and
8188 # others require no space. Words are not sufficient . . . .
8189 case `(uname -sr) 2>/dev/null` in
8191 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8192 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8193 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -s conftest$ac_exeext'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8230 if test $ac_R_nospace = yes; then
8231 echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8233 X_LIBS="$X_LIBS -R$x_libraries"
8235 LIBS="$ac_xsave_LIBS -R $x_libraries"
8236 cat >conftest.$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8272 if test $ac_R_space = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274 echo "${ECHO_T}yes" >&6
8275 X_LIBS="$X_LIBS -R $x_libraries"
8277 echo "$as_me:$LINENO: result: neither works" >&5
8278 echo "${ECHO_T}neither works" >&6
8285 # Check for system-dependent libraries X programs must link with.
8286 # Do this before checking for the system-independent R6 libraries
8287 # (-lICE), since we may need -lsocket or whatever for X linking.
8289 if test "$ISC" = yes; then
8290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8292 # Martyn Johnson says this is needed for Ultrix, if the X
8293 # libraries were built with DECnet support. And Karl Berry says
8294 # the Alpha needs dnet_stub (dnet does not exist).
8295 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8304 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8310 char XOpenDisplay ();
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8337 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 ac_check_lib_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8351 /* Override any gcc2 internal prototype to avoid an error. */
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_lib_dnet_dnet_ntoa=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_lib_dnet_dnet_ntoa=no
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8390 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8391 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8394 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8395 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8396 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8397 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 ac_check_lib_save_LIBS=$LIBS
8401 LIBS="-ldnet_stub $LIBS"
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_cv_lib_dnet_stub_dnet_ntoa=no
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8448 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8449 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8450 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8456 LIBS="$ac_xsave_LIBS"
8458 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8459 # to get the SysV transport functions.
8460 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8462 # The nsl library prevents programs from opening the X display
8463 # on Irix 5.2, according to T.E. Dickey.
8464 # The functions gethostbyname, getservbyname, and inet_addr are
8465 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8466 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8467 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8468 if test "${ac_cv_func_gethostbyname+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 /* System header to define __stub macros and hopefully few prototypes,
8479 which can conflict with char gethostbyname (); below.
8480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8481 <limits.h> exists even on freestanding compilers. */
8483 # include <limits.h>
8485 # include <assert.h>
8487 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char gethostbyname ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8501 char (*f) () = gethostbyname;
8510 return f != gethostbyname;
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -s conftest$ac_exeext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 ac_cv_func_gethostbyname=yes
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_func_gethostbyname=no
8534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8537 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8539 if test $ac_cv_func_gethostbyname = no; then
8540 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8541 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8542 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 ac_check_lib_save_LIBS=$LIBS
8547 cat >conftest.$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 /* Override any gcc2 internal prototype to avoid an error. */
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561 char gethostbyname ();
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572 (eval $ac_link) 2>&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_lib_nsl_gethostbyname=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_lib_nsl_gethostbyname=no
8589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8590 LIBS=$ac_check_lib_save_LIBS
8592 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8593 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8594 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8598 if test $ac_cv_lib_nsl_gethostbyname = no; then
8599 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8600 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8601 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 ac_check_lib_save_LIBS=$LIBS
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 /* Override any gcc2 internal prototype to avoid an error. */
8618 /* We use char because int might match the return type of a gcc2
8619 builtin and then its argument prototype would still apply. */
8620 char gethostbyname ();
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631 (eval $ac_link) 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_lib_bsd_gethostbyname=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_bsd_gethostbyname=no
8648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8649 LIBS=$ac_check_lib_save_LIBS
8651 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8652 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8653 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8660 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8661 # socket/setsockopt and other routines are undefined under SCO ODT
8662 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8663 # on later versions), says Simon Leinen: it contains gethostby*
8664 # variants that don't use the name server (or something). -lsocket
8665 # must be given before -lnsl if both are needed. We assume that
8666 # if connect needs -lnsl, so does gethostbyname.
8667 echo "$as_me:$LINENO: checking for connect" >&5
8668 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8669 if test "${ac_cv_func_connect+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8673 #line $LINENO "configure"
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 /* System header to define __stub macros and hopefully few prototypes,
8680 which can conflict with char connect (); below.
8681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8682 <limits.h> exists even on freestanding compilers. */
8684 # include <limits.h>
8686 # include <assert.h>
8688 /* Override any gcc2 internal prototype to avoid an error. */
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8696 /* The GNU C library defines this for functions which it implements
8697 to always fail with ENOSYS. Some functions are actually named
8698 something starting with __ and the normal name is an alias. */
8699 #if defined (__stub_connect) || defined (__stub___connect)
8702 char (*f) () = connect;
8711 return f != connect;
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 (eval $ac_link) 2>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_cv_func_connect=yes
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_cv_func_connect=no
8735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8738 echo "${ECHO_T}$ac_cv_func_connect" >&6
8740 if test $ac_cv_func_connect = no; then
8741 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8742 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8743 if test "${ac_cv_lib_socket_connect+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8756 /* Override any gcc2 internal prototype to avoid an error. */
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8773 (eval $ac_link) 2>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -s conftest$ac_exeext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_cv_lib_socket_connect=yes
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_cv_lib_socket_connect=no
8790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8793 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8794 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8795 if test $ac_cv_lib_socket_connect = yes; then
8796 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8801 # Guillermo Gomez says -lposix is necessary on A/UX.
8802 echo "$as_me:$LINENO: checking for remove" >&5
8803 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8804 if test "${ac_cv_func_remove+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 /* System header to define __stub macros and hopefully few prototypes,
8815 which can conflict with char remove (); below.
8816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8817 <limits.h> exists even on freestanding compilers. */
8819 # include <limits.h>
8821 # include <assert.h>
8823 /* Override any gcc2 internal prototype to avoid an error. */
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8831 /* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834 #if defined (__stub_remove) || defined (__stub___remove)
8837 char (*f) () = remove;
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_func_remove=yes
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_func_remove=no
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8873 echo "${ECHO_T}$ac_cv_func_remove" >&6
8875 if test $ac_cv_func_remove = no; then
8876 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8877 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8878 if test "${ac_cv_lib_posix_remove+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 ac_check_lib_save_LIBS=$LIBS
8882 LIBS="-lposix $LIBS"
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any gcc2 internal prototype to avoid an error. */
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_lib_posix_remove=yes
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ac_cv_lib_posix_remove=no
8925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8926 LIBS=$ac_check_lib_save_LIBS
8928 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8929 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8930 if test $ac_cv_lib_posix_remove = yes; then
8931 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8936 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8937 echo "$as_me:$LINENO: checking for shmat" >&5
8938 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8939 if test "${ac_cv_func_shmat+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8943 #line $LINENO "configure"
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char shmat (); below.
8951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952 <limits.h> exists even on freestanding compilers. */
8954 # include <limits.h>
8956 # include <assert.h>
8958 /* Override any gcc2 internal prototype to avoid an error. */
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8966 /* The GNU C library defines this for functions which it implements
8967 to always fail with ENOSYS. Some functions are actually named
8968 something starting with __ and the normal name is an alias. */
8969 #if defined (__stub_shmat) || defined (__stub___shmat)
8972 char (*f) () = shmat;
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_func_shmat=yes
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9008 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9010 if test $ac_cv_func_shmat = no; then
9011 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9012 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9013 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 ac_check_lib_save_LIBS=$LIBS
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 /* Override any gcc2 internal prototype to avoid an error. */
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -s conftest$ac_exeext'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_lib_ipc_shmat=yes
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9058 ac_cv_lib_ipc_shmat=no
9060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9063 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9064 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9065 if test $ac_cv_lib_ipc_shmat = yes; then
9066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9072 # Check for libraries that X11R6 Xt/Xaw programs need.
9073 ac_save_LDFLAGS=$LDFLAGS
9074 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9075 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9076 # check for ICE first), but we must link in the order -lSM -lICE or
9077 # we get undefined symbols. So assume we have SM if we have ICE.
9078 # These have to be linked with before -lX11, unlike the other
9079 # libraries we check for below, so use a different variable.
9080 # John Interrante, Karl Berry
9081 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9082 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9083 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9088 cat >conftest.$ac_ext <<_ACEOF
9089 #line $LINENO "configure"
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any gcc2 internal prototype to avoid an error. */
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102 char IceConnectionNumber ();
9106 IceConnectionNumber ();
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_lib_ICE_IceConnectionNumber=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_cv_lib_ICE_IceConnectionNumber=no
9130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9133 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9134 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9135 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9136 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9139 LDFLAGS=$ac_save_LDFLAGS
9191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9193 echo "$as_me:$LINENO: checking for $ac_header" >&5
9194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9201 # Is the header compilable?
9202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9204 cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 #include <$ac_header>
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -s conftest.$ac_objext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_header_compiler=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_header_compiler=no
9233 rm -f conftest.$ac_objext conftest.$ac_ext
9234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9235 echo "${ECHO_T}$ac_header_compiler" >&6
9237 # Is the header present?
9238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9241 #line $LINENO "configure"
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <$ac_header>
9249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } >/dev/null; then
9257 if test -s conftest.err; then
9258 ac_cpp_err=$ac_c_preproc_warn_flag
9265 if test -z "$ac_cpp_err"; then
9266 ac_header_preproc=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_header_preproc=no
9273 rm -f conftest.err conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9275 echo "${ECHO_T}$ac_header_preproc" >&6
9277 # So? What about this header?
9278 case $ac_header_compiler:$ac_header_preproc in
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9286 ## ------------------------------------ ##
9287 ## Report this to bug-autoconf@gnu.org. ##
9288 ## ------------------------------------ ##
9291 sed "s/^/$as_me: WARNING: /" >&2
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9302 ## ------------------------------------ ##
9303 ## Report this to bug-autoconf@gnu.org. ##
9304 ## ------------------------------------ ##
9307 sed "s/^/$as_me: WARNING: /" >&2
9310 echo "$as_me:$LINENO: checking for $ac_header" >&5
9311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 eval "$as_ac_Header=$ac_header_preproc"
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9332 if test "${ac_cv_header_stdc+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_header_stdc=yes
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_cv_header_stdc=no
9374 rm -f conftest.$ac_objext conftest.$ac_ext
9376 if test $ac_cv_header_stdc = yes; then
9377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9378 cat >conftest.$ac_ext <<_ACEOF
9379 #line $LINENO "configure"
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9389 $EGREP "memchr" >/dev/null 2>&1; then
9392 ac_cv_header_stdc=no
9398 if test $ac_cv_header_stdc = yes; then
9399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9400 cat >conftest.$ac_ext <<_ACEOF
9401 #line $LINENO "configure"
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9411 $EGREP "free" >/dev/null 2>&1; then
9414 ac_cv_header_stdc=no
9420 if test $ac_cv_header_stdc = yes; then
9421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9422 if test "$cross_compiling" = yes; then
9425 cat >conftest.$ac_ext <<_ACEOF
9426 #line $LINENO "configure"
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 #if ((' ' & 0x0FF) == 0x020)
9434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9437 # define ISLOWER(c) \
9438 (('a' <= (c) && (c) <= 'i') \
9439 || ('j' <= (c) && (c) <= 'r') \
9440 || ('s' <= (c) && (c) <= 'z'))
9441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9449 for (i = 0; i < 256; i++)
9450 if (XOR (islower (i), ISLOWER (i))
9451 || toupper (i) != TOUPPER (i))
9456 rm -f conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9469 echo "$as_me: program exited with status $ac_status" >&5
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9474 ac_cv_header_stdc=no
9476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9482 if test $ac_cv_header_stdc = yes; then
9484 cat >>confdefs.h <<\_ACEOF
9485 #define STDC_HEADERS 1
9490 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9491 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9492 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 #include <sys/types.h>
9506 return makedev(0, 0);
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_header_sys_types_h_makedev=yes
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_cv_header_sys_types_h_makedev=no
9530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9534 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9536 if test $ac_cv_header_sys_types_h_makedev = no; then
9537 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9538 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9539 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9540 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9544 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9546 # Is the header compilable?
9547 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9548 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 $ac_includes_default
9557 #include <sys/mkdev.h>
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_header_compiler=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_header_compiler=no
9578 rm -f conftest.$ac_objext conftest.$ac_ext
9579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9580 echo "${ECHO_T}$ac_header_compiler" >&6
9582 # Is the header present?
9583 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9584 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 #include <sys/mkdev.h>
9594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9597 grep -v '^ *+' conftest.er1 >conftest.err
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } >/dev/null; then
9602 if test -s conftest.err; then
9603 ac_cpp_err=$ac_c_preproc_warn_flag
9610 if test -z "$ac_cpp_err"; then
9611 ac_header_preproc=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_header_preproc=no
9618 rm -f conftest.err conftest.$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9620 echo "${ECHO_T}$ac_header_preproc" >&6
9622 # So? What about this header?
9623 case $ac_header_compiler:$ac_header_preproc in
9625 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9631 ## ------------------------------------ ##
9632 ## Report this to bug-autoconf@gnu.org. ##
9633 ## ------------------------------------ ##
9636 sed "s/^/$as_me: WARNING: /" >&2
9639 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9644 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9647 ## ------------------------------------ ##
9648 ## Report this to bug-autoconf@gnu.org. ##
9649 ## ------------------------------------ ##
9652 sed "s/^/$as_me: WARNING: /" >&2
9655 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9656 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9657 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9663 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9666 if test $ac_cv_header_sys_mkdev_h = yes; then
9668 cat >>confdefs.h <<\_ACEOF
9669 #define MAJOR_IN_MKDEV 1
9676 if test $ac_cv_header_sys_mkdev_h = no; then
9677 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9678 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9679 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9680 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9684 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9686 # Is the header compilable?
9687 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9688 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 $ac_includes_default
9697 #include <sys/sysmacros.h>
9699 rm -f conftest.$ac_objext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9701 (eval $ac_compile) 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_header_compiler=yes
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 ac_header_compiler=no
9718 rm -f conftest.$ac_objext conftest.$ac_ext
9719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9720 echo "${ECHO_T}$ac_header_compiler" >&6
9722 # Is the header present?
9723 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9724 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <sys/sysmacros.h>
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9750 if test -z "$ac_cpp_err"; then
9751 ac_header_preproc=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_header_preproc=no
9758 rm -f conftest.err conftest.$ac_ext
9759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9760 echo "${ECHO_T}$ac_header_preproc" >&6
9762 # So? What about this header?
9763 case $ac_header_compiler:$ac_header_preproc in
9765 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9771 ## ------------------------------------ ##
9772 ## Report this to bug-autoconf@gnu.org. ##
9773 ## ------------------------------------ ##
9776 sed "s/^/$as_me: WARNING: /" >&2
9779 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9780 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9782 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9784 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9787 ## ------------------------------------ ##
9788 ## Report this to bug-autoconf@gnu.org. ##
9789 ## ------------------------------------ ##
9792 sed "s/^/$as_me: WARNING: /" >&2
9795 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9796 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9797 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9803 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9806 if test $ac_cv_header_sys_sysmacros_h = yes; then
9808 cat >>confdefs.h <<\_ACEOF
9809 #define MAJOR_IN_SYSMACROS 1
9824 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9825 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9826 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9827 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 cat >conftest.$ac_ext <<_ACEOF
9832 #line $LINENO "configure"
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 #include <sys/types.h>
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest.$ac_objext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 eval "$as_ac_Header=yes"
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 eval "$as_ac_Header=no"
9869 rm -f conftest.$ac_objext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9878 ac_header_dirent=$ac_hdr; break
9882 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9883 if test $ac_header_dirent = dirent.h; then
9884 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9886 if test "${ac_cv_search_opendir+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_func_search_save_LIBS=$LIBS
9890 ac_cv_search_opendir=no
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9899 /* Override any gcc2 internal prototype to avoid an error. */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916 (eval $ac_link) 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_search_opendir="none required"
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933 if test "$ac_cv_search_opendir" = no; then
9934 for ac_lib in dir; do
9935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9936 cat >conftest.$ac_ext <<_ACEOF
9937 #line $LINENO "configure"
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9944 /* Override any gcc2 internal prototype to avoid an error. */
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_search_opendir="-l$ac_lib"
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9981 LIBS=$ac_func_search_save_LIBS
9983 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9984 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9985 if test "$ac_cv_search_opendir" != no; then
9986 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9991 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9992 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9993 if test "${ac_cv_search_opendir+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 ac_func_search_save_LIBS=$LIBS
9997 ac_cv_search_opendir=no
9998 cat >conftest.$ac_ext <<_ACEOF
9999 #line $LINENO "configure"
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10006 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_search_opendir="none required"
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10040 if test "$ac_cv_search_opendir" = no; then
10041 for ac_lib in x; do
10042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10051 /* Override any gcc2 internal prototype to avoid an error. */
10055 /* We use char because int might match the return type of a gcc2
10056 builtin and then its argument prototype would still apply. */
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_search_opendir="-l$ac_lib"
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_func_search_save_LIBS
10090 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10091 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10092 if test "$ac_cv_search_opendir" != no; then
10093 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10099 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10100 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10101 if test "${ac_cv_header_stat_broken+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 #include <sys/types.h>
10112 #include <sys/stat.h>
10114 #if defined(S_ISBLK) && defined(S_IFDIR)
10115 # if S_ISBLK (S_IFDIR)
10120 #if defined(S_ISBLK) && defined(S_IFCHR)
10121 # if S_ISBLK (S_IFCHR)
10126 #if defined(S_ISLNK) && defined(S_IFREG)
10127 # if S_ISLNK (S_IFREG)
10132 #if defined(S_ISSOCK) && defined(S_IFREG)
10133 # if S_ISSOCK (S_IFREG)
10139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10140 $EGREP "You lose" >/dev/null 2>&1; then
10141 ac_cv_header_stat_broken=yes
10143 ac_cv_header_stat_broken=no
10148 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10149 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10150 if test $ac_cv_header_stat_broken = yes; then
10152 cat >>confdefs.h <<\_ACEOF
10153 #define STAT_MACROS_BROKEN 1
10158 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10159 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10160 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #include <sys/types.h>
10171 #include <sys/wait.h>
10172 #ifndef WEXITSTATUS
10173 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10184 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_header_sys_wait_h=yes
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_cv_header_sys_wait_h=no
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10212 if test $ac_cv_header_sys_wait_h = yes; then
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_SYS_WAIT_H 1
10220 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10221 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10222 if test "${ac_cv_header_time+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 #include <sys/types.h>
10233 #include <sys/time.h>
10239 if ((struct tm *) 0)
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_header_time=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_header_time=no
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10266 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10267 echo "${ECHO_T}$ac_cv_header_time" >&6
10268 if test $ac_cv_header_time = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define TIME_WITH_SYS_TIME 1
10277 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10278 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10279 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10283 #line $LINENO "configure"
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10293 static struct stat ac_aggr;
10294 if (ac_aggr.st_blksize)
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_member_struct_stat_st_blksize=yes
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10328 static struct stat ac_aggr;
10329 if (sizeof ac_aggr.st_blksize)
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_member_struct_stat_st_blksize=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_cv_member_struct_stat_st_blksize=no
10354 rm -f conftest.$ac_objext conftest.$ac_ext
10356 rm -f conftest.$ac_objext conftest.$ac_ext
10358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10359 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10360 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_ST_BLKSIZE 1
10374 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10375 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10376 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 $ac_includes_default
10390 static struct stat ac_aggr;
10391 if (ac_aggr.st_blocks)
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_member_struct_stat_st_blocks=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 $ac_includes_default
10425 static struct stat ac_aggr;
10426 if (sizeof ac_aggr.st_blocks)
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 ac_cv_member_struct_stat_st_blocks=yes
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_member_struct_stat_st_blocks=no
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10453 rm -f conftest.$ac_objext conftest.$ac_ext
10455 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10456 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10457 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10459 cat >>confdefs.h <<_ACEOF
10460 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10464 cat >>confdefs.h <<\_ACEOF
10465 #define HAVE_ST_BLOCKS 1
10469 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10473 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10474 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10475 if test "${ac_cv_struct_tm+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10479 #line $LINENO "configure"
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <sys/types.h>
10491 struct tm *tp; tp->tm_sec;
10496 rm -f conftest.$ac_objext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -s conftest.$ac_objext'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_struct_tm=time.h
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_cv_struct_tm=sys/time.h
10515 rm -f conftest.$ac_objext conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10518 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10519 if test $ac_cv_struct_tm = sys/time.h; then
10521 cat >>confdefs.h <<\_ACEOF
10522 #define TM_IN_SYS_TIME 1
10527 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10533 #line $LINENO "configure"
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 #include <sys/types.h>
10540 #include <$ac_cv_struct_tm>
10546 static struct tm ac_aggr;
10547 if (ac_aggr.tm_zone)
10553 rm -f conftest.$ac_objext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555 (eval $ac_compile) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_member_struct_tm_tm_zone=yes
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 cat >conftest.$ac_ext <<_ACEOF
10571 #line $LINENO "configure"
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <sys/types.h>
10578 #include <$ac_cv_struct_tm>
10584 static struct tm ac_aggr;
10585 if (sizeof ac_aggr.tm_zone)
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593 (eval $ac_compile) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -s conftest.$ac_objext'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10603 ac_cv_member_struct_tm_tm_zone=yes
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_cv_member_struct_tm_tm_zone=no
10610 rm -f conftest.$ac_objext conftest.$ac_ext
10612 rm -f conftest.$ac_objext conftest.$ac_ext
10614 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10615 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10616 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10618 cat >>confdefs.h <<_ACEOF
10619 #define HAVE_STRUCT_TM_TM_ZONE 1
10625 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10627 cat >>confdefs.h <<\_ACEOF
10628 #define HAVE_TM_ZONE 1
10632 echo "$as_me:$LINENO: checking for tzname" >&5
10633 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10634 if test "${ac_cv_var_tzname+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10638 #line $LINENO "configure"
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10645 #ifndef tzname /* For SGI. */
10646 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_var_tzname=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_var_tzname=no
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10678 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10679 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10680 if test $ac_cv_var_tzname = yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_TZNAME 1
10690 echo "$as_me:$LINENO: checking for utime.h" >&5
10691 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10692 if test "${ba_cv_header_utime_h+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 cat >conftest.$ac_ext <<_ACEOF
10696 #line $LINENO "configure"
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10703 #include <sys/types.h>
10713 rm -f conftest.$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715 (eval $ac_compile) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ba_cv_header_utime_h=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ba_cv_header_utime_h=no
10732 rm -f conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10735 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10736 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_UTIME_H 1
10741 echo "$as_me:$LINENO: checking for socklen_t" >&5
10742 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10743 if test "${ba_cv_header_socklen_t+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 cat >conftest.$ac_ext <<_ACEOF
10747 #line $LINENO "configure"
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 #include <sys/types.h>
10755 #include <sys/socket.h>
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -s conftest.$ac_objext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ba_cv_header_socklen_t=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ba_cv_header_socklen_t=no
10783 rm -f conftest.$ac_objext conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10786 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10787 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10788 #define HAVE_SOCKLEN_T 1
10792 echo "$as_me:$LINENO: checking for bigendian" >&5
10793 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10794 if test "${ba_cv_bigendian+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 if test "$cross_compiling" = yes; then
10800 cat >conftest.$ac_ext <<_ACEOF
10801 #line $LINENO "configure"
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10809 rm -f conftest$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ba_cv_bigendian=yes
10822 echo "$as_me: program exited with status $ac_status" >&5
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ( exit $ac_status )
10829 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10833 echo "${ECHO_T}$ba_cv_bigendian" >&6
10834 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_BIGENDIAN 1
10840 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10842 if test "${ac_cv_c_const+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10846 #line $LINENO "configure"
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10856 /* FIXME: Include the comments suggested by Paul. */
10857 #ifndef __cplusplus
10858 /* Ultrix mips cc rejects this. */
10859 typedef int charset[2];
10861 /* SunOS 4.1.1 cc rejects this. */
10862 char const *const *ccp;
10864 /* NEC SVR4.0.2 mips cc rejects this. */
10865 struct point {int x, y;};
10866 static struct point const zero = {0,0};
10867 /* AIX XL C 1.02.0.0 rejects this.
10868 It does not let you subtract one const X* pointer from another in
10869 an arm of an if-expression whose if-part is not a constant
10871 const char *g = "string";
10872 ccp = &g + (g ? g-g : 0);
10873 /* HPUX 7.0 cc rejects these. */
10876 ccp = (char const *const *) p;
10877 { /* SCO 3.2v4 cc rejects this. */
10879 char const *s = 0 ? (char *) 0 : (char const *) 0;
10883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10884 int x[] = {25, 17};
10885 const int *foo = &x[0];
10888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10889 typedef const int *iptr;
10893 { /* AIX XL C 1.02.0.0 rejects this saying
10894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10895 struct s { int j; const int *ap[3]; };
10896 struct s *b; b->j = 5;
10898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10899 const int foo = 10;
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10926 rm -f conftest.$ac_objext conftest.$ac_ext
10928 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10929 echo "${ECHO_T}$ac_cv_c_const" >&6
10930 if test $ac_cv_c_const = no; then
10932 cat >>confdefs.h <<\_ACEOF
10940 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10941 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10943 # The order of these tests is important.
10944 cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <sys/statvfs.h>
10952 #include <sys/fstyp.h>
10954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } >/dev/null; then
10962 if test -s conftest.err; then
10963 ac_cpp_err=$ac_c_preproc_warn_flag
10970 if test -z "$ac_cpp_err"; then
10971 cat >>confdefs.h <<\_ACEOF
10972 #define FSTYPE_STATVFS 1
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10981 rm -f conftest.err conftest.$ac_ext
10982 if test $fstype = no; then
10983 cat >conftest.$ac_ext <<_ACEOF
10984 #line $LINENO "configure"
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <sys/statfs.h>
10991 #include <sys/fstyp.h>
10993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } >/dev/null; then
11001 if test -s conftest.err; then
11002 ac_cpp_err=$ac_c_preproc_warn_flag
11009 if test -z "$ac_cpp_err"; then
11010 cat >>confdefs.h <<\_ACEOF
11011 #define FSTYPE_USG_STATFS 1
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11020 rm -f conftest.err conftest.$ac_ext
11022 if test $fstype = no; then
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 #include <sys/statfs.h>
11031 #include <sys/vmount.h>
11033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11036 grep -v '^ *+' conftest.er1 >conftest.err
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } >/dev/null; then
11041 if test -s conftest.err; then
11042 ac_cpp_err=$ac_c_preproc_warn_flag
11049 if test -z "$ac_cpp_err"; then
11050 cat >>confdefs.h <<\_ACEOF
11051 #define FSTYPE_AIX_STATFS 1
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11060 rm -f conftest.err conftest.$ac_ext
11062 if test $fstype = no; then
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line $LINENO "configure"
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <mntent.h>
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11088 if test -z "$ac_cpp_err"; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define FSTYPE_MNTENT 1
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11099 rm -f conftest.err conftest.$ac_ext
11101 if test $fstype = no; then
11102 cat >conftest.$ac_ext <<_ACEOF
11103 #line $LINENO "configure"
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 #include <sys/mount.h>
11112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11113 $EGREP "f_type;" >/dev/null 2>&1; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define FSTYPE_STATFS 1
11122 if test $fstype = no; then
11123 cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 #include <sys/mount.h>
11131 #include <sys/fs_types.h>
11133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11136 grep -v '^ *+' conftest.er1 >conftest.err
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } >/dev/null; then
11141 if test -s conftest.err; then
11142 ac_cpp_err=$ac_c_preproc_warn_flag
11149 if test -z "$ac_cpp_err"; then
11150 cat >>confdefs.h <<\_ACEOF
11151 #define FSTYPE_GETMNT 1
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11160 rm -f conftest.err conftest.$ac_ext
11162 echo "$as_me:$LINENO: result: $fstype" >&5
11163 echo "${ECHO_T}$fstype" >&6
11165 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11166 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11167 if test "${ac_cv_type_signal+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <sys/types.h>
11178 #include <signal.h>
11183 extern "C" void (*signal (int, void (*)(int)))(int);
11185 void (*signal ()) ();
11196 rm -f conftest.$ac_objext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198 (eval $ac_compile) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } &&
11202 { ac_try='test -s conftest.$ac_objext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_cv_type_signal=void
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_cv_type_signal=int
11215 rm -f conftest.$ac_objext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11218 echo "${ECHO_T}$ac_cv_type_signal" >&6
11220 cat >>confdefs.h <<_ACEOF
11221 #define RETSIGTYPE $ac_cv_type_signal
11226 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11227 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11228 if test "${bash_cv_signal_vintage+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 cat >conftest.$ac_ext <<_ACEOF
11233 #line $LINENO "configure"
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #include <signal.h>
11245 struct sigaction sa;
11246 sigemptyset(&ss); sigsuspend(&ss);
11247 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11248 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -s conftest$ac_exeext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 bash_cv_signal_vintage=posix
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11272 cat >conftest.$ac_ext <<_ACEOF
11273 #line $LINENO "configure"
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <signal.h>
11284 int mask = sigmask(SIGINT);
11285 sigsetmask(mask); sigblock(mask); sigpause(mask);
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -s conftest$ac_exeext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 bash_cv_signal_vintage=4.2bsd
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11309 cat >conftest.$ac_ext <<_ACEOF
11310 #line $LINENO "configure"
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11317 #include <signal.h>
11318 RETSIGTYPE foo() { }
11323 int mask = sigmask(SIGINT);
11324 sigset(SIGINT, foo); sigrelse(SIGINT);
11325 sighold(SIGINT); sigpause(SIGINT);
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 bash_cv_signal_vintage=svr3
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 bash_cv_signal_vintage=v7
11351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11362 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11363 if test "$bash_cv_signal_vintage" = posix; then
11364 cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_POSIX_SIGNALS 1
11368 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_BSD_SIGNALS 1
11373 elif test "$bash_cv_signal_vintage" = svr3; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_USG_SIGHOLD 1
11380 echo "$as_me:$LINENO: checking for mode_t" >&5
11381 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11382 if test "${ac_cv_type_mode_t+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 cat >conftest.$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 $ac_includes_default
11398 if (sizeof (mode_t))
11404 rm -f conftest.$ac_objext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11406 (eval $ac_compile) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -s conftest.$ac_objext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_type_mode_t=yes
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_cv_type_mode_t=no
11423 rm -f conftest.$ac_objext conftest.$ac_ext
11425 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11426 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11427 if test $ac_cv_type_mode_t = yes; then
11431 cat >>confdefs.h <<_ACEOF
11437 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11438 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11439 if test "${ac_cv_type_uid_t+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 #include <sys/types.h>
11452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11453 $EGREP "uid_t" >/dev/null 2>&1; then
11454 ac_cv_type_uid_t=yes
11456 ac_cv_type_uid_t=no
11461 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11463 if test $ac_cv_type_uid_t = no; then
11465 cat >>confdefs.h <<\_ACEOF
11470 cat >>confdefs.h <<\_ACEOF
11476 echo "$as_me:$LINENO: checking for size_t" >&5
11477 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11478 if test "${ac_cv_type_size_t+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11494 if (sizeof (size_t))
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -s conftest.$ac_objext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_type_size_t=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_type_size_t=no
11519 rm -f conftest.$ac_objext conftest.$ac_ext
11521 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11522 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11523 if test $ac_cv_type_size_t = yes; then
11527 cat >>confdefs.h <<_ACEOF
11528 #define size_t unsigned
11533 echo "$as_me:$LINENO: checking for pid_t" >&5
11534 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11535 if test "${ac_cv_type_pid_t+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 $ac_includes_default
11551 if (sizeof (pid_t))
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_cv_type_pid_t=yes
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_cv_type_pid_t=no
11576 rm -f conftest.$ac_objext conftest.$ac_ext
11578 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11579 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11580 if test $ac_cv_type_pid_t = yes; then
11584 cat >>confdefs.h <<_ACEOF
11590 echo "$as_me:$LINENO: checking for off_t" >&5
11591 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11592 if test "${ac_cv_type_off_t+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 $ac_includes_default
11608 if (sizeof (off_t))
11614 rm -f conftest.$ac_objext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616 (eval $ac_compile) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_cv_type_off_t=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_cv_type_off_t=no
11633 rm -f conftest.$ac_objext conftest.$ac_ext
11635 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11636 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11637 if test $ac_cv_type_off_t = yes; then
11641 cat >>confdefs.h <<_ACEOF
11647 echo "$as_me:$LINENO: checking for ino_t" >&5
11648 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11649 if test "${ac_cv_type_ino_t+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 $ac_includes_default
11665 if (sizeof (ino_t))
11671 rm -f conftest.$ac_objext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11673 (eval $ac_compile) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_type_ino_t=yes
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_cv_type_ino_t=no
11690 rm -f conftest.$ac_objext conftest.$ac_ext
11692 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11693 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11694 if test $ac_cv_type_ino_t = yes; then
11698 cat >>confdefs.h <<_ACEOF
11699 #define ino_t unsigned long
11704 echo "$as_me:$LINENO: checking for dev_t" >&5
11705 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11706 if test "${ac_cv_type_dev_t+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 cat >conftest.$ac_ext <<_ACEOF
11710 #line $LINENO "configure"
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 $ac_includes_default
11722 if (sizeof (dev_t))
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -s conftest.$ac_objext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_type_dev_t=yes
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_cv_type_dev_t=no
11747 rm -f conftest.$ac_objext conftest.$ac_ext
11749 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11750 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11751 if test $ac_cv_type_dev_t = yes; then
11755 cat >>confdefs.h <<_ACEOF
11756 #define dev_t unsigned long
11761 echo "$as_me:$LINENO: checking for daddr_t" >&5
11762 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11763 if test "${ac_cv_type_daddr_t+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 $ac_includes_default
11779 if (sizeof (daddr_t))
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_type_daddr_t=yes
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_type_daddr_t=no
11804 rm -f conftest.$ac_objext conftest.$ac_ext
11806 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11807 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11808 if test $ac_cv_type_daddr_t = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define daddr_t long
11818 echo "$as_me:$LINENO: checking for major_t" >&5
11819 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11820 if test "${ac_cv_type_major_t+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 $ac_includes_default
11836 if (sizeof (major_t))
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_type_major_t=yes
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_cv_type_major_t=no
11861 rm -f conftest.$ac_objext conftest.$ac_ext
11863 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11864 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11865 if test $ac_cv_type_major_t = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define major_t int
11875 echo "$as_me:$LINENO: checking for minor_t" >&5
11876 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11877 if test "${ac_cv_type_minor_t+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 cat >conftest.$ac_ext <<_ACEOF
11881 #line $LINENO "configure"
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 $ac_includes_default
11893 if (sizeof (minor_t))
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_cv_type_minor_t=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_cv_type_minor_t=no
11918 rm -f conftest.$ac_objext conftest.$ac_ext
11920 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11921 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11922 if test $ac_cv_type_minor_t = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927 #define minor_t int
11932 echo "$as_me:$LINENO: checking for ssize_t" >&5
11933 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11934 if test "${ac_cv_type_ssize_t+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11938 #line $LINENO "configure"
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11950 if (sizeof (ssize_t))
11956 rm -f conftest.$ac_objext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958 (eval $ac_compile) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -s conftest.$ac_objext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_cv_type_ssize_t=yes
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_cv_type_ssize_t=no
11975 rm -f conftest.$ac_objext conftest.$ac_ext
11977 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11978 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11979 if test $ac_cv_type_ssize_t = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define ssize_t int
11989 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11990 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11991 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 cat >conftest.$ac_ext <<_ACEOF
11995 #line $LINENO "configure"
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12005 static struct stat ac_aggr;
12006 if (ac_aggr.st_blocks)
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_member_struct_stat_st_blocks=yes
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 cat >conftest.$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 $ac_includes_default
12040 static struct stat ac_aggr;
12041 if (sizeof ac_aggr.st_blocks)
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_member_struct_stat_st_blocks=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_cv_member_struct_stat_st_blocks=no
12066 rm -f conftest.$ac_objext conftest.$ac_ext
12068 rm -f conftest.$ac_objext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12072 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_ST_BLOCKS 1
12084 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12089 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12090 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12091 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12095 #line $LINENO "configure"
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 $ac_includes_default
12105 static struct stat ac_aggr;
12106 if (ac_aggr.st_rdev)
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_member_struct_stat_st_rdev=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 $ac_includes_default
12140 static struct stat ac_aggr;
12141 if (sizeof ac_aggr.st_rdev)
12147 rm -f conftest.$ac_objext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -s conftest.$ac_objext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 ac_cv_member_struct_stat_st_rdev=yes
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_cv_member_struct_stat_st_rdev=no
12166 rm -f conftest.$ac_objext conftest.$ac_ext
12168 rm -f conftest.$ac_objext conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12171 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12172 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define HAVE_STRUCT_STAT_ST_RDEV 1
12179 cat >>confdefs.h <<\_ACEOF
12180 #define HAVE_ST_RDEV 1
12186 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12187 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12188 if test "${ac_cv_struct_tm+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12192 #line $LINENO "configure"
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 #include <sys/types.h>
12204 struct tm *tp; tp->tm_sec;
12209 rm -f conftest.$ac_objext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211 (eval $ac_compile) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_struct_tm=time.h
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_struct_tm=sys/time.h
12228 rm -f conftest.$ac_objext conftest.$ac_ext
12230 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12231 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12232 if test $ac_cv_struct_tm = sys/time.h; then
12234 cat >>confdefs.h <<\_ACEOF
12235 #define TM_IN_SYS_TIME 1
12240 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12241 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12242 if test "${ac_cv_c_const+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12256 /* FIXME: Include the comments suggested by Paul. */
12257 #ifndef __cplusplus
12258 /* Ultrix mips cc rejects this. */
12259 typedef int charset[2];
12261 /* SunOS 4.1.1 cc rejects this. */
12262 char const *const *ccp;
12264 /* NEC SVR4.0.2 mips cc rejects this. */
12265 struct point {int x, y;};
12266 static struct point const zero = {0,0};
12267 /* AIX XL C 1.02.0.0 rejects this.
12268 It does not let you subtract one const X* pointer from another in
12269 an arm of an if-expression whose if-part is not a constant
12271 const char *g = "string";
12272 ccp = &g + (g ? g-g : 0);
12273 /* HPUX 7.0 cc rejects these. */
12276 ccp = (char const *const *) p;
12277 { /* SCO 3.2v4 cc rejects this. */
12279 char const *s = 0 ? (char *) 0 : (char const *) 0;
12283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12284 int x[] = {25, 17};
12285 const int *foo = &x[0];
12288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12289 typedef const int *iptr;
12293 { /* AIX XL C 1.02.0.0 rejects this saying
12294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12295 struct s { int j; const int *ap[3]; };
12296 struct s *b; b->j = 5;
12298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12299 const int foo = 10;
12307 rm -f conftest.$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12328 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12329 echo "${ECHO_T}$ac_cv_c_const" >&6
12330 if test $ac_cv_c_const = no; then
12332 cat >>confdefs.h <<\_ACEOF
12340 echo "$as_me:$LINENO: checking for char" >&5
12341 echo $ECHO_N "checking for char... $ECHO_C" >&6
12342 if test "${ac_cv_type_char+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cat >conftest.$ac_ext <<_ACEOF
12346 #line $LINENO "configure"
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12364 rm -f conftest.$ac_objext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366 (eval $ac_compile) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_type_char=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12383 rm -f conftest.$ac_objext conftest.$ac_ext
12385 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12386 echo "${ECHO_T}$ac_cv_type_char" >&6
12388 echo "$as_me:$LINENO: checking size of char" >&5
12389 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12390 if test "${ac_cv_sizeof_char+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 if test "$ac_cv_type_char" = yes; then
12394 # The cast to unsigned long works around a bug in the HP C Compiler
12395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12397 # This bug is HP SR number 8606223364.
12398 if test "$cross_compiling" = yes; then
12399 # Depending upon the size, compute the lo and hi bounds.
12400 cat >conftest.$ac_ext <<_ACEOF
12401 #line $LINENO "configure"
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 $ac_includes_default
12411 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -s conftest.$ac_objext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 $ac_includes_default
12443 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12450 rm -f conftest.$ac_objext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12452 (eval $ac_compile) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -s conftest.$ac_objext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_hi=$ac_mid; break
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_lo=`expr $ac_mid + 1`
12468 if test $ac_lo -le $ac_mid; then
12472 ac_mid=`expr 2 '*' $ac_mid + 1`
12474 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 cat >conftest.$ac_ext <<_ACEOF
12481 #line $LINENO "configure"
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 $ac_includes_default
12491 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12498 rm -f conftest.$ac_objext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500 (eval $ac_compile) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -s conftest.$ac_objext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12512 cat >conftest.$ac_ext <<_ACEOF
12513 #line $LINENO "configure"
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12523 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12530 rm -f conftest.$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -s conftest.$ac_objext'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 ac_lo=$ac_mid; break
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_hi=`expr '(' $ac_mid ')' - 1`
12548 if test $ac_mid -le $ac_hi; then
12552 ac_mid=`expr 2 '*' $ac_mid`
12554 rm -f conftest.$ac_objext conftest.$ac_ext
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12564 rm -f conftest.$ac_objext conftest.$ac_ext
12565 # Binary search between lo and hi bounds.
12566 while test "x$ac_lo" != "x$ac_hi"; do
12567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 $ac_includes_default
12579 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_lo=`expr '(' $ac_mid ')' + 1`
12605 rm -f conftest.$ac_objext conftest.$ac_ext
12608 ?*) ac_cv_sizeof_char=$ac_lo;;
12609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12610 See \`config.log' for more details." >&5
12611 echo "$as_me: error: cannot compute sizeof (char), 77
12612 See \`config.log' for more details." >&2;}
12613 { (exit 1); exit 1; }; } ;;
12616 if test "$cross_compiling" = yes; then
12617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12618 See \`config.log' for more details." >&5
12619 echo "$as_me: error: cannot run test program while cross compiling
12620 See \`config.log' for more details." >&2;}
12621 { (exit 1); exit 1; }; }
12623 cat >conftest.$ac_ext <<_ACEOF
12624 #line $LINENO "configure"
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 long longval () { return (long) (sizeof (char)); }
12632 unsigned long ulongval () { return (long) (sizeof (char)); }
12634 #include <stdlib.h>
12639 FILE *f = fopen ("conftest.val", "w");
12642 if (((long) (sizeof (char))) < 0)
12644 long i = longval ();
12645 if (i != ((long) (sizeof (char))))
12647 fprintf (f, "%ld\n", i);
12651 unsigned long i = ulongval ();
12652 if (i != ((long) (sizeof (char))))
12654 fprintf (f, "%lu\n", i);
12656 exit (ferror (f) || fclose (f) != 0);
12662 rm -f conftest$ac_exeext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_sizeof_char=`cat conftest.val`
12675 echo "$as_me: program exited with status $ac_status" >&5
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ( exit $ac_status )
12680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12681 See \`config.log' for more details." >&5
12682 echo "$as_me: error: cannot compute sizeof (char), 77
12683 See \`config.log' for more details." >&2;}
12684 { (exit 1); exit 1; }; }
12686 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12691 ac_cv_sizeof_char=0
12694 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12695 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12696 cat >>confdefs.h <<_ACEOF
12697 #define SIZEOF_CHAR $ac_cv_sizeof_char
12701 echo "$as_me:$LINENO: checking for short int" >&5
12702 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12703 if test "${ac_cv_type_short_int+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12717 if ((short int *) 0)
12719 if (sizeof (short int))
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727 (eval $ac_compile) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
12731 { ac_try='test -s conftest.$ac_objext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_type_short_int=yes
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 ac_cv_type_short_int=no
12744 rm -f conftest.$ac_objext conftest.$ac_ext
12746 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12747 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12749 echo "$as_me:$LINENO: checking size of short int" >&5
12750 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12751 if test "${ac_cv_sizeof_short_int+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 if test "$ac_cv_type_short_int" = yes; then
12755 # The cast to unsigned long works around a bug in the HP C Compiler
12756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12758 # This bug is HP SR number 8606223364.
12759 if test "$cross_compiling" = yes; then
12760 # Depending upon the size, compute the lo and hi bounds.
12761 cat >conftest.$ac_ext <<_ACEOF
12762 #line $LINENO "configure"
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12768 $ac_includes_default
12772 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -s conftest.$ac_objext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12793 cat >conftest.$ac_ext <<_ACEOF
12794 #line $LINENO "configure"
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12804 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12811 rm -f conftest.$ac_objext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_hi=$ac_mid; break
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_lo=`expr $ac_mid + 1`
12829 if test $ac_lo -le $ac_mid; then
12833 ac_mid=`expr 2 '*' $ac_mid + 1`
12835 rm -f conftest.$ac_objext conftest.$ac_ext
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 cat >conftest.$ac_ext <<_ACEOF
12842 #line $LINENO "configure"
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 $ac_includes_default
12852 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12859 rm -f conftest.$ac_objext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861 (eval $ac_compile) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12873 cat >conftest.$ac_ext <<_ACEOF
12874 #line $LINENO "configure"
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 $ac_includes_default
12884 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -s conftest.$ac_objext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_lo=$ac_mid; break
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ac_hi=`expr '(' $ac_mid ')' - 1`
12909 if test $ac_mid -le $ac_hi; then
12913 ac_mid=`expr 2 '*' $ac_mid`
12915 rm -f conftest.$ac_objext conftest.$ac_ext
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12925 rm -f conftest.$ac_objext conftest.$ac_ext
12926 # Binary search between lo and hi bounds.
12927 while test "x$ac_lo" != "x$ac_hi"; do
12928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12929 cat >conftest.$ac_ext <<_ACEOF
12930 #line $LINENO "configure"
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12940 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -s conftest.$ac_objext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ac_lo=`expr '(' $ac_mid ')' + 1`
12966 rm -f conftest.$ac_objext conftest.$ac_ext
12969 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12971 See \`config.log' for more details." >&5
12972 echo "$as_me: error: cannot compute sizeof (short int), 77
12973 See \`config.log' for more details." >&2;}
12974 { (exit 1); exit 1; }; } ;;
12977 if test "$cross_compiling" = yes; then
12978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12979 See \`config.log' for more details." >&5
12980 echo "$as_me: error: cannot run test program while cross compiling
12981 See \`config.log' for more details." >&2;}
12982 { (exit 1); exit 1; }; }
12984 cat >conftest.$ac_ext <<_ACEOF
12985 #line $LINENO "configure"
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 $ac_includes_default
12992 long longval () { return (long) (sizeof (short int)); }
12993 unsigned long ulongval () { return (long) (sizeof (short int)); }
12995 #include <stdlib.h>
13000 FILE *f = fopen ("conftest.val", "w");
13003 if (((long) (sizeof (short int))) < 0)
13005 long i = longval ();
13006 if (i != ((long) (sizeof (short int))))
13008 fprintf (f, "%ld\n", i);
13012 unsigned long i = ulongval ();
13013 if (i != ((long) (sizeof (short int))))
13015 fprintf (f, "%lu\n", i);
13017 exit (ferror (f) || fclose (f) != 0);
13023 rm -f conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 ac_cv_sizeof_short_int=`cat conftest.val`
13036 echo "$as_me: program exited with status $ac_status" >&5
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 ( exit $ac_status )
13041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13042 See \`config.log' for more details." >&5
13043 echo "$as_me: error: cannot compute sizeof (short int), 77
13044 See \`config.log' for more details." >&2;}
13045 { (exit 1); exit 1; }; }
13047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13052 ac_cv_sizeof_short_int=0
13055 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13056 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13057 cat >>confdefs.h <<_ACEOF
13058 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13062 echo "$as_me:$LINENO: checking for int" >&5
13063 echo $ECHO_N "checking for int... $ECHO_C" >&6
13064 if test "${ac_cv_type_int+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 cat >conftest.$ac_ext <<_ACEOF
13068 #line $LINENO "configure"
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 $ac_includes_default
13086 rm -f conftest.$ac_objext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -s conftest.$ac_objext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13105 rm -f conftest.$ac_objext conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13108 echo "${ECHO_T}$ac_cv_type_int" >&6
13110 echo "$as_me:$LINENO: checking size of int" >&5
13111 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13112 if test "${ac_cv_sizeof_int+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 if test "$ac_cv_type_int" = yes; then
13116 # The cast to unsigned long works around a bug in the HP C Compiler
13117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13119 # This bug is HP SR number 8606223364.
13120 if test "$cross_compiling" = yes; then
13121 # Depending upon the size, compute the lo and hi bounds.
13122 cat >conftest.$ac_ext <<_ACEOF
13123 #line $LINENO "configure"
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 $ac_includes_default
13133 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13140 rm -f conftest.$ac_objext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13154 cat >conftest.$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 $ac_includes_default
13165 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_hi=$ac_mid; break
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_lo=`expr $ac_mid + 1`
13190 if test $ac_lo -le $ac_mid; then
13194 ac_mid=`expr 2 '*' $ac_mid + 1`
13196 rm -f conftest.$ac_objext conftest.$ac_ext
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 $ac_includes_default
13213 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13234 cat >conftest.$ac_ext <<_ACEOF
13235 #line $LINENO "configure"
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13245 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 ac_lo=$ac_mid; break
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_hi=`expr '(' $ac_mid ')' - 1`
13270 if test $ac_mid -le $ac_hi; then
13274 ac_mid=`expr 2 '*' $ac_mid`
13276 rm -f conftest.$ac_objext conftest.$ac_ext
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13286 rm -f conftest.$ac_objext conftest.$ac_ext
13287 # Binary search between lo and hi bounds.
13288 while test "x$ac_lo" != "x$ac_hi"; do
13289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13290 cat >conftest.$ac_ext <<_ACEOF
13291 #line $LINENO "configure"
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13301 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 ac_lo=`expr '(' $ac_mid ')' + 1`
13327 rm -f conftest.$ac_objext conftest.$ac_ext
13330 ?*) ac_cv_sizeof_int=$ac_lo;;
13331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13332 See \`config.log' for more details." >&5
13333 echo "$as_me: error: cannot compute sizeof (int), 77
13334 See \`config.log' for more details." >&2;}
13335 { (exit 1); exit 1; }; } ;;
13338 if test "$cross_compiling" = yes; then
13339 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13340 See \`config.log' for more details." >&5
13341 echo "$as_me: error: cannot run test program while cross compiling
13342 See \`config.log' for more details." >&2;}
13343 { (exit 1); exit 1; }; }
13345 cat >conftest.$ac_ext <<_ACEOF
13346 #line $LINENO "configure"
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 $ac_includes_default
13353 long longval () { return (long) (sizeof (int)); }
13354 unsigned long ulongval () { return (long) (sizeof (int)); }
13356 #include <stdlib.h>
13361 FILE *f = fopen ("conftest.val", "w");
13364 if (((long) (sizeof (int))) < 0)
13366 long i = longval ();
13367 if (i != ((long) (sizeof (int))))
13369 fprintf (f, "%ld\n", i);
13373 unsigned long i = ulongval ();
13374 if (i != ((long) (sizeof (int))))
13376 fprintf (f, "%lu\n", i);
13378 exit (ferror (f) || fclose (f) != 0);
13384 rm -f conftest$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_cv_sizeof_int=`cat conftest.val`
13397 echo "$as_me: program exited with status $ac_status" >&5
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ( exit $ac_status )
13402 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13403 See \`config.log' for more details." >&5
13404 echo "$as_me: error: cannot compute sizeof (int), 77
13405 See \`config.log' for more details." >&2;}
13406 { (exit 1); exit 1; }; }
13408 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13416 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13417 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13418 cat >>confdefs.h <<_ACEOF
13419 #define SIZEOF_INT $ac_cv_sizeof_int
13423 echo "$as_me:$LINENO: checking for long int" >&5
13424 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13425 if test "${ac_cv_type_long_int+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 cat >conftest.$ac_ext <<_ACEOF
13429 #line $LINENO "configure"
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 $ac_includes_default
13439 if ((long int *) 0)
13441 if (sizeof (long int))
13447 rm -f conftest.$ac_objext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13449 (eval $ac_compile) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_type_long_int=yes
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_cv_type_long_int=no
13466 rm -f conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13469 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13471 echo "$as_me:$LINENO: checking size of long int" >&5
13472 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13473 if test "${ac_cv_sizeof_long_int+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 if test "$ac_cv_type_long_int" = yes; then
13477 # The cast to unsigned long works around a bug in the HP C Compiler
13478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13480 # This bug is HP SR number 8606223364.
13481 if test "$cross_compiling" = yes; then
13482 # Depending upon the size, compute the lo and hi bounds.
13483 cat >conftest.$ac_ext <<_ACEOF
13484 #line $LINENO "configure"
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490 $ac_includes_default
13494 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13515 cat >conftest.$ac_ext <<_ACEOF
13516 #line $LINENO "configure"
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 $ac_includes_default
13526 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -s conftest.$ac_objext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 ac_hi=$ac_mid; break
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 ac_lo=`expr $ac_mid + 1`
13551 if test $ac_lo -le $ac_mid; then
13555 ac_mid=`expr 2 '*' $ac_mid + 1`
13557 rm -f conftest.$ac_objext conftest.$ac_ext
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 $ac_includes_default
13574 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583 (eval $ac_compile) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13595 cat >conftest.$ac_ext <<_ACEOF
13596 #line $LINENO "configure"
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 $ac_includes_default
13606 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13613 rm -f conftest.$ac_objext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615 (eval $ac_compile) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_lo=$ac_mid; break
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_hi=`expr '(' $ac_mid ')' - 1`
13631 if test $ac_mid -le $ac_hi; then
13635 ac_mid=`expr 2 '*' $ac_mid`
13637 rm -f conftest.$ac_objext conftest.$ac_ext
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13645 rm -f conftest.$ac_objext conftest.$ac_ext
13647 rm -f conftest.$ac_objext conftest.$ac_ext
13648 # Binary search between lo and hi bounds.
13649 while test "x$ac_lo" != "x$ac_hi"; do
13650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13651 cat >conftest.$ac_ext <<_ACEOF
13652 #line $LINENO "configure"
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 $ac_includes_default
13662 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_lo=`expr '(' $ac_mid ')' + 1`
13688 rm -f conftest.$ac_objext conftest.$ac_ext
13691 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13693 See \`config.log' for more details." >&5
13694 echo "$as_me: error: cannot compute sizeof (long int), 77
13695 See \`config.log' for more details." >&2;}
13696 { (exit 1); exit 1; }; } ;;
13699 if test "$cross_compiling" = yes; then
13700 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13701 See \`config.log' for more details." >&5
13702 echo "$as_me: error: cannot run test program while cross compiling
13703 See \`config.log' for more details." >&2;}
13704 { (exit 1); exit 1; }; }
13706 cat >conftest.$ac_ext <<_ACEOF
13707 #line $LINENO "configure"
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 long longval () { return (long) (sizeof (long int)); }
13715 unsigned long ulongval () { return (long) (sizeof (long int)); }
13717 #include <stdlib.h>
13722 FILE *f = fopen ("conftest.val", "w");
13725 if (((long) (sizeof (long int))) < 0)
13727 long i = longval ();
13728 if (i != ((long) (sizeof (long int))))
13730 fprintf (f, "%ld\n", i);
13734 unsigned long i = ulongval ();
13735 if (i != ((long) (sizeof (long int))))
13737 fprintf (f, "%lu\n", i);
13739 exit (ferror (f) || fclose (f) != 0);
13745 rm -f conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_sizeof_long_int=`cat conftest.val`
13758 echo "$as_me: program exited with status $ac_status" >&5
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ( exit $ac_status )
13763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13764 See \`config.log' for more details." >&5
13765 echo "$as_me: error: cannot compute sizeof (long int), 77
13766 See \`config.log' for more details." >&2;}
13767 { (exit 1); exit 1; }; }
13769 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13774 ac_cv_sizeof_long_int=0
13777 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13778 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13779 cat >>confdefs.h <<_ACEOF
13780 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13784 echo "$as_me:$LINENO: checking for long long int" >&5
13785 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13786 if test "${ac_cv_type_long_long_int+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 cat >conftest.$ac_ext <<_ACEOF
13790 #line $LINENO "configure"
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13800 if ((long long int *) 0)
13802 if (sizeof (long long int))
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_cv_type_long_long_int=yes
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 ac_cv_type_long_long_int=no
13827 rm -f conftest.$ac_objext conftest.$ac_ext
13829 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13830 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13832 echo "$as_me:$LINENO: checking size of long long int" >&5
13833 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13834 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 if test "$ac_cv_type_long_long_int" = yes; then
13838 # The cast to unsigned long works around a bug in the HP C Compiler
13839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13841 # This bug is HP SR number 8606223364.
13842 if test "$cross_compiling" = yes; then
13843 # Depending upon the size, compute the lo and hi bounds.
13844 cat >conftest.$ac_ext <<_ACEOF
13845 #line $LINENO "configure"
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 $ac_includes_default
13855 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864 (eval $ac_compile) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13876 cat >conftest.$ac_ext <<_ACEOF
13877 #line $LINENO "configure"
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 $ac_includes_default
13887 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13894 rm -f conftest.$ac_objext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } &&
13900 { ac_try='test -s conftest.$ac_objext'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_hi=$ac_mid; break
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ac_lo=`expr $ac_mid + 1`
13912 if test $ac_lo -le $ac_mid; then
13916 ac_mid=`expr 2 '*' $ac_mid + 1`
13918 rm -f conftest.$ac_objext conftest.$ac_ext
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13935 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13942 rm -f conftest.$ac_objext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 (eval $ac_compile) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -s conftest.$ac_objext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13956 cat >conftest.$ac_ext <<_ACEOF
13957 #line $LINENO "configure"
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 $ac_includes_default
13967 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -s conftest.$ac_objext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 ac_lo=$ac_mid; break
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 ac_hi=`expr '(' $ac_mid ')' - 1`
13992 if test $ac_mid -le $ac_hi; then
13996 ac_mid=`expr 2 '*' $ac_mid`
13998 rm -f conftest.$ac_objext conftest.$ac_ext
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14008 rm -f conftest.$ac_objext conftest.$ac_ext
14009 # Binary search between lo and hi bounds.
14010 while test "x$ac_lo" != "x$ac_hi"; do
14011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 $ac_includes_default
14023 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032 (eval $ac_compile) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -s conftest.$ac_objext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_lo=`expr '(' $ac_mid ')' + 1`
14049 rm -f conftest.$ac_objext conftest.$ac_ext
14052 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14054 See \`config.log' for more details." >&5
14055 echo "$as_me: error: cannot compute sizeof (long long int), 77
14056 See \`config.log' for more details." >&2;}
14057 { (exit 1); exit 1; }; } ;;
14060 if test "$cross_compiling" = yes; then
14061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14062 See \`config.log' for more details." >&5
14063 echo "$as_me: error: cannot run test program while cross compiling
14064 See \`config.log' for more details." >&2;}
14065 { (exit 1); exit 1; }; }
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 $ac_includes_default
14075 long longval () { return (long) (sizeof (long long int)); }
14076 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14078 #include <stdlib.h>
14083 FILE *f = fopen ("conftest.val", "w");
14086 if (((long) (sizeof (long long int))) < 0)
14088 long i = longval ();
14089 if (i != ((long) (sizeof (long long int))))
14091 fprintf (f, "%ld\n", i);
14095 unsigned long i = ulongval ();
14096 if (i != ((long) (sizeof (long long int))))
14098 fprintf (f, "%lu\n", i);
14100 exit (ferror (f) || fclose (f) != 0);
14106 rm -f conftest$ac_exeext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108 (eval $ac_link) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_sizeof_long_long_int=`cat conftest.val`
14119 echo "$as_me: program exited with status $ac_status" >&5
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ( exit $ac_status )
14124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14125 See \`config.log' for more details." >&5
14126 echo "$as_me: error: cannot compute sizeof (long long int), 77
14127 See \`config.log' for more details." >&2;}
14128 { (exit 1); exit 1; }; }
14130 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14135 ac_cv_sizeof_long_long_int=0
14138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14139 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14140 cat >>confdefs.h <<_ACEOF
14141 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14145 echo "$as_me:$LINENO: checking for int *" >&5
14146 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14147 if test "${ac_cv_type_int_p+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 $ac_includes_default
14163 if (sizeof (int *))
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_type_int_p=yes
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 ac_cv_type_int_p=no
14188 rm -f conftest.$ac_objext conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14191 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14193 echo "$as_me:$LINENO: checking size of int *" >&5
14194 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14195 if test "${ac_cv_sizeof_int_p+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 if test "$ac_cv_type_int_p" = yes; then
14199 # The cast to unsigned long works around a bug in the HP C Compiler
14200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14202 # This bug is HP SR number 8606223364.
14203 if test "$cross_compiling" = yes; then
14204 # Depending upon the size, compute the lo and hi bounds.
14205 cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 $ac_includes_default
14216 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14237 cat >conftest.$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 $ac_includes_default
14248 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14255 rm -f conftest.$ac_objext
14256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14257 (eval $ac_compile) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_hi=$ac_mid; break
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 ac_lo=`expr $ac_mid + 1`
14273 if test $ac_lo -le $ac_mid; then
14277 ac_mid=`expr 2 '*' $ac_mid + 1`
14279 rm -f conftest.$ac_objext conftest.$ac_ext
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 cat >conftest.$ac_ext <<_ACEOF
14286 #line $LINENO "configure"
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 $ac_includes_default
14296 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14303 rm -f conftest.$ac_objext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305 (eval $ac_compile) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14317 cat >conftest.$ac_ext <<_ACEOF
14318 #line $LINENO "configure"
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14328 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -s conftest.$ac_objext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_lo=$ac_mid; break
14349 echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14352 ac_hi=`expr '(' $ac_mid ')' - 1`
14353 if test $ac_mid -le $ac_hi; then
14357 ac_mid=`expr 2 '*' $ac_mid`
14359 rm -f conftest.$ac_objext conftest.$ac_ext
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14367 rm -f conftest.$ac_objext conftest.$ac_ext
14369 rm -f conftest.$ac_objext conftest.$ac_ext
14370 # Binary search between lo and hi bounds.
14371 while test "x$ac_lo" != "x$ac_hi"; do
14372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14384 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14391 rm -f conftest.$ac_objext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14393 (eval $ac_compile) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_lo=`expr '(' $ac_mid ')' + 1`
14410 rm -f conftest.$ac_objext conftest.$ac_ext
14413 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14415 See \`config.log' for more details." >&5
14416 echo "$as_me: error: cannot compute sizeof (int *), 77
14417 See \`config.log' for more details." >&2;}
14418 { (exit 1); exit 1; }; } ;;
14421 if test "$cross_compiling" = yes; then
14422 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14423 See \`config.log' for more details." >&5
14424 echo "$as_me: error: cannot run test program while cross compiling
14425 See \`config.log' for more details." >&2;}
14426 { (exit 1); exit 1; }; }
14428 cat >conftest.$ac_ext <<_ACEOF
14429 #line $LINENO "configure"
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 $ac_includes_default
14436 long longval () { return (long) (sizeof (int *)); }
14437 unsigned long ulongval () { return (long) (sizeof (int *)); }
14439 #include <stdlib.h>
14444 FILE *f = fopen ("conftest.val", "w");
14447 if (((long) (sizeof (int *))) < 0)
14449 long i = longval ();
14450 if (i != ((long) (sizeof (int *))))
14452 fprintf (f, "%ld\n", i);
14456 unsigned long i = ulongval ();
14457 if (i != ((long) (sizeof (int *))))
14459 fprintf (f, "%lu\n", i);
14461 exit (ferror (f) || fclose (f) != 0);
14467 rm -f conftest$ac_exeext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14469 (eval $ac_link) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_sizeof_int_p=`cat conftest.val`
14480 echo "$as_me: program exited with status $ac_status" >&5
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ( exit $ac_status )
14485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14486 See \`config.log' for more details." >&5
14487 echo "$as_me: error: cannot compute sizeof (int *), 77
14488 See \`config.log' for more details." >&2;}
14489 { (exit 1); exit 1; }; }
14491 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14496 ac_cv_sizeof_int_p=0
14499 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14500 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14501 cat >>confdefs.h <<_ACEOF
14502 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14507 # Check for sys/types.h types
14508 echo "$as_me:$LINENO: checking for u_int type" >&5
14509 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14510 if test "${ac_cv_have_u_int+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <sys/types.h>
14530 rm -f conftest.$ac_objext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532 (eval $ac_compile) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -s conftest.$ac_objext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_have_u_int="yes"
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_cv_have_u_int="no"
14550 rm -f conftest.$ac_objext conftest.$ac_ext
14553 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14554 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14555 if test "x$ac_cv_have_u_int" = "xyes" ; then
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_U_INT 1
14563 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14564 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14565 if test "${ac_cv_have_intmax_t+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 #include <sys/types.h>
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587 (eval $ac_compile) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_cv_have_intmax_t="yes"
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14603 cat >conftest.$ac_ext <<_ACEOF
14604 #line $LINENO "configure"
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #include <stdint.h>
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621 (eval $ac_compile) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -s conftest.$ac_objext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_cv_have_intmax_t="yes"
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_cv_have_intmax_t="no"
14639 rm -f conftest.$ac_objext conftest.$ac_ext
14643 rm -f conftest.$ac_objext conftest.$ac_ext
14647 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14648 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14649 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_INTMAX_T 1
14658 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14659 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14660 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 cat >conftest.$ac_ext <<_ACEOF
14665 #line $LINENO "configure"
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 #include <sys/types.h>
14675 u_intmax_t a; a = 1;
14680 rm -f conftest.$ac_objext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14682 (eval $ac_compile) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } &&
14686 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14692 ac_cv_have_u_intmax_t="yes"
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14698 cat >conftest.$ac_ext <<_ACEOF
14699 #line $LINENO "configure"
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 #include <stdint.h>
14709 u_intmax_t a; a = 1;
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_cv_have_u_intmax_t="yes"
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ac_cv_have_u_intmax_t="no"
14734 rm -f conftest.$ac_objext conftest.$ac_ext
14738 rm -f conftest.$ac_objext conftest.$ac_ext
14741 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14742 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14743 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14744 cat >>confdefs.h <<\_ACEOF
14745 #define HAVE_U_INTMAX_T 1
14752 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14753 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14754 if test "${ac_cv_have_intxx_t+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 cat >conftest.$ac_ext <<_ACEOF
14759 #line $LINENO "configure"
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 #include <sys/types.h>
14769 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -s conftest.$ac_objext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_cv_have_intxx_t="yes"
14788 echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_have_intxx_t="no"
14794 rm -f conftest.$ac_objext conftest.$ac_ext
14797 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14798 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14799 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14800 cat >>confdefs.h <<\_ACEOF
14801 #define HAVE_INTXX_T 1
14807 echo "$as_me:$LINENO: checking for int64_t type" >&5
14808 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14809 if test "${ac_cv_have_int64_t+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 #include <sys/types.h>
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831 (eval $ac_compile) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_have_int64_t="yes"
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_have_int64_t="no"
14849 rm -f conftest.$ac_objext conftest.$ac_ext
14852 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14853 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14854 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14855 cat >>confdefs.h <<\_ACEOF
14856 #define HAVE_INT64_T 1
14862 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14863 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14864 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 cat >conftest.$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 #include <sys/types.h>
14879 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -s conftest.$ac_objext'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_cv_have_u_intxx_t="yes"
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_have_u_intxx_t="no"
14904 rm -f conftest.$ac_objext conftest.$ac_ext
14907 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14908 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14909 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_U_INTXX_T 1
14917 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14918 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14919 if test "${ac_cv_have_u_int64_t+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <sys/types.h>
14934 u_int64_t a; a = 1;
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 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_have_u_int64_t="yes"
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_have_u_int64_t="no"
14959 rm -f conftest.$ac_objext conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14963 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14964 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_U_INT64_T 1
14972 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14973 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14975 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14976 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 #include <sys/bitypes.h>
14988 int8_t a; int16_t b; int32_t c;
14989 u_int8_t e; u_int16_t f; u_int32_t g;
14990 a = b = c = e = f = g = 1;
14995 rm -f conftest.$ac_objext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 cat >>confdefs.h <<\_ACEOF
15008 #define HAVE_U_INTXX_T 1
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_INTXX_T 1
15015 cat >>confdefs.h <<\_ACEOF
15016 #define HAVE_SYS_BITYPES_H 1
15019 echo "$as_me:$LINENO: result: yes" >&5
15020 echo "${ECHO_T}yes" >&6
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 echo "$as_me:$LINENO: result: no" >&5
15026 echo "${ECHO_T}no" >&6
15029 rm -f conftest.$ac_objext conftest.$ac_ext
15032 if test -z "$have_u_intxx_t" ; then
15033 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15034 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15035 if test "${ac_cv_have_uintxx_t+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 cat >conftest.$ac_ext <<_ACEOF
15040 #line $LINENO "configure"
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 #include <sys/types.h>
15050 uint8_t a; uint16_t b;
15051 uint32_t c; a = b = c = 1;
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_cv_have_uintxx_t="yes"
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_cv_have_uintxx_t="no"
15076 rm -f conftest.$ac_objext conftest.$ac_ext
15079 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15080 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15081 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_UINTXX_T 1
15119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15120 echo "$as_me:$LINENO: checking for $ac_func" >&5
15121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15122 if eval "test \"\${$as_ac_var+set}\" = set"; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 /* System header to define __stub macros and hopefully few prototypes,
15133 which can conflict with char $ac_func (); below.
15134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15135 <limits.h> exists even on freestanding compilers. */
15137 # include <limits.h>
15139 # include <assert.h>
15141 /* Override any gcc2 internal prototype to avoid an error. */
15146 /* We use char because int might match the return type of a gcc2
15147 builtin and then its argument prototype would still apply. */
15149 /* The GNU C library defines this for functions which it implements
15150 to always fail with ENOSYS. Some functions are actually named
15151 something starting with __ and the normal name is an alias. */
15152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15155 char (*f) () = $ac_func;
15164 return f != $ac_func;
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171 (eval $ac_link) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -s conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 eval "$as_ac_var=yes"
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 eval "$as_ac_var=no"
15188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15192 if test `eval echo '${'$as_ac_var'}'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15198 echo 'configure: cannot find needed function.'; exit 1
15205 for ac_func in fchdir
15207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15208 echo "$as_me:$LINENO: checking for $ac_func" >&5
15209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15210 if eval "test \"\${$as_ac_var+set}\" = set"; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15214 #line $LINENO "configure"
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 /* System header to define __stub macros and hopefully few prototypes,
15221 which can conflict with char $ac_func (); below.
15222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15223 <limits.h> exists even on freestanding compilers. */
15225 # include <limits.h>
15227 # include <assert.h>
15229 /* Override any gcc2 internal prototype to avoid an error. */
15234 /* We use char because int might match the return type of a gcc2
15235 builtin and then its argument prototype would still apply. */
15237 /* The GNU C library defines this for functions which it implements
15238 to always fail with ENOSYS. Some functions are actually named
15239 something starting with __ and the normal name is an alias. */
15240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15243 char (*f) () = $ac_func;
15252 return f != $ac_func;
15257 rm -f conftest.$ac_objext conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -s conftest$ac_exeext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 eval "$as_ac_var=yes"
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 eval "$as_ac_var=no"
15276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15280 if test `eval echo '${'$as_ac_var'}'` = yes; then
15281 cat >>confdefs.h <<_ACEOF
15282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15284 cat >>confdefs.h <<\_ACEOF
15285 #define HAVE_FCHDIR 1
15292 for ac_func in strtoll
15294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15295 echo "$as_me:$LINENO: checking for $ac_func" >&5
15296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_var+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char $ac_func (); below.
15309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310 <limits.h> exists even on freestanding compilers. */
15312 # include <limits.h>
15314 # include <assert.h>
15316 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 char (*f) () = $ac_func;
15339 return f != $ac_func;
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -s conftest$ac_exeext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 eval "$as_ac_var=yes"
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 eval "$as_ac_var=no"
15363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15367 if test `eval echo '${'$as_ac_var'}'` = yes; then
15368 cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_STRTOLL 1
15380 for ac_func in chflags
15382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15383 echo "$as_me:$LINENO: checking for $ac_func" >&5
15384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15385 if eval "test \"\${$as_ac_var+set}\" = set"; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 cat >conftest.$ac_ext <<_ACEOF
15389 #line $LINENO "configure"
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 /* System header to define __stub macros and hopefully few prototypes,
15396 which can conflict with char $ac_func (); below.
15397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15398 <limits.h> exists even on freestanding compilers. */
15400 # include <limits.h>
15402 # include <assert.h>
15404 /* Override any gcc2 internal prototype to avoid an error. */
15409 /* We use char because int might match the return type of a gcc2
15410 builtin and then its argument prototype would still apply. */
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15418 char (*f) () = $ac_func;
15427 return f != $ac_func;
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434 (eval $ac_link) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -s conftest$ac_exeext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 eval "$as_ac_var=yes"
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 eval "$as_ac_var=no"
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15455 if test `eval echo '${'$as_ac_var'}'` = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15468 for ac_func in snprintf vsnprintf gethostid getdomainname
15470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15471 echo "$as_me:$LINENO: checking for $ac_func" >&5
15472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15473 if eval "test \"\${$as_ac_var+set}\" = set"; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 cat >conftest.$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 /* System header to define __stub macros and hopefully few prototypes,
15484 which can conflict with char $ac_func (); below.
15485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15486 <limits.h> exists even on freestanding compilers. */
15488 # include <limits.h>
15490 # include <assert.h>
15492 /* Override any gcc2 internal prototype to avoid an error. */
15497 /* We use char because int might match the return type of a gcc2
15498 builtin and then its argument prototype would still apply. */
15500 /* The GNU C library defines this for functions which it implements
15501 to always fail with ENOSYS. Some functions are actually named
15502 something starting with __ and the normal name is an alias. */
15503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15506 char (*f) () = $ac_func;
15515 return f != $ac_func;
15520 rm -f conftest.$ac_objext conftest$ac_exeext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15522 (eval $ac_link) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -s conftest$ac_exeext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 eval "$as_ac_var=yes"
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 eval "$as_ac_var=no"
15539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15543 if test `eval echo '${'$as_ac_var'}'` = yes; then
15544 cat >>confdefs.h <<_ACEOF
15545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15556 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15559 echo "$as_me:$LINENO: checking for $ac_func" >&5
15560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15561 if eval "test \"\${$as_ac_var+set}\" = set"; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 /* System header to define __stub macros and hopefully few prototypes,
15572 which can conflict with char $ac_func (); below.
15573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15574 <limits.h> exists even on freestanding compilers. */
15576 # include <limits.h>
15578 # include <assert.h>
15580 /* Override any gcc2 internal prototype to avoid an error. */
15585 /* We use char because int might match the return type of a gcc2
15586 builtin and then its argument prototype would still apply. */
15588 /* The GNU C library defines this for functions which it implements
15589 to always fail with ENOSYS. Some functions are actually named
15590 something starting with __ and the normal name is an alias. */
15591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15594 char (*f) () = $ac_func;
15603 return f != $ac_func;
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15610 (eval $ac_link) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -s conftest$ac_exeext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 eval "$as_ac_var=yes"
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 eval "$as_ac_var=no"
15627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15631 if test `eval echo '${'$as_ac_var'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15640 # If resolver functions are not in libc check for -lnsl or -lresolv.
15641 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15642 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15643 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 /* System header to define __stub macros and hopefully few prototypes,
15654 which can conflict with char gethostbyname_r (); below.
15655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15656 <limits.h> exists even on freestanding compilers. */
15658 # include <limits.h>
15660 # include <assert.h>
15662 /* Override any gcc2 internal prototype to avoid an error. */
15667 /* We use char because int might match the return type of a gcc2
15668 builtin and then its argument prototype would still apply. */
15669 char gethostbyname_r ();
15670 /* The GNU C library defines this for functions which it implements
15671 to always fail with ENOSYS. Some functions are actually named
15672 something starting with __ and the normal name is an alias. */
15673 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15676 char (*f) () = gethostbyname_r;
15685 return f != gethostbyname_r;
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15692 (eval $ac_link) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_cv_func_gethostbyname_r=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_cv_func_gethostbyname_r=no
15709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15711 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15712 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15713 if test $ac_cv_func_gethostbyname_r = yes; then
15714 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15715 echo "${ECHO_T}using libc's resolver" >&6
15718 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15719 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15720 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 ac_check_lib_save_LIBS=$LIBS
15725 cat >conftest.$ac_ext <<_ACEOF
15726 #line $LINENO "configure"
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15733 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15739 char gethostbyname_r ();
15743 gethostbyname_r ();
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -s conftest$ac_exeext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 ac_cv_lib_nsl_gethostbyname_r=yes
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_cv_lib_nsl_gethostbyname_r=no
15767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15768 LIBS=$ac_check_lib_save_LIBS
15770 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15771 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15772 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_LIBNSL 1
15782 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15783 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15784 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lresolv $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 #line $LINENO "configure"
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15797 /* Override any gcc2 internal prototype to avoid an error. */
15801 /* We use char because int might match the return type of a gcc2
15802 builtin and then its argument prototype would still apply. */
15803 char gethostbyname_r ();
15807 gethostbyname_r ();
15812 rm -f conftest.$ac_objext conftest$ac_exeext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15814 (eval $ac_link) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -s conftest$ac_exeext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_lib_resolv_gethostbyname_r=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_cv_lib_resolv_gethostbyname_r=no
15831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15834 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15835 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15836 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15837 cat >>confdefs.h <<_ACEOF
15838 #define HAVE_LIBRESOLV 1
15841 LIBS="-lresolv $LIBS"
15849 # Find where sockets are (especially for Solaris)
15850 echo "$as_me:$LINENO: checking for socket" >&5
15851 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15852 if test "${ac_cv_func_socket+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15856 #line $LINENO "configure"
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 /* System header to define __stub macros and hopefully few prototypes,
15863 which can conflict with char socket (); below.
15864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15865 <limits.h> exists even on freestanding compilers. */
15867 # include <limits.h>
15869 # include <assert.h>
15871 /* Override any gcc2 internal prototype to avoid an error. */
15876 /* We use char because int might match the return type of a gcc2
15877 builtin and then its argument prototype would still apply. */
15879 /* The GNU C library defines this for functions which it implements
15880 to always fail with ENOSYS. Some functions are actually named
15881 something starting with __ and the normal name is an alias. */
15882 #if defined (__stub_socket) || defined (__stub___socket)
15885 char (*f) () = socket;
15894 return f != socket;
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901 (eval $ac_link) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -s conftest$ac_exeext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_cv_func_socket=yes
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_cv_func_socket=no
15918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15920 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15921 echo "${ECHO_T}$ac_cv_func_socket" >&6
15922 if test $ac_cv_func_socket = yes; then
15923 echo "$as_me:$LINENO: result: using libc's socket" >&5
15924 echo "${ECHO_T}using libc's socket" >&6
15927 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15928 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15929 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 ac_check_lib_save_LIBS=$LIBS
15933 LIBS="-lxnet $LIBS"
15934 cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15942 /* Override any gcc2 internal prototype to avoid an error. */
15946 /* We use char because int might match the return type of a gcc2
15947 builtin and then its argument prototype would still apply. */
15957 rm -f conftest.$ac_objext conftest$ac_exeext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest$ac_exeext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_cv_lib_xnet_socket=yes
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_cv_lib_xnet_socket=no
15976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15977 LIBS=$ac_check_lib_save_LIBS
15979 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15980 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15981 if test $ac_cv_lib_xnet_socket = yes; then
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_LIBXNET 1
15986 LIBS="-lxnet $LIBS"
15991 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15992 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15993 if test "${ac_cv_lib_socket_socket+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 ac_check_lib_save_LIBS=$LIBS
15997 LIBS="-lsocket $LIBS"
15998 cat >conftest.$ac_ext <<_ACEOF
15999 #line $LINENO "configure"
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16006 /* Override any gcc2 internal prototype to avoid an error. */
16010 /* We use char because int might match the return type of a gcc2
16011 builtin and then its argument prototype would still apply. */
16021 rm -f conftest.$ac_objext conftest$ac_exeext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023 (eval $ac_link) 2>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -s conftest$ac_exeext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_lib_socket_socket=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_cv_lib_socket_socket=no
16040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16043 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16044 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16045 if test $ac_cv_lib_socket_socket = yes; then
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_LIBSOCKET 1
16050 LIBS="-lsocket $LIBS"
16055 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16056 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16057 if test "${ac_cv_lib_inet_socket+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 ac_check_lib_save_LIBS=$LIBS
16061 LIBS="-linet $LIBS"
16062 cat >conftest.$ac_ext <<_ACEOF
16063 #line $LINENO "configure"
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16070 /* Override any gcc2 internal prototype to avoid an error. */
16074 /* We use char because int might match the return type of a gcc2
16075 builtin and then its argument prototype would still apply. */
16085 rm -f conftest.$ac_objext conftest$ac_exeext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16087 (eval $ac_link) 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -s conftest$ac_exeext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_cv_lib_inet_socket=yes
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_cv_lib_inet_socket=no
16104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16107 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16108 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16109 if test $ac_cv_lib_inet_socket = yes; then
16110 cat >>confdefs.h <<_ACEOF
16111 #define HAVE_LIBINET 1
16114 LIBS="-linet $LIBS"
16122 for ac_func in inet_pton
16124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125 echo "$as_me:$LINENO: checking for $ac_func" >&5
16126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16127 if eval "test \"\${$as_ac_var+set}\" = set"; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16131 #line $LINENO "configure"
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 /* System header to define __stub macros and hopefully few prototypes,
16138 which can conflict with char $ac_func (); below.
16139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16140 <limits.h> exists even on freestanding compilers. */
16142 # include <limits.h>
16144 # include <assert.h>
16146 /* Override any gcc2 internal prototype to avoid an error. */
16151 /* We use char because int might match the return type of a gcc2
16152 builtin and then its argument prototype would still apply. */
16154 /* The GNU C library defines this for functions which it implements
16155 to always fail with ENOSYS. Some functions are actually named
16156 something starting with __ and the normal name is an alias. */
16157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16160 char (*f) () = $ac_func;
16169 return f != $ac_func;
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 eval "$as_ac_var=yes"
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 eval "$as_ac_var=no"
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16197 if test `eval echo '${'$as_ac_var'}'` = yes; then
16198 cat >>confdefs.h <<_ACEOF
16199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE_INET_PTON 1
16210 for ac_func in strftime
16212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16213 echo "$as_me:$LINENO: checking for $ac_func" >&5
16214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16215 if eval "test \"\${$as_ac_var+set}\" = set"; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 cat >conftest.$ac_ext <<_ACEOF
16219 #line $LINENO "configure"
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 /* System header to define __stub macros and hopefully few prototypes,
16226 which can conflict with char $ac_func (); below.
16227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16228 <limits.h> exists even on freestanding compilers. */
16230 # include <limits.h>
16232 # include <assert.h>
16234 /* Override any gcc2 internal prototype to avoid an error. */
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16242 /* The GNU C library defines this for functions which it implements
16243 to always fail with ENOSYS. Some functions are actually named
16244 something starting with __ and the normal name is an alias. */
16245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16248 char (*f) () = $ac_func;
16257 return f != $ac_func;
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -s conftest$ac_exeext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 eval "$as_ac_var=yes"
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 eval "$as_ac_var=no"
16281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16285 if test `eval echo '${'$as_ac_var'}'` = yes; then
16286 cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16291 # strftime is in -lintl on SCO UNIX.
16292 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16293 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16294 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 ac_check_lib_save_LIBS=$LIBS
16298 LIBS="-lintl $LIBS"
16299 cat >conftest.$ac_ext <<_ACEOF
16300 #line $LINENO "configure"
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16307 /* Override any gcc2 internal prototype to avoid an error. */
16311 /* We use char because int might match the return type of a gcc2
16312 builtin and then its argument prototype would still apply. */
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -s conftest$ac_exeext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_lib_intl_strftime=yes
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ac_cv_lib_intl_strftime=no
16341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16342 LIBS=$ac_check_lib_save_LIBS
16344 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16345 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16346 if test $ac_cv_lib_intl_strftime = yes; then
16347 cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_STRFTIME 1
16351 LIBS="-lintl $LIBS"
16358 for ac_func in vprintf
16360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16361 echo "$as_me:$LINENO: checking for $ac_func" >&5
16362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16363 if eval "test \"\${$as_ac_var+set}\" = set"; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 /* System header to define __stub macros and hopefully few prototypes,
16374 which can conflict with char $ac_func (); below.
16375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16376 <limits.h> exists even on freestanding compilers. */
16378 # include <limits.h>
16380 # include <assert.h>
16382 /* Override any gcc2 internal prototype to avoid an error. */
16387 /* We use char because int might match the return type of a gcc2
16388 builtin and then its argument prototype would still apply. */
16390 /* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16396 char (*f) () = $ac_func;
16405 return f != $ac_func;
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16412 (eval $ac_link) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 eval "$as_ac_var=yes"
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 eval "$as_ac_var=no"
16429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16433 if test `eval echo '${'$as_ac_var'}'` = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16438 echo "$as_me:$LINENO: checking for _doprnt" >&5
16439 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16440 if test "${ac_cv_func__doprnt+set}" = set; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 cat >conftest.$ac_ext <<_ACEOF
16444 #line $LINENO "configure"
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 /* System header to define __stub macros and hopefully few prototypes,
16451 which can conflict with char _doprnt (); below.
16452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16453 <limits.h> exists even on freestanding compilers. */
16455 # include <limits.h>
16457 # include <assert.h>
16459 /* Override any gcc2 internal prototype to avoid an error. */
16464 /* We use char because int might match the return type of a gcc2
16465 builtin and then its argument prototype would still apply. */
16467 /* The GNU C library defines this for functions which it implements
16468 to always fail with ENOSYS. Some functions are actually named
16469 something starting with __ and the normal name is an alias. */
16470 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16473 char (*f) () = _doprnt;
16482 return f != _doprnt;
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16489 (eval $ac_link) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try='test -s conftest$ac_exeext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_func__doprnt=yes
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_cv_func__doprnt=no
16506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16509 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16510 if test $ac_cv_func__doprnt = yes; then
16512 cat >>confdefs.h <<\_ACEOF
16513 #define HAVE_DOPRNT 1
16522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16523 # for constant arguments. Useless!
16524 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16525 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16526 if test "${ac_cv_working_alloca_h+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 cat >conftest.$ac_ext <<_ACEOF
16530 #line $LINENO "configure"
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 #include <alloca.h>
16540 char *p = (char *) alloca (2 * sizeof (int));
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_cv_working_alloca_h=yes
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 ac_cv_working_alloca_h=no
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16566 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16568 if test $ac_cv_working_alloca_h = yes; then
16570 cat >>confdefs.h <<\_ACEOF
16571 #define HAVE_ALLOCA_H 1
16576 echo "$as_me:$LINENO: checking for alloca" >&5
16577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16578 if test "${ac_cv_func_alloca_works+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 cat >conftest.$ac_ext <<_ACEOF
16582 #line $LINENO "configure"
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16589 # define alloca __builtin_alloca
16592 # include <malloc.h>
16593 # define alloca _alloca
16596 # include <alloca.h>
16601 # ifndef alloca /* predefined by HP cc +Olibcalls */
16612 char *p = (char *) alloca (1);
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -s conftest$ac_exeext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_func_alloca_works=yes
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ac_cv_func_alloca_works=no
16636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16638 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16639 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16641 if test $ac_cv_func_alloca_works = yes; then
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE_ALLOCA 1
16648 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16649 # that cause trouble. Some versions do not even contain alloca or
16650 # contain a buggy version. If you still want to use their alloca,
16651 # use ar to extract alloca.o from them instead of compiling alloca.c.
16653 ALLOCA=alloca.$ac_objext
16655 cat >>confdefs.h <<\_ACEOF
16660 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16661 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16662 if test "${ac_cv_os_cray+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 cat >conftest.$ac_ext <<_ACEOF
16666 #line $LINENO "configure"
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 #if defined(CRAY) && ! defined(CRAY2)
16679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16680 $EGREP "webecray" >/dev/null 2>&1; then
16688 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16689 echo "${ECHO_T}$ac_cv_os_cray" >&6
16690 if test $ac_cv_os_cray = yes; then
16691 for ac_func in _getb67 GETB67 getb67; do
16692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 echo "$as_me:$LINENO: checking for $ac_func" >&5
16694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16695 if eval "test \"\${$as_ac_var+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16710 # include <limits.h>
16712 # include <assert.h>
16714 /* Override any gcc2 internal prototype to avoid an error. */
16719 /* We use char because int might match the return type of a gcc2
16720 builtin and then its argument prototype would still apply. */
16722 /* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16728 char (*f) () = $ac_func;
16737 return f != $ac_func;
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744 (eval $ac_link) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 eval "$as_ac_var=yes"
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 eval "$as_ac_var=no"
16761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16765 if test `eval echo '${'$as_ac_var'}'` = yes; then
16767 cat >>confdefs.h <<_ACEOF
16768 #define CRAY_STACKSEG_END $ac_func
16777 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16778 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16779 if test "${ac_cv_c_stack_direction+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 if test "$cross_compiling" = yes; then
16783 ac_cv_c_stack_direction=0
16785 cat >conftest.$ac_ext <<_ACEOF
16786 #line $LINENO "configure"
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16793 find_stack_direction ()
16795 static char *addr = 0;
16800 return find_stack_direction ();
16803 return (&dummy > addr) ? 1 : -1;
16809 exit (find_stack_direction () < 0);
16812 rm -f conftest$ac_exeext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814 (eval $ac_link) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 ac_cv_c_stack_direction=1
16825 echo "$as_me: program exited with status $ac_status" >&5
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ( exit $ac_status )
16830 ac_cv_c_stack_direction=-1
16832 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16835 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16836 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16838 cat >>confdefs.h <<_ACEOF
16839 #define STACK_DIRECTION $ac_cv_c_stack_direction
16845 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16846 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16847 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16848 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 ac_check_lib_save_LIBS=$LIBS
16853 cat >conftest.$ac_ext <<_ACEOF
16854 #line $LINENO "configure"
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h. */
16861 /* Override any gcc2 internal prototype to avoid an error. */
16865 /* We use char because int might match the return type of a gcc2
16866 builtin and then its argument prototype would still apply. */
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_lib_sun_getmntent=yes
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_cv_lib_sun_getmntent=no
16895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16896 LIBS=$ac_check_lib_save_LIBS
16898 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16899 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16900 if test $ac_cv_lib_sun_getmntent = yes; then
16903 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16904 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16905 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 ac_check_lib_save_LIBS=$LIBS
16910 cat >conftest.$ac_ext <<_ACEOF
16911 #line $LINENO "configure"
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16918 /* Override any gcc2 internal prototype to avoid an error. */
16922 /* We use char because int might match the return type of a gcc2
16923 builtin and then its argument prototype would still apply. */
16933 rm -f conftest.$ac_objext conftest$ac_exeext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16935 (eval $ac_link) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -s conftest$ac_exeext'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16945 ac_cv_lib_seq_getmntent=yes
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 ac_cv_lib_seq_getmntent=no
16952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16953 LIBS=$ac_check_lib_save_LIBS
16955 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16956 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16957 if test $ac_cv_lib_seq_getmntent = yes; then
16960 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16961 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16962 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 ac_check_lib_save_LIBS=$LIBS
16967 cat >conftest.$ac_ext <<_ACEOF
16968 #line $LINENO "configure"
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16975 /* Override any gcc2 internal prototype to avoid an error. */
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16990 rm -f conftest.$ac_objext conftest$ac_exeext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -s conftest$ac_exeext'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_lib_gen_getmntent=yes
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 ac_cv_lib_gen_getmntent=no
17009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17012 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17013 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17014 if test $ac_cv_lib_gen_getmntent = yes; then
17023 for ac_func in getmntent
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17028 if eval "test \"\${$as_ac_var+set}\" = set"; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 /* System header to define __stub macros and hopefully few prototypes,
17039 which can conflict with char $ac_func (); below.
17040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17041 <limits.h> exists even on freestanding compilers. */
17043 # include <limits.h>
17045 # include <assert.h>
17047 /* Override any gcc2 internal prototype to avoid an error. */
17052 /* We use char because int might match the return type of a gcc2
17053 builtin and then its argument prototype would still apply. */
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17061 char (*f) () = $ac_func;
17070 return f != $ac_func;
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17077 (eval $ac_link) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -s conftest$ac_exeext'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 eval "$as_ac_var=yes"
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 eval "$as_ac_var=no"
17094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099 cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17107 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17109 if test "${ac_cv_func_closedir_void+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 if test "$cross_compiling" = yes; then
17113 ac_cv_func_closedir_void=yes
17115 cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 #include <$ac_header_dirent>
17124 #ifndef __cplusplus
17131 exit (closedir (opendir (".")) != 0);
17136 rm -f conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_func_closedir_void=no
17149 echo "$as_me: program exited with status $ac_status" >&5
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 ( exit $ac_status )
17154 ac_cv_func_closedir_void=yes
17156 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17159 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17160 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17161 if test $ac_cv_func_closedir_void = yes; then
17163 cat >>confdefs.h <<\_ACEOF
17164 #define CLOSEDIR_VOID 1
17169 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17170 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17171 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 if test "$cross_compiling" = yes; then
17175 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17176 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17177 { (exit 1); exit 1; }; }
17179 cat >conftest.$ac_ext <<_ACEOF
17180 #line $LINENO "configure"
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17187 # include <unistd.h>
17193 /* If this system has a BSD-style setpgrp which takes arguments,
17194 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17195 exit successfully. */
17196 exit (setpgrp (1,1) == -1 ? 0 : 1);
17201 rm -f conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_cv_func_setpgrp_void=no
17214 echo "$as_me: program exited with status $ac_status" >&5
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ( exit $ac_status )
17219 ac_cv_func_setpgrp_void=yes
17221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17224 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17225 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17226 if test $ac_cv_func_setpgrp_void = yes; then
17228 cat >>confdefs.h <<\_ACEOF
17229 #define SETPGRP_VOID 1
17233 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17234 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17235 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 # Some versions of Solaris, SCO, and the GNU C Library
17239 # have a broken or incompatible fnmatch.
17240 # So we run a test program. If we are cross-compiling, take no chance.
17241 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17242 if test "$cross_compiling" = yes; then
17243 ac_cv_func_fnmatch_works=cross
17245 cat >conftest.$ac_ext <<_ACEOF
17246 #line $LINENO "configure"
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 #include <fnmatch.h>
17253 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17254 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17260 (!(y ("a*", "abc", 0)
17261 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17262 && y ("a\\\\bc", "abc", 0)
17263 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17264 && y ("*x", ".x", 0)
17265 && n ("*x", ".x", FNM_PERIOD)
17271 rm -f conftest$ac_exeext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273 (eval $ac_link) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_cv_func_fnmatch_works=yes
17284 echo "$as_me: program exited with status $ac_status" >&5
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ( exit $ac_status )
17289 ac_cv_func_fnmatch_works=no
17291 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17294 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17295 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17296 if test $ac_cv_func_fnmatch_works = yes; then
17298 cat >>confdefs.h <<\_ACEOF
17299 #define HAVE_FNMATCH 1
17308 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17309 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17310 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lxpg4 $LIBS"
17315 cat >conftest.$ac_ext <<_ACEOF
17316 #line $LINENO "configure"
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17323 /* Override any gcc2 internal prototype to avoid an error. */
17327 /* We use char because int might match the return type of a gcc2
17328 builtin and then its argument prototype would still apply. */
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17340 (eval $ac_link) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_lib_xpg4_setlocale=yes
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_cv_lib_xpg4_setlocale=no
17357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17360 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17361 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17362 if test $ac_cv_lib_xpg4_setlocale = yes; then
17363 LIBS="$LIBS -lxpg4"
17369 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17370 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17371 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 ac_check_lib_save_LIBS=$LIBS
17376 cat >conftest.$ac_ext <<_ACEOF
17377 #line $LINENO "configure"
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17384 /* Override any gcc2 internal prototype to avoid an error. */
17388 /* We use char because int might match the return type of a gcc2
17389 builtin and then its argument prototype would still apply. */
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_lib_sun_getpwnam=yes
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_cv_lib_sun_getpwnam=no
17418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17419 LIBS=$ac_check_lib_save_LIBS
17421 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17422 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17423 if test $ac_cv_lib_sun_getpwnam = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define HAVE_LIBSUN 1
17434 for ac_header in zlib.h
17436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17438 echo "$as_me:$LINENO: checking for $ac_header" >&5
17439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17446 # Is the header compilable?
17447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17450 #line $LINENO "configure"
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17456 $ac_includes_default
17457 #include <$ac_header>
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461 (eval $ac_compile) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } &&
17465 { ac_try='test -s conftest.$ac_objext'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; }; then
17471 ac_header_compiler=yes
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17476 ac_header_compiler=no
17478 rm -f conftest.$ac_objext conftest.$ac_ext
17479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17480 echo "${ECHO_T}$ac_header_compiler" >&6
17482 # Is the header present?
17483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17485 cat >conftest.$ac_ext <<_ACEOF
17486 #line $LINENO "configure"
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 #include <$ac_header>
17494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } >/dev/null; then
17502 if test -s conftest.err; then
17503 ac_cpp_err=$ac_c_preproc_warn_flag
17510 if test -z "$ac_cpp_err"; then
17511 ac_header_preproc=yes
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_header_preproc=no
17518 rm -f conftest.err conftest.$ac_ext
17519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17520 echo "${ECHO_T}$ac_header_preproc" >&6
17522 # So? What about this header?
17523 case $ac_header_compiler:$ac_header_preproc in
17525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17531 ## ------------------------------------ ##
17532 ## Report this to bug-autoconf@gnu.org. ##
17533 ## ------------------------------------ ##
17536 sed "s/^/$as_me: WARNING: /" >&2
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17547 ## ------------------------------------ ##
17548 ## Report this to bug-autoconf@gnu.org. ##
17549 ## ------------------------------------ ##
17552 sed "s/^/$as_me: WARNING: /" >&2
17555 echo "$as_me:$LINENO: checking for $ac_header" >&5
17556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 eval "$as_ac_Header=$ac_header_preproc"
17562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17567 cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17575 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17576 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17577 if test "${ac_cv_lib_z_deflate+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 ac_check_lib_save_LIBS=$LIBS
17582 cat >conftest.$ac_ext <<_ACEOF
17583 #line $LINENO "configure"
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17590 /* Override any gcc2 internal prototype to avoid an error. */
17594 /* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607 (eval $ac_link) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 ac_cv_lib_z_deflate=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ac_cv_lib_z_deflate=no
17624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17625 LIBS=$ac_check_lib_save_LIBS
17627 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17628 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17629 if test $ac_cv_lib_z_deflate = yes; then
17634 if test x$FDLIBS = x-lz; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_LIBZ 1
17643 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17644 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17645 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 ac_check_lib_save_LIBS=$LIBS
17649 LIBS="-lpthread $LIBS"
17650 cat >conftest.$ac_ext <<_ACEOF
17651 #line $LINENO "configure"
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17658 /* Override any gcc2 internal prototype to avoid an error. */
17662 /* We use char because int might match the return type of a gcc2
17663 builtin and then its argument prototype would still apply. */
17664 char pthread_create ();
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } &&
17679 { ac_try='test -s conftest$ac_exeext'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_cv_lib_pthread_pthread_create=yes
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_lib_pthread_pthread_create=no
17692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17693 LIBS=$ac_check_lib_save_LIBS
17695 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17697 if test $ac_cv_lib_pthread_pthread_create = yes; then
17698 PTHREAD_LIB="-lpthread"
17700 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17701 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17702 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 ac_check_lib_save_LIBS=$LIBS
17706 LIBS="-lpthreads $LIBS"
17707 cat >conftest.$ac_ext <<_ACEOF
17708 #line $LINENO "configure"
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17715 /* Override any gcc2 internal prototype to avoid an error. */
17719 /* We use char because int might match the return type of a gcc2
17720 builtin and then its argument prototype would still apply. */
17721 char pthread_create ();
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732 (eval $ac_link) 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try='test -s conftest$ac_exeext'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_cv_lib_pthreads_pthread_create=yes
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 ac_cv_lib_pthreads_pthread_create=no
17749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17752 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17753 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17754 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17755 PTHREAD_LIB="-lpthreads"
17757 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17758 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17759 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 ac_check_lib_save_LIBS=$LIBS
17764 cat >conftest.$ac_ext <<_ACEOF
17765 #line $LINENO "configure"
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17772 /* Override any gcc2 internal prototype to avoid an error. */
17776 /* We use char because int might match the return type of a gcc2
17777 builtin and then its argument prototype would still apply. */
17778 char pthread_create ();
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789 (eval $ac_link) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_lib_c_r_pthread_create=yes
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_cv_lib_c_r_pthread_create=no
17806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17809 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17810 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17811 if test $ac_cv_lib_c_r_pthread_create = yes; then
17812 PTHREAD_LIB="-lc_r"
17814 echo "$as_me:$LINENO: checking for pthread_create" >&5
17815 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17816 if test "${ac_cv_func_pthread_create+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 cat >conftest.$ac_ext <<_ACEOF
17820 #line $LINENO "configure"
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char pthread_create (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17831 # include <limits.h>
17833 # include <assert.h>
17835 /* Override any gcc2 internal prototype to avoid an error. */
17840 /* We use char because int might match the return type of a gcc2
17841 builtin and then its argument prototype would still apply. */
17842 char pthread_create ();
17843 /* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17849 char (*f) () = pthread_create;
17858 return f != pthread_create;
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17865 (eval $ac_link) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -s conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_func_pthread_create=yes
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_cv_func_pthread_create=no
17882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17884 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17885 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17898 cat >>confdefs.h <<\_ACEOF
17904 CFLAGS=${CFLAGS--O}
17905 LDFLAGS=${LDFLAGS--O}
17906 DB_LIBS="${SQL_LFLAGS}"
17908 CPPFLAGS="$CPPFLAGS"
17933 # Finally we set appropriate distribution specific
17934 # variables and defaults
17936 # PFILES are platform specific files
17937 PFILES="platforms/Makefile"
17940 hostname=`uname -n | cut -d '.' -f 1`
17941 case "$DISTNAME" in
17944 PSCMD="ps -e -o pid,comm"
17945 PFILES="${PFILES} \
17946 platforms/aix/Makefile"
17947 TAPEDRIVE="/dev/rmt0.1"
17951 PTHREAD_LIB="-lpthread -lexc"
17952 if test "${CC}" = "gcc" ; then
17959 TAPEDRIVE="/dev/nrmt0"
17962 DISTVER=`uname -a |awk '{print $3}'`
17963 TAPEDRIVE="/dev/nrmt0"
17964 PTHREAD_LIB="-pthread"
17965 CFLAGS="${CFLAGS} -pthread"
17966 PSCMD="ps -x -o pid,command"
17969 PFILES="${PFILES} \
17970 platforms/bsdi/Makefile \
17971 platforms/bsdi/bacula-fd \
17972 platforms/bsdi/bacula-sd \
17973 platforms/bsdi/bacula-dir"
17974 largefile_support="yes"
17977 DISTVER=`uname -a |awk '{print $3}'`
17978 TAPEDRIVE="/dev/nrst0"
17980 WCFLAGS="-mwindows"
17981 WLDFLAGS="-mwindows"
17985 TAPEDRIVE="/dev/nst0"
17986 PSCMD="ps -e -o pid,command"
17987 PFILES="${PFILES} \
17988 platforms/darwin/Makefile"
17991 DISTVER=`cat /etc/debian_version`
17992 TAPEDRIVE="/dev/nrst0"
17993 PSCMD="ps -e -o pid,command"
17996 DISTVER=`uname -a |awk '{print $3}'`
17997 VER=`echo $DISTVER | cut -c 1`
17998 if test x$VER = x4 ; then
17999 PTHREAD_LIB="-pthread"
18000 CFLAGS="${CFLAGS} -pthread"
18004 TAPEDRIVE="/dev/nrsa0"
18005 PSCMD="ps -x -o pid,command"
18006 PFILES="${PFILES} \
18007 platforms/freebsd/Makefile \
18008 platforms/freebsd/bacula-fd \
18009 platforms/freebsd/bacula-sd \
18010 platforms/freebsd/bacula-dir"
18011 largefile_support="yes"
18014 PSCMD="UNIX95=1 ps -e -o pid,comm"
18015 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18017 TAPEDRIVE="/dev/rmt/0hnb"
18021 TAPEDRIVE="/dev/rmt/0cbn"
18022 PSCMD="ps -e -o pid,comm"
18023 PFILES="${PFILES} \
18024 platforms/irix/Makefile \
18025 platforms/irix/bacula-fd \
18026 platforms/irix/bacula-sd \
18027 platforms/irix/bacula-dir"
18030 DISTVER=`uname -a |awk '{print $3}'`
18033 TAPEDRIVE="/dev/nrst0"
18034 PSCMD="ps -a -o pid,command"
18035 PTHREAD_LIB="-pthread"
18036 CFLAGS="${CFLAGS} -pthread"
18039 DISTVER=`uname -a |awk '{print $3}'`
18042 TAPEDRIVE="/dev/nrst0"
18043 PSCMD="ps -a -o pid,command"
18044 PTHREAD_LIB="-pthread"
18045 CFLAGS="${CFLAGS} -pthread"
18046 PFILES="${PFILES} \
18047 platforms/openbsd/Makefile \
18048 platforms/openbsd/bacula-fd \
18049 platforms/openbsd/bacula-sd \
18050 platforms/openbsd/bacula-dir"
18053 if test `cat /etc/redhat-release | grep release |\
18054 cut -f 3 -d ' '`x = "Enterprise"x ; then
18055 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18058 DISTVER=`cat /etc/redhat-release | grep release |\
18061 TAPEDRIVE="/dev/nst0"
18062 PSCMD="ps -e -o pid,command"
18063 PFILES="${PFILES} \
18064 platforms/redhat/Makefile \
18065 platforms/redhat/bacula-fd \
18066 platforms/redhat/bacula-sd \
18067 platforms/redhat/bacula-dir \
18068 platforms/redhat/bacula.spec \
18070 hostname=`hostname -s`
18073 DISTVER=`cat /etc/mandrake-release | grep release |\
18075 TAPEDRIVE="/dev/nst0"
18076 PSCMD="ps -e -o pid,command"
18077 PFILES="${PFILES} \
18078 platforms/mandrake/Makefile \
18079 platforms/mandrake/bacula-fd \
18080 platforms/mandrake/bacula-sd \
18081 platforms/mandrake/bacula-dir \
18082 platforms/mandrake/bacula.spec \
18086 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18087 TAPEDRIVE="/dev/nst0"
18088 PSCMD="ps -e -o pid,command"
18089 PFILES="${PFILES} \
18090 platforms/gentoo/Makefile \
18091 platforms/gentoo/bacula-fd \
18092 platforms/gentoo/bacula-sd \
18093 platforms/gentoo/bacula-dir"
18096 DISTVER=`cat /etc/slackware-version`
18097 TAPEDRIVE="/dev/nst0"
18098 PSCMD="ps -e -o pid,command"
18099 PFILES="${PFILES} \
18100 platforms/slackware/Makefile \
18101 platforms/slackware/rc.bacula-fd \
18102 platforms/slackware/rc.bacula-sd \
18103 platforms/slackware/rc.bacula-dir\
18104 platforms/slackware/functions.bacula"
18108 TAPEDRIVE="/dev/rmt/0cbn"
18109 PSCMD="ps -e -o pid,comm"
18110 PFILES="${PFILES} \
18111 platforms/solaris/Makefile \
18112 platforms/solaris/bacula-fd \
18113 platforms/solaris/bacula-sd \
18114 platforms/solaris/bacula-dir"
18115 if test x$DISTVER = x5.6 ; then
18116 cat >>confdefs.h <<\_ACEOF
18117 #define HAVE_OLD_SOCKOPT 1
18123 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18125 TAPEDRIVE="/dev/nst0"
18126 PSCMD="ps -e -o pid,command"
18127 PFILES="${PFILES} \
18128 platforms/suse/Makefile \
18129 platforms/suse/bacula-fd \
18130 platforms/suse/bacula-sd \
18131 platforms/suse/bacula-dir \
18132 platforms/suse/bacula \
18133 platforms/suse/bacula.spec"
18138 TAPEDRIVE="/dev/nst0"
18139 PSCMD="ps -e -o pid,command"
18140 PFILES="${PFILES} \
18141 platforms/suse/Makefile \
18142 platforms/suse/bacula-fd \
18143 platforms/suse/bacula-sd \
18144 platforms/suse/bacula-dir"
18148 TAPEDRIVE="/dev/nst0"
18151 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18157 LIBS="$PTHREAD_LIB $LIBS"
18159 cat >>confdefs.h <<_ACEOF
18163 cat >>confdefs.h <<_ACEOF
18173 MCOMMON=./autoconf/Make.common
18176 if test "x${subsysdir}" = "x${sbindir}" ; then
18179 echo "You have set both --sbindir and --with-subsys-dir"
18180 echo " equal to: ${subsysdir} "
18181 echo "This is not permitted. Please reconfigure."
18183 echo "Aborting configuration ..."
18189 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/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/fd 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 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/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/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 $PFILES"
18190 ac_config_commands="$ac_config_commands default"
18191 cat >confcache <<\_ACEOF
18192 # This file is a shell script that caches the results of configure
18193 # tests run on this system so they can be shared between configure
18194 # scripts and configure runs, see configure's option --config-cache.
18195 # It is not useful on other systems. If it contains results you don't
18196 # want to keep, you may remove or edit it.
18198 # config.status only pays attention to the cache file if you give it
18199 # the --recheck option to rerun configure.
18201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18203 # following values.
18207 # The following way of writing the cache mishandles newlines in values,
18208 # but we know of no workaround that is simple, portable, and efficient.
18209 # So, don't put newlines in cache variables' values.
18210 # Ultrix sh set writes to stderr and can't be redirected directly,
18211 # and sets the high bit in the cache file unless we assign to the vars.
18214 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18216 # `set' does not quote correctly, so add quotes (double-quote
18217 # substitution turns \\\\ into \\, and sed turns \\ into \).
18220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18223 # `set' quotes correctly as required by POSIX, so do not add quotes.
18225 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18234 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18236 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18237 if test -w $cache_file; then
18238 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18239 cat confcache >$cache_file
18241 echo "not updating unwritable cache $cache_file"
18246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18247 # Let make expand exec_prefix.
18248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18252 # trailing colons and then remove the whole line if VPATH becomes empty
18253 # (actually we leave an empty line to preserve line numbers).
18254 if test "x$srcdir" = x.; then
18255 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18256 s/:*\$(srcdir):*/:/;
18257 s/:*\${srcdir}:*/:/;
18259 s/^\([^=]*=[ ]*\):*/\1/;
18265 DEFS=-DHAVE_CONFIG_H
18269 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18270 # 1. Remove the extension, and $U if already installed.
18271 ac_i=`echo "$ac_i" |
18272 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18274 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18275 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18277 LIBOBJS=$ac_libobjs
18279 LTLIBOBJS=$ac_ltlibobjs
18283 : ${CONFIG_STATUS=./config.status}
18284 ac_clean_files_save=$ac_clean_files
18285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18288 cat >$CONFIG_STATUS <<_ACEOF
18290 # Generated by $as_me.
18291 # Run this file to recreate the current configuration.
18292 # Compiler output produced by configure, useful for debugging
18293 # configure, is in config.log if it exists.
18296 ac_cs_recheck=false
18298 SHELL=\${CONFIG_SHELL-$SHELL}
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18302 ## --------------------- ##
18303 ## M4sh Initialization. ##
18304 ## --------------------- ##
18306 # Be Bourne compatible
18307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18311 # is contrary to our usage. Disable this feature.
18312 alias -g '${1+"$@"}'='"$@"'
18313 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18317 # Support unset when possible.
18318 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18325 # Work around bugs in pre-3.0 UWIN ksh.
18326 $as_unset ENV MAIL MAILPATH
18333 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18334 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18335 LC_TELEPHONE LC_TIME
18337 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18338 eval $as_var=C; export $as_var
18344 # Required to use basename.
18345 if expr a : '\(a\)' >/dev/null 2>&1; then
18351 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18352 as_basename=basename
18358 # Name of the executable.
18359 as_me=`$as_basename "$0" ||
18360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18361 X"$0" : 'X\(//\)$' \| \
18362 X"$0" : 'X\(/\)$' \| \
18363 . : '\(.\)' 2>/dev/null ||
18365 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18366 /^X\/\(\/\/\)$/{ s//\1/; q; }
18367 /^X\/\(\/\).*/{ s//\1/; q; }
18371 # PATH needs CR, and LINENO needs CR and PATH.
18372 # Avoid depending upon Character Ranges.
18373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18376 as_cr_digits='0123456789'
18377 as_cr_alnum=$as_cr_Letters$as_cr_digits
18379 # The user is always right.
18380 if test "${PATH_SEPARATOR+set}" != set; then
18381 echo "#! /bin/sh" >conf$$.sh
18382 echo "exit 0" >>conf$$.sh
18384 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18393 as_lineno_1=$LINENO
18394 as_lineno_2=$LINENO
18395 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18396 test "x$as_lineno_1" != "x$as_lineno_2" &&
18397 test "x$as_lineno_3" = "x$as_lineno_2" || {
18398 # Find who we are. Look in the path if we contain no path at all
18401 *[\\/]* ) as_myself=$0 ;;
18402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18403 for as_dir in $PATH
18406 test -z "$as_dir" && as_dir=.
18407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18412 # We did not find ourselves, most probably we were run as `sh COMMAND'
18413 # in which case we are not to be found in the path.
18414 if test "x$as_myself" = x; then
18417 if test ! -f "$as_myself"; then
18418 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18419 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18420 { (exit 1); exit 1; }; }
18422 case $CONFIG_SHELL in
18424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18428 test -z "$as_dir" && as_dir=.
18429 for as_base in sh bash ksh sh5; do
18432 if ("$as_dir/$as_base" -c '
18433 as_lineno_1=$LINENO
18434 as_lineno_2=$LINENO
18435 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18436 test "x$as_lineno_1" != "x$as_lineno_2" &&
18437 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18438 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18439 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18440 CONFIG_SHELL=$as_dir/$as_base
18441 export CONFIG_SHELL
18442 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18451 # uniformly replaced by the line number. The first 'sed' inserts a
18452 # line-number line before each line; the second 'sed' does the real
18453 # work. The second script uses 'N' to pair each line-number line
18454 # with the numbered line, and appends trailing '-' during
18455 # substitution so that $LINENO is not a special case at line end.
18456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18457 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18458 sed '=' <$as_myself |
18463 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18466 s,^['$as_cr_digits']*\n,,
18467 ' >$as_me.lineno &&
18468 chmod +x $as_me.lineno ||
18469 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18470 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18471 { (exit 1); exit 1; }; }
18473 # Don't try to exec as it changes $[0], causing all sort of problems
18474 # (the dirname of $[0] is not the place where we might find the
18475 # original and so on. Autoconf is especially sensible to this).
18477 # Exit status is that of the last command.
18482 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18483 *c*,-n*) ECHO_N= ECHO_C='
18485 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18486 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18489 if expr a : '\(a\)' >/dev/null 2>&1; then
18495 rm -f conf$$ conf$$.exe conf$$.file
18497 if ln -s conf$$.file conf$$ 2>/dev/null; then
18498 # We could just check for DJGPP; but this test a) works b) is more generic
18499 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18500 if test -f conf$$.exe; then
18501 # Don't use ln at all; we don't have any links
18506 elif ln conf$$.file conf$$ 2>/dev/null; then
18511 rm -f conf$$ conf$$.exe conf$$.file
18513 if mkdir -p . 2>/dev/null; then
18519 as_executable_p="test -f"
18521 # Sed expression to map a string onto a valid CPP name.
18522 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18524 # Sed expression to map a string onto a valid variable name.
18525 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18529 # We need space, tab and new line, in precisely that order.
18539 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18540 # report actual input values of CONFIG_FILES etc. instead of their
18541 # values after options handling. Logging --version etc. is OK.
18545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18546 ## Running $as_me. ##
18551 This file was extended by $as_me, which was
18552 generated by GNU Autoconf 2.57. Invocation command line was
18554 CONFIG_FILES = $CONFIG_FILES
18555 CONFIG_HEADERS = $CONFIG_HEADERS
18556 CONFIG_LINKS = $CONFIG_LINKS
18557 CONFIG_COMMANDS = $CONFIG_COMMANDS
18561 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18565 # Files that config.status was made for.
18566 if test -n "$ac_config_files"; then
18567 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18570 if test -n "$ac_config_headers"; then
18571 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18574 if test -n "$ac_config_links"; then
18575 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18578 if test -n "$ac_config_commands"; then
18579 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18582 cat >>$CONFIG_STATUS <<\_ACEOF
18585 \`$as_me' instantiates files from templates according to the
18586 current configuration.
18588 Usage: $0 [OPTIONS] [FILE]...
18590 -h, --help print this help, then exit
18591 -V, --version print version number, then exit
18592 -q, --quiet do not print progress messages
18593 -d, --debug don't remove temporary files
18594 --recheck update $as_me by reconfiguring in the same conditions
18595 --file=FILE[:TEMPLATE]
18596 instantiate the configuration file FILE
18597 --header=FILE[:TEMPLATE]
18598 instantiate the configuration header FILE
18600 Configuration files:
18603 Configuration headers:
18606 Configuration commands:
18609 Report bugs to <bug-autoconf@gnu.org>."
18612 cat >>$CONFIG_STATUS <<_ACEOF
18615 configured by $0, generated by GNU Autoconf 2.57,
18616 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18618 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18619 Free Software Foundation, Inc.
18620 This config.status script is free software; the Free Software Foundation
18621 gives unlimited permission to copy, distribute and modify it."
18626 cat >>$CONFIG_STATUS <<\_ACEOF
18627 # If no file are specified by the user, then we need to provide default
18628 # value. By we need to know if files were specified by the user.
18634 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18635 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18643 *) # This is not an option, so the user has probably given explicit
18646 ac_need_defaults=false;;
18650 # Handling of the options.
18652 cat >>$CONFIG_STATUS <<\_ACEOF
18653 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18655 --version | --vers* | -V )
18656 echo "$ac_cs_version"; exit 0 ;;
18658 # Conflict between --help and --header
18659 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18660 Try \`$0 --help' for more information." >&5
18661 echo "$as_me: error: ambiguous option: $1
18662 Try \`$0 --help' for more information." >&2;}
18663 { (exit 1); exit 1; }; };;
18664 --help | --hel | -h )
18665 echo "$ac_cs_usage"; exit 0 ;;
18666 --debug | --d* | -d )
18668 --file | --fil | --fi | --f )
18670 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18671 ac_need_defaults=false;;
18672 --header | --heade | --head | --hea )
18674 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18675 ac_need_defaults=false;;
18676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18677 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18680 # This is an error.
18681 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18682 Try \`$0 --help' for more information." >&5
18683 echo "$as_me: error: unrecognized option: $1
18684 Try \`$0 --help' for more information." >&2;}
18685 { (exit 1); exit 1; }; } ;;
18687 *) ac_config_targets="$ac_config_targets $1" ;;
18693 ac_configure_extra_args=
18695 if $ac_cs_silent; then
18697 ac_configure_extra_args="$ac_configure_extra_args --silent"
18701 cat >>$CONFIG_STATUS <<_ACEOF
18702 if \$ac_cs_recheck; then
18703 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18704 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18713 cat >>$CONFIG_STATUS <<\_ACEOF
18714 for ac_config_target in $ac_config_targets
18716 case "$ac_config_target" in
18717 # Handling of arguments.
18718 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18719 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18720 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18721 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18722 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18723 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18724 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18725 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18726 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18727 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18728 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18729 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18730 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18731 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18732 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18733 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18734 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18735 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18736 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18737 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18738 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18739 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18740 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18741 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18742 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18743 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18744 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18745 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18746 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18747 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18748 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18749 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18750 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18751 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18752 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18753 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18754 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18755 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18756 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18757 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18758 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18759 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18760 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18761 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18762 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18763 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18764 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18765 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18766 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18767 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18768 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18769 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18770 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18771 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18772 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18773 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18774 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18775 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18776 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18777 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18778 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18779 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18780 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18781 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18782 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18783 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18784 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18785 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18786 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18787 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18788 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18789 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18790 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18791 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18792 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18793 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18794 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18795 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18796 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18797 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18798 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18799 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18800 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18801 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18802 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18803 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18804 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18805 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18806 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18807 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18810 { (exit 1); exit 1; }; };;
18814 # If the user did not use the arguments to specify the items to instantiate,
18815 # then the envvar interface is used. Set only those that are not.
18816 # We use the long form for the default assignment because of an extremely
18817 # bizarre bug on SunOS 4.1.3.
18818 if $ac_need_defaults; then
18819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18820 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18821 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18824 # Have a temporary directory for convenience. Make it in the build tree
18825 # simply because there is no reason to put it here, and in addition,
18826 # creating and moving files from /tmp can sometimes cause problems.
18827 # Create a temporary directory, and hook for its removal unless debugging.
18830 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18831 trap '{ (exit 1); exit 1; }' 1 2 13 15
18834 # Create a (secure) tmp directory for tmp files.
18837 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18838 test -n "$tmp" && test -d "$tmp"
18841 tmp=./confstat$$-$RANDOM
18842 (umask 077 && mkdir $tmp)
18845 echo "$me: cannot create a temporary directory in ." >&2
18846 { (exit 1); exit 1; }
18851 cat >>$CONFIG_STATUS <<_ACEOF
18854 # CONFIG_FILES section.
18857 # No need to generate the scripts if there are no CONFIG_FILES.
18858 # This happens for instance when ./config.status config.h
18859 if test -n "\$CONFIG_FILES"; then
18860 # Protect against being on the right side of a sed subst in config.status.
18861 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18862 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18863 s,@SHELL@,$SHELL,;t t
18864 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18865 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18866 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18867 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18868 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18869 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18870 s,@exec_prefix@,$exec_prefix,;t t
18871 s,@prefix@,$prefix,;t t
18872 s,@program_transform_name@,$program_transform_name,;t t
18873 s,@bindir@,$bindir,;t t
18874 s,@sbindir@,$sbindir,;t t
18875 s,@libexecdir@,$libexecdir,;t t
18876 s,@datadir@,$datadir,;t t
18877 s,@sysconfdir@,$sysconfdir,;t t
18878 s,@sharedstatedir@,$sharedstatedir,;t t
18879 s,@localstatedir@,$localstatedir,;t t
18880 s,@libdir@,$libdir,;t t
18881 s,@includedir@,$includedir,;t t
18882 s,@oldincludedir@,$oldincludedir,;t t
18883 s,@infodir@,$infodir,;t t
18884 s,@mandir@,$mandir,;t t
18885 s,@build_alias@,$build_alias,;t t
18886 s,@host_alias@,$host_alias,;t t
18887 s,@target_alias@,$target_alias,;t t
18888 s,@DEFS@,$DEFS,;t t
18889 s,@ECHO_C@,$ECHO_C,;t t
18890 s,@ECHO_N@,$ECHO_N,;t t
18891 s,@ECHO_T@,$ECHO_T,;t t
18892 s,@LIBS@,$LIBS,;t t
18893 s,@BUILD_DIR@,$BUILD_DIR,;t t
18894 s,@TRUEPRG@,$TRUEPRG,;t t
18895 s,@FALSEPRG@,$FALSEPRG,;t t
18896 s,@VERSION@,$VERSION,;t t
18897 s,@DATE@,$DATE,;t t
18898 s,@LSMDATE@,$LSMDATE,;t t
18900 s,@CFLAGS@,$CFLAGS,;t t
18901 s,@LDFLAGS@,$LDFLAGS,;t t
18902 s,@CPPFLAGS@,$CPPFLAGS,;t t
18903 s,@ac_ct_CC@,$ac_ct_CC,;t t
18904 s,@EXEEXT@,$EXEEXT,;t t
18905 s,@OBJEXT@,$OBJEXT,;t t
18907 s,@CXXFLAGS@,$CXXFLAGS,;t t
18908 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18910 s,@EGREP@,$EGREP,;t t
18911 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18912 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18913 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18914 s,@RANLIB@,$RANLIB,;t t
18915 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18921 s,@ECHO@,$ECHO,;t t
18925 s,@OPENSSL@,$OPENSSL,;t t
18927 s,@PKGCONFIG@,$PKGCONFIG,;t t
18928 s,@WXCONFIG@,$WXCONFIG,;t t
18929 s,@ARFLAGS@,$ARFLAGS,;t t
18930 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18931 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18932 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18933 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18934 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18935 s,@build@,$build,;t t
18936 s,@build_cpu@,$build_cpu,;t t
18937 s,@build_vendor@,$build_vendor,;t t
18938 s,@build_os@,$build_os,;t t
18939 s,@host@,$host,;t t
18940 s,@host_cpu@,$host_cpu,;t t
18941 s,@host_vendor@,$host_vendor,;t t
18942 s,@host_os@,$host_os,;t t
18943 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18944 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18945 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18946 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18947 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18948 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18949 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18950 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18951 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18952 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18953 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18954 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18955 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18956 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18957 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18958 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18959 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18960 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18961 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18962 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18963 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18964 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18965 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18966 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18967 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18968 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18969 s,@MSGFMT@,$MSGFMT,;t t
18970 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18971 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18972 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18973 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18974 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18975 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18976 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18977 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18978 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18979 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18980 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18981 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18982 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18983 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18984 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18985 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18986 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18987 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18988 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18989 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18990 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18991 s,@GNOME_DIR@,$GNOME_DIR,;t t
18992 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
18993 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
18994 s,@WX_DIR@,$WX_DIR,;t t
18995 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18996 s,@STATIC_FD@,$STATIC_FD,;t t
18997 s,@STATIC_SD@,$STATIC_SD,;t t
18998 s,@STATIC_DIR@,$STATIC_DIR,;t t
18999 s,@STATIC_CONS@,$STATIC_CONS,;t t
19000 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19001 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19002 s,@ALL_DIRS@,$ALL_DIRS,;t t
19003 s,@CONS_INC@,$CONS_INC,;t t
19004 s,@CONS_OBJ@,$CONS_OBJ,;t t
19005 s,@CONS_SRC@,$CONS_SRC,;t t
19006 s,@CONS_LIBS@,$CONS_LIBS,;t t
19007 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19008 s,@READLINE_SRC@,$READLINE_SRC,;t t
19009 s,@working_dir@,$working_dir,;t t
19010 s,@scriptdir@,$scriptdir,;t t
19011 s,@dump_email@,$dump_email,;t t
19012 s,@job_email@,$job_email,;t t
19013 s,@smtp_host@,$smtp_host,;t t
19014 s,@piddir@,$piddir,;t t
19015 s,@subsysdir@,$subsysdir,;t t
19016 s,@baseport@,$baseport,;t t
19017 s,@dir_port@,$dir_port,;t t
19018 s,@fd_port@,$fd_port,;t t
19019 s,@sd_port@,$sd_port,;t t
19020 s,@dir_password@,$dir_password,;t t
19021 s,@fd_password@,$fd_password,;t t
19022 s,@sd_password@,$sd_password,;t t
19023 s,@dir_user@,$dir_user,;t t
19024 s,@dir_group@,$dir_group,;t t
19025 s,@sd_user@,$sd_user,;t t
19026 s,@sd_group@,$sd_group,;t t
19027 s,@fd_user@,$fd_user,;t t
19028 s,@fd_group@,$fd_group,;t t
19029 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19030 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19031 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19032 s,@cats@,$cats,;t t
19033 s,@DB_NAME@,$DB_NAME,;t t
19034 s,@GETCONF@,$GETCONF,;t t
19035 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19036 s,@X_CFLAGS@,$X_CFLAGS,;t t
19037 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19038 s,@X_LIBS@,$X_LIBS,;t t
19039 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19040 s,@LIBOBJS@,$LIBOBJS,;t t
19041 s,@ALLOCA@,$ALLOCA,;t t
19042 s,@FDLIBS@,$FDLIBS,;t t
19043 s,@DEBUG@,$DEBUG,;t t
19044 s,@DINCLUDE@,$DINCLUDE,;t t
19045 s,@DLIB@,$DLIB,;t t
19046 s,@DB_LIBS@,$DB_LIBS,;t t
19047 s,@WCFLAGS@,$WCFLAGS,;t t
19048 s,@WLDFLAGS@,$WLDFLAGS,;t t
19049 s,@OBJLIST@,$OBJLIST,;t t
19050 s,@hostname@,$hostname,;t t
19051 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19052 s,@PSCMD@,$PSCMD,;t t
19053 s,@WIN32@,$WIN32,;t t
19054 s,@DISTNAME@,$DISTNAME,;t t
19055 s,@DISTVER@,$DISTVER,;t t
19056 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19057 /@MCOMMON@/r $MCOMMON
19063 cat >>$CONFIG_STATUS <<\_ACEOF
19064 # Split the substitutions into bite-sized pieces for seds with
19065 # small command number limits, like on Digital OSF/1 and HP-UX.
19066 ac_max_sed_lines=48
19067 ac_sed_frag=1 # Number of current file.
19068 ac_beg=1 # First line for current file.
19069 ac_end=$ac_max_sed_lines # Line after last line for current file.
19072 while $ac_more_lines; do
19073 if test $ac_beg -gt 1; then
19074 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19076 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19078 if test ! -s $tmp/subs.frag; then
19079 ac_more_lines=false
19081 # The purpose of the label and of the branching condition is to
19082 # speed up the sed processing (if there are no `@' at all, there
19083 # is no need to browse any of the substitutions).
19084 # These are the two extra sed commands mentioned above.
19086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19087 if test -z "$ac_sed_cmds"; then
19088 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19090 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19092 ac_sed_frag=`expr $ac_sed_frag + 1`
19094 ac_end=`expr $ac_end + $ac_max_sed_lines`
19097 if test -z "$ac_sed_cmds"; then
19100 fi # test -n "$CONFIG_FILES"
19103 cat >>$CONFIG_STATUS <<\_ACEOF
19104 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19107 - | *:- | *:-:* ) # input from stdin
19109 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19111 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19113 * ) ac_file_in=$ac_file.in ;;
19116 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19117 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19119 X"$ac_file" : 'X\(//\)[^/]' \| \
19120 X"$ac_file" : 'X\(//\)$' \| \
19121 X"$ac_file" : 'X\(/\)' \| \
19122 . : '\(.\)' 2>/dev/null ||
19124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19126 /^X\(\/\/\)$/{ s//\1/; q; }
19127 /^X\(\/\).*/{ s//\1/; q; }
19129 { if $as_mkdir_p; then
19134 while test ! -d "$as_dir"; do
19135 as_dirs="$as_dir $as_dirs"
19136 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19138 X"$as_dir" : 'X\(//\)[^/]' \| \
19139 X"$as_dir" : 'X\(//\)$' \| \
19140 X"$as_dir" : 'X\(/\)' \| \
19141 . : '\(.\)' 2>/dev/null ||
19143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19145 /^X\(\/\/\)$/{ s//\1/; q; }
19146 /^X\(\/\).*/{ s//\1/; q; }
19149 test ! -n "$as_dirs" || mkdir $as_dirs
19150 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19151 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19152 { (exit 1); exit 1; }; }; }
19156 if test "$ac_dir" != .; then
19157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19158 # A "../" for each directory in $ac_dir_suffix.
19159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19161 ac_dir_suffix= ac_top_builddir=
19165 .) # No --srcdir option. We are building in place.
19167 if test -z "$ac_top_builddir"; then
19170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19172 [\\/]* | ?:[\\/]* ) # Absolute path.
19173 ac_srcdir=$srcdir$ac_dir_suffix;
19174 ac_top_srcdir=$srcdir ;;
19175 *) # Relative path.
19176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19179 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19181 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19182 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19183 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19184 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19188 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19189 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19192 if test x"$ac_file" != x-; then
19193 { echo "$as_me:$LINENO: creating $ac_file" >&5
19194 echo "$as_me: creating $ac_file" >&6;}
19197 # Let's still pretend it is `configure' which instantiates (i.e., don't
19198 # use $as_me), people would be surprised to read:
19199 # /* config.h. Generated by config.status. */
19200 if test x"$ac_file" = x-; then
19203 configure_input="$ac_file. "
19205 configure_input=$configure_input"Generated from `echo $ac_file_in |
19206 sed 's,.*/,,'` by configure."
19208 # First look for the input files in the build tree, otherwise in the
19210 ac_file_inputs=`IFS=:
19211 for f in $ac_file_in; do
19213 -) echo $tmp/stdin ;;
19215 # Absolute (can't be DOS-style, as IFS=:)
19216 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19217 echo "$as_me: error: cannot find input file: $f" >&2;}
19218 { (exit 1); exit 1; }; }
19221 if test -f "$f"; then
19224 elif test -f "$srcdir/$f"; then
19229 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19230 echo "$as_me: error: cannot find input file: $f" >&2;}
19231 { (exit 1); exit 1; }; }
19234 done` || { (exit 1); exit 1; }
19236 cat >>$CONFIG_STATUS <<_ACEOF
19240 cat >>$CONFIG_STATUS <<\_ACEOF
19242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19243 s,@configure_input@,$configure_input,;t t
19244 s,@srcdir@,$ac_srcdir,;t t
19245 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19246 s,@top_srcdir@,$ac_top_srcdir,;t t
19247 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19248 s,@builddir@,$ac_builddir,;t t
19249 s,@abs_builddir@,$ac_abs_builddir,;t t
19250 s,@top_builddir@,$ac_top_builddir,;t t
19251 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19252 s,@INSTALL@,$ac_INSTALL,;t t
19253 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19255 if test x"$ac_file" != x-; then
19256 mv $tmp/out $ac_file
19264 cat >>$CONFIG_STATUS <<\_ACEOF
19267 # CONFIG_HEADER section.
19270 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19271 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19273 # ac_d sets the value in "#define NAME VALUE" lines.
19274 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19275 ac_dB='[ ].*$,\1#\2'
19278 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19279 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19280 ac_uB='$,\1#\2define\3'
19284 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19287 - | *:- | *:-:* ) # input from stdin
19289 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19291 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19292 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19293 * ) ac_file_in=$ac_file.in ;;
19296 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19297 echo "$as_me: creating $ac_file" >&6;}
19299 # First look for the input files in the build tree, otherwise in the
19301 ac_file_inputs=`IFS=:
19302 for f in $ac_file_in; do
19304 -) echo $tmp/stdin ;;
19306 # Absolute (can't be DOS-style, as IFS=:)
19307 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19308 echo "$as_me: error: cannot find input file: $f" >&2;}
19309 { (exit 1); exit 1; }; }
19312 if test -f "$f"; then
19315 elif test -f "$srcdir/$f"; then
19320 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19321 echo "$as_me: error: cannot find input file: $f" >&2;}
19322 { (exit 1); exit 1; }; }
19325 done` || { (exit 1); exit 1; }
19326 # Remove the trailing spaces.
19327 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19331 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19332 # `conftest.undefs', that substitutes the proper values into
19333 # config.h.in to produce config.h. The first handles `#define'
19334 # templates, and the second `#undef' templates.
19335 # And first: Protect against being on the right side of a sed subst in
19336 # config.status. Protect against being in an unquoted here document
19337 # in config.status.
19338 rm -f conftest.defines conftest.undefs
19339 # Using a here document instead of a string reduces the quoting nightmare.
19340 # Putting comments in sed scripts is not portable.
19342 # `end' is used to avoid that the second main sed command (meant for
19343 # 0-ary CPP macros) applies to n-ary macro definitions.
19344 # See the Autoconf documentation for `clear'.
19345 cat >confdef2sed.sed <<\_ACEOF
19350 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19352 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19355 # If some macros were called several times there might be several times
19356 # the same #defines, which is useless. Nevertheless, we may not want to
19357 # sort them, since we want the *last* AC-DEFINE to be honored.
19358 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19359 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19360 rm -f confdef2sed.sed
19362 # This sed command replaces #undef with comments. This is necessary, for
19363 # example, in the case of _POSIX_SOURCE, which is predefined and required
19364 # on some systems where configure will not decide to define it.
19365 cat >>conftest.undefs <<\_ACEOF
19366 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19369 # Break up conftest.defines because some shells have a limit on the size
19370 # of here documents, and old seds have small limits too (100 cmds).
19371 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19372 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19373 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19374 echo ' :' >>$CONFIG_STATUS
19375 rm -f conftest.tail
19376 while grep . conftest.defines >/dev/null
19378 # Write a limited-size here document to $tmp/defines.sed.
19379 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19380 # Speed up: don't consider the non `#define' lines.
19381 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19382 # Work around the forget-to-reset-the-flag bug.
19383 echo 't clr' >>$CONFIG_STATUS
19384 echo ': clr' >>$CONFIG_STATUS
19385 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19387 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19389 mv $tmp/out $tmp/in
19391 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19392 rm -f conftest.defines
19393 mv conftest.tail conftest.defines
19395 rm -f conftest.defines
19396 echo ' fi # grep' >>$CONFIG_STATUS
19397 echo >>$CONFIG_STATUS
19399 # Break up conftest.undefs because some shells have a limit on the size
19400 # of here documents, and old seds have small limits too (100 cmds).
19401 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19402 rm -f conftest.tail
19403 while grep . conftest.undefs >/dev/null
19405 # Write a limited-size here document to $tmp/undefs.sed.
19406 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19407 # Speed up: don't consider the non `#undef'
19408 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19409 # Work around the forget-to-reset-the-flag bug.
19410 echo 't clr' >>$CONFIG_STATUS
19411 echo ': clr' >>$CONFIG_STATUS
19412 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19414 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19416 mv $tmp/out $tmp/in
19418 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19419 rm -f conftest.undefs
19420 mv conftest.tail conftest.undefs
19422 rm -f conftest.undefs
19424 cat >>$CONFIG_STATUS <<\_ACEOF
19425 # Let's still pretend it is `configure' which instantiates (i.e., don't
19426 # use $as_me), people would be surprised to read:
19427 # /* config.h. Generated by config.status. */
19428 if test x"$ac_file" = x-; then
19429 echo "/* Generated by configure. */" >$tmp/config.h
19431 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19433 cat $tmp/in >>$tmp/config.h
19435 if test x"$ac_file" != x-; then
19436 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19437 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19438 echo "$as_me: $ac_file is unchanged" >&6;}
19440 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19442 X"$ac_file" : 'X\(//\)[^/]' \| \
19443 X"$ac_file" : 'X\(//\)$' \| \
19444 X"$ac_file" : 'X\(/\)' \| \
19445 . : '\(.\)' 2>/dev/null ||
19447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19449 /^X\(\/\/\)$/{ s//\1/; q; }
19450 /^X\(\/\).*/{ s//\1/; q; }
19452 { if $as_mkdir_p; then
19457 while test ! -d "$as_dir"; do
19458 as_dirs="$as_dir $as_dirs"
19459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19461 X"$as_dir" : 'X\(//\)[^/]' \| \
19462 X"$as_dir" : 'X\(//\)$' \| \
19463 X"$as_dir" : 'X\(/\)' \| \
19464 . : '\(.\)' 2>/dev/null ||
19466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19468 /^X\(\/\/\)$/{ s//\1/; q; }
19469 /^X\(\/\).*/{ s//\1/; q; }
19472 test ! -n "$as_dirs" || mkdir $as_dirs
19473 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19475 { (exit 1); exit 1; }; }; }
19478 mv $tmp/config.h $ac_file
19482 rm -f $tmp/config.h
19486 cat >>$CONFIG_STATUS <<\_ACEOF
19489 # CONFIG_COMMANDS section.
19491 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19492 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19493 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19494 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19495 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19496 X"$ac_dest" : 'X\(//\)[^/]' \| \
19497 X"$ac_dest" : 'X\(//\)$' \| \
19498 X"$ac_dest" : 'X\(/\)' \| \
19499 . : '\(.\)' 2>/dev/null ||
19501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19503 /^X\(\/\/\)$/{ s//\1/; q; }
19504 /^X\(\/\).*/{ s//\1/; q; }
19508 if test "$ac_dir" != .; then
19509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19510 # A "../" for each directory in $ac_dir_suffix.
19511 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19513 ac_dir_suffix= ac_top_builddir=
19517 .) # No --srcdir option. We are building in place.
19519 if test -z "$ac_top_builddir"; then
19522 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19524 [\\/]* | ?:[\\/]* ) # Absolute path.
19525 ac_srcdir=$srcdir$ac_dir_suffix;
19526 ac_top_srcdir=$srcdir ;;
19527 *) # Relative path.
19528 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19529 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19531 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19533 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19534 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19535 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19536 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19539 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19540 echo "$as_me: executing $ac_dest commands" >&6;}
19542 default ) (echo "Doing make of dependencies"; make depend;)
19548 cat >>$CONFIG_STATUS <<\_ACEOF
19550 { (exit 0); exit 0; }
19552 chmod +x $CONFIG_STATUS
19553 ac_clean_files=$ac_clean_files_save
19556 # configure is writing to config.log, and then calls config.status.
19557 # config.status does its own redirection, appending to config.log.
19558 # Unfortunately, on DOS this fails, as config.log is still kept open
19559 # by configure, so config.status won't be able to write to it; its
19560 # output is simply discarded. So we exec the FD to /dev/null,
19561 # effectively closing config.log, so it can be properly (re)opened and
19562 # appended to by config.status. When coming back to configure, we
19563 # need to make the FD available again.
19564 if test "$no_create" != yes; then
19566 ac_config_status_args=
19567 test "$silent" = yes &&
19568 ac_config_status_args="$ac_config_status_args --quiet"
19570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19573 # would make configure fail if this is the last instruction.
19574 $ac_cs_success || { (exit 1); exit 1; }
19579 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19580 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19585 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19586 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19588 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19589 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19591 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19592 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19594 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19595 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19597 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19598 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19600 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19601 chmod 755 $c/sqlite
19604 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19605 largefile_support="yes"
19609 # A whole lot of hand springs to get the compiler version.
19610 # This is because gcc changed the output in version 3.0
19612 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19613 if test "x${CCVERSION}" = "x" ; then
19614 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19616 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19617 if test x"${CXXVERSION}" = x ; then
19618 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19621 if test "x${subsysdir}" = "x${sbindir}" ; then
19624 echo "You have set --sbindir and --with-subsys-dir"
19625 echo " both equal to: ${subsysdir} "
19626 echo " This is not permitted. Please reconfigure."
19627 echo "Aborting configuration ..."
19634 Configuration on `date`:
19636 Host: $host -- ${DISTNAME} ${DISTVER}
19637 Bacula version: ${VERSION} (${DATE})
19638 Source code location: ${srcdir}
19639 Install binaries: ${sbindir}
19640 Install config files: ${sysconfdir}
19641 Scripts directory: ${scriptdir}
19642 Working directory: ${working_dir}
19643 PID directory: ${piddir}
19644 Subsys directory: ${subsysdir}
19645 C Compiler: ${CC} ${CCVERSION}
19646 C++ Compiler: ${CXX} ${CXXVERSION}
19647 Compiler flags: ${WCFLAGS} ${CFLAGS}
19648 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19650 Statically Linked Tools: ${support_static_tools}
19651 Statically Linked FD: ${support_static_fd}
19652 Statically Linked SD: ${support_static_sd}
19653 Statically Linked DIR: ${support_static_dir}
19654 Statically Linked CONS: ${support_static_cons}
19655 Database type: ${db_name}
19656 Database lib: ${DB_LIBS}
19658 Job Output Email: ${job_email}
19659 Traceback Email: ${dump_email}
19660 SMTP Host Address: ${smtp_host}
19662 Director Port: ${dir_port}
19663 File daemon Port: ${fd_port}
19664 Storage daemon Port: ${sd_port}
19666 Director User: ${dir_user}
19667 Director Group: ${dir_group}
19668 Storage Daemon User: ${sd_user}
19669 Storage DaemonGroup: ${sd_group}
19670 File Daemon User: ${fd_user}
19671 File Daemon Group: ${fd_group}
19673 SQL binaries Directory ${SQL_BINDIR}
19675 Large file support: $largefile_support
19676 Bacula conio support: ${got_conio} ${CONS_LIBS}
19677 readline support: ${got_readline} ${PRTREADLINE_SRC}
19678 TCP Wrappers support: ${TCPW_MSG}
19679 ZLIB support: ${have_zlib}
19680 enable-smartalloc: ${support_smartalloc}
19681 enable-gnome: ${support_gnome} ${gnome_version}
19682 enable-wx-console: ${support_wx_console}
19683 client-only: ${build_client_only}
19690 # cweb support: ${got_cweb} ${CWEB_SRC}
19691 # gmp support: ${got_gmp} ${GMP_SRC}