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
6356 for ac_func in nanosleep nl_langinfo
6358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6359 echo "$as_me:$LINENO: checking for $ac_func" >&5
6360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6361 if eval "test \"\${$as_ac_var+set}\" = set"; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line $LINENO "configure"
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 /* System header to define __stub macros and hopefully few prototypes,
6372 which can conflict with char $ac_func (); below.
6373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6374 <limits.h> exists even on freestanding compilers. */
6376 # include <limits.h>
6378 # include <assert.h>
6380 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6394 char (*f) () = $ac_func;
6403 return f != $ac_func;
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 eval "$as_ac_var=yes"
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 eval "$as_ac_var=no"
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6431 if test `eval echo '${'$as_ac_var'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6441 for ac_header in varargs.h
6443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6453 # Is the header compilable?
6454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 $ac_includes_default
6464 #include <$ac_header>
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_header_compiler=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_header_compiler=no
6485 rm -f conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6487 echo "${ECHO_T}$ac_header_compiler" >&6
6489 # Is the header present?
6490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line $LINENO "configure"
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <$ac_header>
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } >/dev/null; then
6509 if test -s conftest.err; then
6510 ac_cpp_err=$ac_c_preproc_warn_flag
6517 if test -z "$ac_cpp_err"; then
6518 ac_header_preproc=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_header_preproc=no
6525 rm -f conftest.err conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6527 echo "${ECHO_T}$ac_header_preproc" >&6
6529 # So? What about this header?
6530 case $ac_header_compiler:$ac_header_preproc in
6532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6538 ## ------------------------------------ ##
6539 ## Report this to bug-autoconf@gnu.org. ##
6540 ## ------------------------------------ ##
6543 sed "s/^/$as_me: WARNING: /" >&2
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6554 ## ------------------------------------ ##
6555 ## Report this to bug-autoconf@gnu.org. ##
6556 ## ------------------------------------ ##
6559 sed "s/^/$as_me: WARNING: /" >&2
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 eval "$as_ac_Header=$ac_header_preproc"
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6583 # End of readline/conio stuff
6584 # -----------------------------------------------------------------------
6587 # ---------------------------------------------------
6588 # Check for GMP support/directory
6589 # ---------------------------------------------------
6593 # [ --with-gmp[=DIR] Specify gmp library directory],
6595 # case "$with_gmp" in
6598 # if test "$with_gmp" != "yes"; then
6599 # GMP_INC="-I$with_gmp"
6601 # GMP_LDFLAGS="-L$with_gmp"
6603 # with_gmp="/usr/include"
6605 # AC_CHECK_HEADER($with_gmp/gmp.h,
6606 # [ AC_MSG_RESULT(yes)
6607 # AC_DEFINE(HAVE_GMP)
6611 # [ AC_MSG_ERROR([*** gmp library missing])
6617 # # check for standard gmp library
6618 # AC_CHECK_HEADER(/usr/include/gmp.h,
6619 # [ AC_MSG_RESULT(yes)
6620 # AC_DEFINE(HAVE_GMP)
6625 # # Did not find standard library, so use our own
6626 # AC_MSG_RESULT(yes)
6627 # AC_DEFINE(HAVE_GMP)
6630 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6632 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6633 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6639 #AC_SUBST(GMP_LDFLAGS)
6643 # -----------------------------------------------------------------------
6646 # ---------------------------------------------------
6647 # Check for CWEB support/directory
6648 # ---------------------------------------------------
6653 # [ --with-cweb[=DIR] Specify cweb library directory],
6655 # case "$with_cweb" in
6658 # if test "$with_cweb" != "yes"; then
6659 # CWEB_INC="-I$with_cweb"
6660 # CWEB_LIBS="-lcweb"
6661 # CWEB_LDFLAGS="-L$with_cweb"
6663 # with_cweb="/usr/include"
6665 # AC_CHECK_HEADER($with_cweb/cweb.h,
6666 # [ AC_MSG_RESULT(yes)
6667 # AC_DEFINE(HAVE_CWEB)
6668 # CWEB_LIBS="-lcweb"
6671 # [ AC_MSG_ERROR([*** cweb library missing])
6677 # # check for standard cweb library
6678 # AC_CHECK_HEADER(/usr/include/cweb.h,
6679 # [ AC_MSG_RESULT(yes)
6680 # AC_DEFINE(HAVE_CWEB)
6683 # CWEB_LIBS="-lcweb"
6685 # # Did not find starndard library, so use our own
6686 # AC_MSG_RESULT(yes)
6687 # AC_DEFINE(HAVE_CWEB)
6690 # CWEB=${TOP_DIR}/depkgs/cweb
6691 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6692 # CWEB_LIBS="-lcweb"
6693 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6694 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6700 #AC_SUBST(CWEB_LIBS)
6701 #AC_SUBST(CWEB_LDFLAGS)
6705 # -----------------------------------------------------------------------
6709 # -----------------------------------------------------------
6710 # Check whether user wants TCP wrappers support (default off)
6711 # -----------------------------------------------------------
6714 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6715 if test "${with_tcp_wrappers+set}" = set; then
6716 withval="$with_tcp_wrappers"
6718 if test "x$withval" != "xno" ; then
6720 LIBS="$saved_LIBS -lwrap"
6721 echo "$as_me:$LINENO: checking for libwrap" >&5
6722 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6723 cat >conftest.$ac_ext <<_ACEOF
6724 #line $LINENO "configure"
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6731 int deny_severity = 0;
6732 int allow_severity = 0;
6733 struct request_info *req;
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -s conftest$ac_exeext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6755 echo "$as_me:$LINENO: result: yes" >&5
6756 echo "${ECHO_T}yes" >&6
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_LIBWRAP 1
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6768 LIBS="$saved_LIBS -lwrap -lnsl"
6769 cat >conftest.$ac_ext <<_ACEOF
6770 #line $LINENO "configure"
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6777 int deny_severity = 0;
6778 int allow_severity = 0;
6779 struct request_info *req;
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try='test -s conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802 echo "${ECHO_T}yes" >&6
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_LIBWRAP 1
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6814 echo "$as_me: error: *** libwrap missing" >&2;}
6815 { (exit 1); exit 1; }; }
6818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6827 # ------------------------------------------
6828 # Where to place working dir
6829 # ------------------------------------------
6830 working_dir=`eval echo ${prefix}/var/bacula/working`
6832 # Check whether --with-working-dir or --without-working-dir was given.
6833 if test "${with_working_dir+set}" = set; then
6834 withval="$with_working_dir"
6836 if test "x$withval" != "xno" ; then
6837 working_dir=$withval
6846 # ------------------------------------------
6847 # Where to place scriptdir (script files)
6848 # ------------------------------------------
6849 scriptdir=`eval echo ${sysconfdir}`
6851 # Check whether --with-scriptdir or --without-scriptdir was given.
6852 if test "${with_scriptdir+set}" = set; then
6853 withval="$with_scriptdir"
6855 if test "x$withval" != "xno" ; then
6865 # ------------------------------------------
6866 # Where to send dump email
6867 # ------------------------------------------
6868 dump_email=root@localhost
6870 # Check whether --with-dump-email or --without-dump-email was given.
6871 if test "${with_dump_email+set}" = set; then
6872 withval="$with_dump_email"
6874 if test "x$withval" != "xno" ; then
6883 # ------------------------------------------
6884 # Where to send job email
6885 # ------------------------------------------
6886 job_email=root@localhost
6888 # Check whether --with-job-email or --without-job-email was given.
6889 if test "${with_job_email+set}" = set; then
6890 withval="$with_job_email"
6892 if test "x$withval" != "xno" ; then
6901 # ------------------------------------------
6902 # Where to find smtp host
6903 # ------------------------------------------
6906 # Check whether --with-smtp_host or --without-smtp_host was given.
6907 if test "${with_smtp_host+set}" = set; then
6908 withval="$with_smtp_host"
6910 if test "x$withval" != "xno" ; then
6920 # ------------------------------------
6921 # Where to place pid files
6922 # ------------------------------------
6925 # Check whether --with-pid-dir or --without-pid-dir was given.
6926 if test "${with_pid_dir+set}" = set; then
6927 withval="$with_pid_dir"
6929 if test "x$withval" != "xno" ; then
6936 cat >>confdefs.h <<_ACEOF
6937 #define _PATH_BACULA_PIDDIR "$piddir"
6943 # ------------------------------------
6944 # Where to place subsys "lock file"
6945 # ------------------------------------
6946 subsysdir=/var/run/subsys
6948 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6949 if test "${with_subsys_dir+set}" = set; then
6950 withval="$with_subsys_dir"
6952 if test "x$withval" != "xno" ; then
6963 # ------------------------------------
6964 # Where to start assigning ports
6965 # ------------------------------------
6968 # Check whether --with-baseport or --without-baseport was given.
6969 if test "${with_baseport+set}" = set; then
6970 withval="$with_baseport"
6972 if test "x$withval" != "xno" ; then
6980 dir_port=`expr $baseport`
6981 fd_port=`expr $baseport + 1`
6982 sd_port=`expr $fd_port + 1`
6989 # ------------------------------------------
6990 # Generate passwords
6991 # ------------------------------------------
6994 # Check whether --with-dir-password or --without-dir-password was given.
6995 if test "${with_dir_password+set}" = set; then
6996 withval="$with_dir_password"
6998 if test "x$withval" != "xno" ; then
6999 dir_password=$withval
7005 if test "x$dir_password" = "x" ; then
7006 if test "x$OPENSSL" = "xnone" ; then
7007 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7008 key=`autoconf/randpass 33`
7010 key=`openssl rand -base64 33`
7017 # Check whether --with-fd-password or --without-fd-password was given.
7018 if test "${with_fd_password+set}" = set; then
7019 withval="$with_fd_password"
7021 if test "x$withval" != "xno" ; then
7022 fd_password=$withval
7028 if test "x$fd_password" = "x" ; then
7029 if test "x$OPENSSL" = "xnone" ; then
7030 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7031 key=`autoconf/randpass 37`
7033 key=`openssl rand -base64 33`
7040 # Check whether --with-sd-password or --without-sd-password was given.
7041 if test "${with_sd_password+set}" = set; then
7042 withval="$with_sd_password"
7044 if test "x$withval" != "xno" ; then
7045 sd_password=$withval
7051 if test "x$sd_password" = "x" ; then
7052 if test "x$OPENSSL" = "xnone" ; then
7053 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7054 key=`autoconf/randpass 41`
7056 key=`openssl rand -base64 33`
7068 # Handle users and groups for each daemon
7072 # Check whether --with-dir_user or --without-dir_user was given.
7073 if test "${with_dir_user+set}" = set; then
7074 withval="$with_dir_user"
7076 if test "x$withval" != "x" ; then
7085 # Check whether --with-dir_group or --without-dir_group was given.
7086 if test "${with_dir_group+set}" = set; then
7087 withval="$with_dir_group"
7089 if test "x$withval" != "x" ; then
7098 # Check whether --with-sd_user or --without-sd_user was given.
7099 if test "${with_sd_user+set}" = set; then
7100 withval="$with_sd_user"
7102 if test "x$withval" != "x" ; then
7111 # Check whether --with-sd_group or --without-sd_group was given.
7112 if test "${with_sd_group+set}" = set; then
7113 withval="$with_sd_group"
7115 if test "x$withval" != "x" ; then
7124 # Check whether --with-fd_user or --without-fd_user was given.
7125 if test "${with_fd_user+set}" = set; then
7126 withval="$with_fd_user"
7128 if test "x$withval" != "x" ; then
7137 # Check whether --with-fd_group or --without-fd_group was given.
7138 if test "${with_fd_group+set}" = set; then
7139 withval="$with_fd_group"
7141 if test "x$withval" != "x" ; then
7158 # ------------------------------------------------
7159 # Bacula check for various SQL database engines
7160 # ------------------------------------------------
7163 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7164 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7166 # Check whether --with-postgresql or --without-postgresql was given.
7167 if test "${with_postgresql+set}" = set; then
7168 withval="$with_postgresql"
7170 if test "$withval" != "no"; then
7171 if test "$db_found" = "yes"; then
7172 echo "$as_me:$LINENO: result: error" >&5
7173 echo "${ECHO_T}error" >&6
7174 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7175 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7176 { (exit 1); exit 1; }; };
7178 if test "$withval" = "yes"; then
7179 if test -f /usr/local/include/libpq-fe.h; then
7180 POSTGRESQL_INCDIR=/usr/local/include
7181 POSTGRESQL_LIBDIR=/usr/local/lib
7182 POSTGRESQL_BINDIR=/usr/local/bin
7183 elif test -f /usr/include/libpq-fe.h; then
7184 POSTGRESQL_INCDIR=/usr/include
7185 POSTGRESQL_LIBDIR=/usr/lib
7186 POSTGRESQL_BINDIR=/usr/bin
7187 elif test -f /usr/include/pgsql/libpq-fe.h; then
7188 POSTGRESQL_INCDIR=/usr/include/pgsql
7189 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7190 POSTGRESQL_BINDIR=/usr/bin
7191 elif test -f /usr/include/postgresql/libpq-fe.h; then
7192 POSTGRESQL_INCDIR=/usr/include/postgresql
7193 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7194 POSTGRESQL_BINDIR=/usr/bin
7196 echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7198 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7199 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7200 { (exit 1); exit 1; }; }
7202 elif test -f $withval/libpq-fe.h; then
7203 POSTGRESQL_INCDIR=$withval
7204 POSTGRESQL_LIBDIR=$withval
7205 POSTGRESQL_BINDIR=$withval
7207 echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6
7209 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7210 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7211 { (exit 1); exit 1; }; }
7213 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7214 echo "$as_me:$LINENO: checking for crypt" >&5
7215 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7216 if test "${ac_cv_func_crypt+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7220 #line $LINENO "configure"
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 /* System header to define __stub macros and hopefully few prototypes,
7227 which can conflict with char crypt (); below.
7228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7229 <limits.h> exists even on freestanding compilers. */
7231 # include <limits.h>
7233 # include <assert.h>
7235 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined (__stub_crypt) || defined (__stub___crypt)
7249 char (*f) () = crypt;
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_cv_func_crypt=yes
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7285 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7286 if test $ac_cv_func_crypt = yes; then
7289 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7290 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7291 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_check_lib_save_LIBS=$LIBS
7295 LIBS="-lcrypt $LIBS"
7296 cat >conftest.$ac_ext <<_ACEOF
7297 #line $LINENO "configure"
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7304 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7321 (eval $ac_link) 2>&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -s conftest$ac_exeext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_cv_lib_crypt_crypt=yes
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 ac_cv_lib_crypt_crypt=no
7338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7341 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7342 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7343 if test $ac_cv_lib_crypt_crypt = yes; then
7344 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7349 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7350 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7351 SQL_BINDIR=$POSTGRESQL_BINDIR
7352 cat >>confdefs.h <<\_ACEOF
7353 #define HAVE_POSTGRESQL 1
7356 echo "$as_me:$LINENO: result: yes" >&5
7357 echo "${ECHO_T}yes" >&6
7359 support_postgresql=yes
7363 echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7369 echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6
7381 echo "$as_me:$LINENO: checking for MySQL support" >&5
7382 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7384 # Check whether --with-mysql or --without-mysql was given.
7385 if test "${with_mysql+set}" = set; then
7386 withval="$with_mysql"
7388 if test "$withval" != "no"; then
7389 if test "$withval" = "yes"; then
7390 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7391 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7392 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7393 MYSQL_BINDIR=/usr/local/mysql/bin
7394 elif test -f /usr/include/mysql/mysql.h; then
7395 MYSQL_INCDIR=/usr/include/mysql
7396 MYSQL_LIBDIR=/usr/lib/mysql
7397 MYSQL_BINDIR=/usr/bin
7398 elif test -f /usr/include/mysql.h; then
7399 MYSQL_INCDIR=/usr/include
7400 MYSQL_LIBDIR=/usr/lib
7401 MYSQL_BINDIR=/usr/bin
7402 elif test -f /usr/local/include/mysql/mysql.h; then
7403 MYSQL_INCDIR=/usr/local/include/mysql
7404 MYSQL_LIBDIR=/usr/local/lib/mysql
7405 MYSQL_BINDIR=/usr/local/bin
7406 elif test -f /usr/local/include/mysql.h; then
7407 MYSQL_INCDIR=/usr/local/include
7408 MYSQL_LIBDIR=/usr/local/lib
7409 MYSQL_BINDIR=/usr/local/bin
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7414 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7415 { (exit 1); exit 1; }; }
7418 if test -f $withval/include/mysql/mysql.h; then
7419 MYSQL_INCDIR=$withval/include/mysql
7420 MYSQL_LIBDIR=$withval/lib/mysql
7421 MYSQL_BINDIR=$withval/bin
7422 elif test -f $withval/include/mysql.h; then
7423 MYSQL_INCDIR=$withval/include
7424 MYSQL_LIBDIR=$withval/lib
7425 MYSQL_BINDIR=$withval/bin
7427 echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6
7429 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7430 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7431 { (exit 1); exit 1; }; }
7434 SQL_INCLUDE=-I$MYSQL_INCDIR
7435 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7436 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7437 cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_THREAD_SAFE_MYSQL 1
7442 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7444 SQL_BINDIR=$MYSQL_BINDIR
7446 cat >>confdefs.h <<\_ACEOF
7447 #define HAVE_MYSQL 1
7450 echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7470 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7471 if test "${with_embedded_mysql+set}" = set; then
7472 withval="$with_embedded_mysql"
7474 if test "$withval" != "no"; then
7475 if test "$withval" = "yes"; then
7476 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7477 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7478 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7479 MYSQL_BINDIR=/usr/local/mysql/bin
7480 elif test -f /usr/include/mysql/mysql.h; then
7481 MYSQL_INCDIR=/usr/include/mysql
7482 MYSQL_LIBDIR=/usr/lib/mysql
7483 MYSQL_BINDIR=/usr/bin
7484 elif test -f /usr/include/mysql.h; then
7485 MYSQL_INCDIR=/usr/include
7486 MYSQL_LIBDIR=/usr/lib
7487 MYSQL_BINDIR=/usr/bin
7488 elif test -f /usr/local/include/mysql/mysql.h; then
7489 MYSQL_INCDIR=/usr/local/include/mysql
7490 MYSQL_LIBDIR=/usr/local/lib/mysql
7491 MYSQL_BINDIR=/usr/local/bin
7492 elif test -f /usr/local/include/mysql.h; then
7493 MYSQL_INCDIR=/usr/local/include
7494 MYSQL_LIBDIR=/usr/local/lib
7495 MYSQL_BINDIR=/usr/local/bin
7497 echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7500 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7501 { (exit 1); exit 1; }; }
7504 if test -f $withval/include/mysql/mysql.h; then
7505 MYSQL_INCDIR=$withval/include/mysql
7506 MYSQL_LIBDIR=$withval/lib/mysql
7507 MYSQL_BINDIR=$withval/bin
7508 elif test -f $withval/include/mysql.h; then
7509 MYSQL_INCDIR=$withval/include
7510 MYSQL_LIBDIR=$withval/lib
7511 MYSQL_BINDIR=$withval/bin
7513 echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7516 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7517 { (exit 1); exit 1; }; }
7520 SQL_INCLUDE=-I$MYSQL_INCDIR
7521 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7522 SQL_BINDIR=$MYSQL_BINDIR
7524 cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_MYSQL 1
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_EMBEDDED_MYSQL 1
7532 echo "$as_me:$LINENO: result: yes" >&5
7533 echo "${ECHO_T}yes" >&6
7540 echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7560 echo "$as_me:$LINENO: checking for SQLite support" >&5
7561 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7563 # Check whether --with-sqlite or --without-sqlite was given.
7564 if test "${with_sqlite+set}" = set; then
7565 withval="$with_sqlite"
7567 if test "$withval" != "no"; then
7568 if test "$withval" = "yes"; then
7569 if test -f /usr/local/include/sqlite.h; then
7570 SQLITE_INCDIR=/usr/local/include
7571 SQLITE_LIBDIR=/usr/local/lib
7572 SQLITE_BINDIR=/usr/local/bin
7573 elif test -f /usr/include/sqlite.h; then
7574 SQLITE_INCDIR=/usr/include
7575 SQLITE_LIBDIR=/usr/lib
7576 SQLITE_BINDIR=/usr/bin
7578 echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7580 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7581 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7582 { (exit 1); exit 1; }; }
7585 if test -f $withval/sqlite.h; then
7586 SQLITE_INCDIR=$withval
7587 SQLITE_LIBDIR=$withval
7588 SQLITE_BINDIR=$withval
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7592 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7593 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7594 { (exit 1); exit 1; }; }
7597 SQL_INCLUDE=-I$SQLITE_INCDIR
7598 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7599 SQL_BINDIR=$SQLITE_BINDIR
7601 cat >>confdefs.h <<\_ACEOF
7602 #define HAVE_SQLITE 1
7605 echo "$as_me:$LINENO: result: yes" >&5
7606 echo "${ECHO_T}yes" >&6
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7619 echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7632 cat >>confdefs.h <<\_ACEOF
7633 #define PROTOTYPES 1
7637 if test -z "$CFLAGS"; then
7638 if test -z "$CCOPTS"; then
7647 largefile_support="no"
7649 # Check whether --enable-largefile or --disable-largefile was given.
7650 if test "${enable_largefile+set}" = set; then
7651 enableval="$enable_largefile"
7654 if test "$enable_largefile" != no; then
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7658 echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660 if test "${ac_cv_prog_GETCONF+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 if test -n "$GETCONF"; then
7664 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 GETCONF=$ac_cv_prog_GETCONF
7683 if test -n "$GETCONF"; then
7684 echo "$as_me:$LINENO: result: $GETCONF" >&5
7685 echo "${ECHO_T}$GETCONF" >&6
7687 echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7692 if test -z "$ac_cv_prog_GETCONF"; then
7693 ac_ct_GETCONF=$GETCONF
7694 # Extract the first word of "getconf", so it can be a program name with args.
7695 set dummy getconf; ac_word=$2
7696 echo "$as_me:$LINENO: checking for $ac_word" >&5
7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7698 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 if test -n "$ac_ct_GETCONF"; then
7702 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_ac_ct_GETCONF="getconf"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7721 if test -n "$ac_ct_GETCONF"; then
7722 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7723 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7729 GETCONF=$ac_ct_GETCONF
7731 GETCONF="$ac_cv_prog_GETCONF"
7734 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7735 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7736 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7740 ac_cv_sys_largefile_CFLAGS=no
7742 # IRIX 6.2 and later require cc -n32.
7743 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7744 if test "$GCC" != yes; then
7745 ac_cv_sys_largefile_CFLAGS=-n32
7748 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_sys_largefile_CFLAGS=no
7784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7790 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7791 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7792 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7793 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7797 ac_cv_sys_largefile_LDFLAGS=no
7801 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7802 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7803 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7804 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7805 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7809 ac_cv_sys_largefile_LIBS=no
7813 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7814 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7816 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7819 -D_FILE_OFFSET_BITS=*) ;;
7820 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7821 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7827 '') CPPFLAGS="$ac_flag" ;;
7828 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7836 '') CFLAGS="$ac_flag" ;;
7837 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7842 case "$ac_cv_sys_largefile_LDFLAGS" in
7846 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7847 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7850 case "$ac_cv_sys_largefile_LIBS" in
7854 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7855 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7858 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7859 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7860 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_cv_sys_file_offset_bits=no
7865 # HP-UX 10.20 and later
7866 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7867 ac_cv_sys_file_offset_bits=64 ;;
7869 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7871 -D_FILE_OFFSET_BITS)
7872 ac_cv_sys_file_offset_bits=1 ;;
7873 -D_FILE_OFFSET_BITS=*)
7874 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7879 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7880 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7881 if test "$ac_cv_sys_file_offset_bits" != no; then
7883 cat >>confdefs.h <<_ACEOF
7884 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7888 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7889 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7890 if test "${ac_cv_sys_largefile_source+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 ac_cv_sys_largefile_source=no
7895 # HP-UX 10.20 and later
7896 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7897 ac_cv_sys_largefile_source=1 ;;
7899 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7901 -D_LARGEFILE_SOURCE)
7902 ac_cv_sys_largefile_source=1 ;;
7903 -D_LARGEFILE_SOURCE=*)
7904 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7910 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7911 if test "$ac_cv_sys_largefile_source" != no; then
7913 cat >>confdefs.h <<_ACEOF
7914 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7918 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7919 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7920 if test "${ac_cv_sys_large_files+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 ac_cv_sys_large_files=no
7926 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7927 ac_cv_sys_large_files=1 ;;
7929 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7932 ac_cv_sys_large_files=1 ;;
7934 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7939 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7940 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7941 if test "$ac_cv_sys_large_files" != no; then
7943 cat >>confdefs.h <<_ACEOF
7944 #define _LARGE_FILES $ac_cv_sys_large_files
7952 echo "$as_me:$LINENO: checking for X" >&5
7953 echo $ECHO_N "checking for X... $ECHO_C" >&6
7956 # Check whether --with-x or --without-x was given.
7957 if test "${with_x+set}" = set; then
7961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7962 if test "x$with_x" = xno; then
7963 # The user explicitly disabled X.
7966 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7967 # Both variables are already set.
7970 if test "${ac_cv_have_x+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 # One or both of the vars are not set, and there is no cached value.
7974 ac_x_includes=no ac_x_libraries=no
7976 if mkdir conftest.dir; then
7978 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7979 cat >Imakefile <<'_ACEOF'
7981 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7983 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7985 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7987 for ac_extension in a so sl; do
7988 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7989 test -f $ac_im_libdir/libX11.$ac_extension; then
7990 ac_im_usrlibdir=$ac_im_libdir; break
7993 # Screen out bogus values from the imake configuration. They are
7994 # bogus both because they are the default anyway, and because
7995 # using them would break gcc on systems where it needs fixed includes.
7996 case $ac_im_incroot in
7998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8000 case $ac_im_usrlibdir in
8002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8009 # Standard set of common directories for X headers.
8010 # Check X11 before X11Rn because it is often a symlink to the current release.
8022 /usr/local/X11/include
8023 /usr/local/X11R6/include
8024 /usr/local/X11R5/include
8025 /usr/local/X11R4/include
8027 /usr/local/include/X11
8028 /usr/local/include/X11R6
8029 /usr/local/include/X11R5
8030 /usr/local/include/X11R4
8034 /usr/XFree86/include/X11
8038 /usr/unsupported/include
8040 /usr/local/x11r5/include
8041 /usr/lpp/Xamples/include
8043 /usr/openwin/include
8044 /usr/openwin/share/include'
8046 if test "$ac_x_includes" = no; then
8047 # Guess where to find include files, by looking for Intrinsic.h.
8048 # First, try using that file with no special directory specified.
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 #include <X11/Intrinsic.h>
8058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } >/dev/null; then
8066 if test -s conftest.err; then
8067 ac_cpp_err=$ac_c_preproc_warn_flag
8074 if test -z "$ac_cpp_err"; then
8075 # We can compile using X headers with no special include directory.
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 for ac_dir in $ac_x_header_dirs; do
8082 if test -r "$ac_dir/X11/Intrinsic.h"; then
8083 ac_x_includes=$ac_dir
8088 rm -f conftest.err conftest.$ac_ext
8089 fi # $ac_x_includes = no
8091 if test "$ac_x_libraries" = no; then
8092 # Check for the libraries.
8093 # See if we find them without any special options.
8094 # Don't add to $LIBS permanently.
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line $LINENO "configure"
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <X11/Intrinsic.h>
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -s conftest$ac_exeext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8126 # We can link X programs with no special library path.
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8133 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8135 # Don't even attempt the hair of trying to link an X program!
8136 for ac_extension in a so sl; do
8137 if test -r $ac_dir/libXt.$ac_extension; then
8138 ac_x_libraries=$ac_dir
8144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145 fi # $ac_x_libraries = no
8147 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8148 # Didn't find X anywhere. Cache the known absence of X.
8149 ac_cv_have_x="have_x=no"
8151 # Record where we found X for the cache.
8152 ac_cv_have_x="have_x=yes \
8153 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8158 eval "$ac_cv_have_x"
8161 if test "$have_x" != yes; then
8162 echo "$as_me:$LINENO: result: $have_x" >&5
8163 echo "${ECHO_T}$have_x" >&6
8166 # If each of the values was on the command line, it overrides each guess.
8167 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8168 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8169 # Update the cache value to reflect the command line values.
8170 ac_cv_have_x="have_x=yes \
8171 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8172 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8173 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8176 if test "$no_x" = yes; then
8177 # Not all programs may use this symbol, but it does not hurt to define it.
8179 cat >>confdefs.h <<\_ACEOF
8180 #define X_DISPLAY_MISSING 1
8183 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8185 if test -n "$x_includes"; then
8186 X_CFLAGS="$X_CFLAGS -I$x_includes"
8189 # It would also be nice to do this for all -L options, not just this one.
8190 if test -n "$x_libraries"; then
8191 X_LIBS="$X_LIBS -L$x_libraries"
8192 # For Solaris; some versions of Sun CC require a space after -R and
8193 # others require no space. Words are not sufficient . . . .
8194 case `(uname -sr) 2>/dev/null` in
8196 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8197 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8198 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8199 cat >conftest.$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -s conftest$ac_exeext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8235 if test $ac_R_nospace = yes; then
8236 echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6
8238 X_LIBS="$X_LIBS -R$x_libraries"
8240 LIBS="$ac_xsave_LIBS -R $x_libraries"
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259 (eval $ac_link) 2>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -s conftest$ac_exeext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8277 if test $ac_R_space = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6
8280 X_LIBS="$X_LIBS -R $x_libraries"
8282 echo "$as_me:$LINENO: result: neither works" >&5
8283 echo "${ECHO_T}neither works" >&6
8290 # Check for system-dependent libraries X programs must link with.
8291 # Do this before checking for the system-independent R6 libraries
8292 # (-lICE), since we may need -lsocket or whatever for X linking.
8294 if test "$ISC" = yes; then
8295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8297 # Martyn Johnson says this is needed for Ultrix, if the X
8298 # libraries were built with DECnet support. And Karl Berry says
8299 # the Alpha needs dnet_stub (dnet does not exist).
8300 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8301 cat >conftest.$ac_ext <<_ACEOF
8302 #line $LINENO "configure"
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8309 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8315 char XOpenDisplay ();
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8342 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8343 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 ac_check_lib_save_LIBS=$LIBS
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8356 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -s conftest$ac_exeext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_lib_dnet_dnet_ntoa=yes
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_cv_lib_dnet_dnet_ntoa=no
8390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8394 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8395 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8396 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8399 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8400 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8401 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8402 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 ac_check_lib_save_LIBS=$LIBS
8406 LIBS="-ldnet_stub $LIBS"
8407 cat >conftest.$ac_ext <<_ACEOF
8408 #line $LINENO "configure"
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8415 /* Override any gcc2 internal prototype to avoid an error. */
8419 /* We use char because int might match the return type of a gcc2
8420 builtin and then its argument prototype would still apply. */
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_cv_lib_dnet_stub_dnet_ntoa=no
8449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8452 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8453 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8454 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8455 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461 LIBS="$ac_xsave_LIBS"
8463 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8464 # to get the SysV transport functions.
8465 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8467 # The nsl library prevents programs from opening the X display
8468 # on Irix 5.2, according to T.E. Dickey.
8469 # The functions gethostbyname, getservbyname, and inet_addr are
8470 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8471 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8472 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8473 if test "${ac_cv_func_gethostbyname+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 cat >conftest.$ac_ext <<_ACEOF
8477 #line $LINENO "configure"
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char gethostbyname (); below.
8485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8486 <limits.h> exists even on freestanding compilers. */
8488 # include <limits.h>
8490 # include <assert.h>
8492 /* Override any gcc2 internal prototype to avoid an error. */
8497 /* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
8499 char gethostbyname ();
8500 /* The GNU C library defines this for functions which it implements
8501 to always fail with ENOSYS. Some functions are actually named
8502 something starting with __ and the normal name is an alias. */
8503 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8506 char (*f) () = gethostbyname;
8515 return f != gethostbyname;
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_func_gethostbyname=yes
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 ac_cv_func_gethostbyname=no
8539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8541 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8542 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8544 if test $ac_cv_func_gethostbyname = no; then
8545 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8546 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8547 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_check_lib_save_LIBS=$LIBS
8552 cat >conftest.$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8560 /* Override any gcc2 internal prototype to avoid an error. */
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566 char gethostbyname ();
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 ac_cv_lib_nsl_gethostbyname=yes
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8592 ac_cv_lib_nsl_gethostbyname=no
8594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8595 LIBS=$ac_check_lib_save_LIBS
8597 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8598 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8599 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8603 if test $ac_cv_lib_nsl_gethostbyname = no; then
8604 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8605 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8606 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 ac_check_lib_save_LIBS=$LIBS
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8625 char gethostbyname ();
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_lib_bsd_gethostbyname=yes
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 ac_cv_lib_bsd_gethostbyname=no
8653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8656 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8657 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8658 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8659 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8665 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8666 # socket/setsockopt and other routines are undefined under SCO ODT
8667 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8668 # on later versions), says Simon Leinen: it contains gethostby*
8669 # variants that don't use the name server (or something). -lsocket
8670 # must be given before -lnsl if both are needed. We assume that
8671 # if connect needs -lnsl, so does gethostbyname.
8672 echo "$as_me:$LINENO: checking for connect" >&5
8673 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8674 if test "${ac_cv_func_connect+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8678 #line $LINENO "configure"
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 /* System header to define __stub macros and hopefully few prototypes,
8685 which can conflict with char connect (); below.
8686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8687 <limits.h> exists even on freestanding compilers. */
8689 # include <limits.h>
8691 # include <assert.h>
8693 /* Override any gcc2 internal prototype to avoid an error. */
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8701 /* The GNU C library defines this for functions which it implements
8702 to always fail with ENOSYS. Some functions are actually named
8703 something starting with __ and the normal name is an alias. */
8704 #if defined (__stub_connect) || defined (__stub___connect)
8707 char (*f) () = connect;
8716 return f != connect;
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_func_connect=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_func_connect=no
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8743 echo "${ECHO_T}$ac_cv_func_connect" >&6
8745 if test $ac_cv_func_connect = no; then
8746 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8747 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8748 if test "${ac_cv_lib_socket_connect+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 ac_check_lib_save_LIBS=$LIBS
8752 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8761 /* Override any gcc2 internal prototype to avoid an error. */
8765 /* We use char because int might match the return type of a gcc2
8766 builtin and then its argument prototype would still apply. */
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778 (eval $ac_link) 2>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_lib_socket_connect=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_cv_lib_socket_connect=no
8795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8798 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8799 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8800 if test $ac_cv_lib_socket_connect = yes; then
8801 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8806 # Guillermo Gomez says -lposix is necessary on A/UX.
8807 echo "$as_me:$LINENO: checking for remove" >&5
8808 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8809 if test "${ac_cv_func_remove+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 cat >conftest.$ac_ext <<_ACEOF
8813 #line $LINENO "configure"
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 /* System header to define __stub macros and hopefully few prototypes,
8820 which can conflict with char remove (); below.
8821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822 <limits.h> exists even on freestanding compilers. */
8824 # include <limits.h>
8826 # include <assert.h>
8828 /* Override any gcc2 internal prototype to avoid an error. */
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8836 /* The GNU C library defines this for functions which it implements
8837 to always fail with ENOSYS. Some functions are actually named
8838 something starting with __ and the normal name is an alias. */
8839 #if defined (__stub_remove) || defined (__stub___remove)
8842 char (*f) () = remove;
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -s conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_func_remove=yes
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 ac_cv_func_remove=no
8875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8878 echo "${ECHO_T}$ac_cv_func_remove" >&6
8880 if test $ac_cv_func_remove = no; then
8881 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8882 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8883 if test "${ac_cv_lib_posix_remove+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_check_lib_save_LIBS=$LIBS
8887 LIBS="-lposix $LIBS"
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_cv_lib_posix_remove=yes
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_cv_lib_posix_remove=no
8930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8934 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8935 if test $ac_cv_lib_posix_remove = yes; then
8936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8941 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8942 echo "$as_me:$LINENO: checking for shmat" >&5
8943 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8944 if test "${ac_cv_func_shmat+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char shmat (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8959 # include <limits.h>
8961 # include <assert.h>
8963 /* Override any gcc2 internal prototype to avoid an error. */
8968 /* We use char because int might match the return type of a gcc2
8969 builtin and then its argument prototype would still apply. */
8971 /* The GNU C library defines this for functions which it implements
8972 to always fail with ENOSYS. Some functions are actually named
8973 something starting with __ and the normal name is an alias. */
8974 #if defined (__stub_shmat) || defined (__stub___shmat)
8977 char (*f) () = shmat;
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_func_shmat=yes
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9013 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9015 if test $ac_cv_func_shmat = no; then
9016 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9017 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9018 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 ac_check_lib_save_LIBS=$LIBS
9023 cat >conftest.$ac_ext <<_ACEOF
9024 #line $LINENO "configure"
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9031 /* Override any gcc2 internal prototype to avoid an error. */
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_lib_ipc_shmat=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_cv_lib_ipc_shmat=no
9065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9068 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9069 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9070 if test $ac_cv_lib_ipc_shmat = yes; then
9071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9077 # Check for libraries that X11R6 Xt/Xaw programs need.
9078 ac_save_LDFLAGS=$LDFLAGS
9079 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9080 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9081 # check for ICE first), but we must link in the order -lSM -lICE or
9082 # we get undefined symbols. So assume we have SM if we have ICE.
9083 # These have to be linked with before -lX11, unlike the other
9084 # libraries we check for below, so use a different variable.
9085 # John Interrante, Karl Berry
9086 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9087 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9088 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line $LINENO "configure"
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9101 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9107 char IceConnectionNumber ();
9111 IceConnectionNumber ();
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_lib_ICE_IceConnectionNumber=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_cv_lib_ICE_IceConnectionNumber=no
9135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_lib_save_LIBS
9138 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9139 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9140 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9141 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9144 LDFLAGS=$ac_save_LDFLAGS
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 # Is the header compilable?
9207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9217 #include <$ac_header>
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_header_compiler=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_compiler=no
9238 rm -f conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9240 echo "${ECHO_T}$ac_header_compiler" >&6
9242 # Is the header present?
9243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 #include <$ac_header>
9254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257 grep -v '^ *+' conftest.er1 >conftest.err
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } >/dev/null; then
9262 if test -s conftest.err; then
9263 ac_cpp_err=$ac_c_preproc_warn_flag
9270 if test -z "$ac_cpp_err"; then
9271 ac_header_preproc=yes
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc in
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291 ## ------------------------------------ ##
9292 ## Report this to bug-autoconf@gnu.org. ##
9293 ## ------------------------------------ ##
9296 sed "s/^/$as_me: WARNING: /" >&2
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 ## ------------------------------------ ##
9308 ## Report this to bug-autoconf@gnu.org. ##
9309 ## ------------------------------------ ##
9312 sed "s/^/$as_me: WARNING: /" >&2
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 eval "$as_ac_Header=$ac_header_preproc"
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327 cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9337 if test "${ac_cv_header_stdc+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362 (eval $ac_compile) 2>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -s conftest.$ac_objext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_cv_header_stdc=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_cv_header_stdc=no
9379 rm -f conftest.$ac_objext conftest.$ac_ext
9381 if test $ac_cv_header_stdc = yes; then
9382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394 $EGREP "memchr" >/dev/null 2>&1; then
9397 ac_cv_header_stdc=no
9403 if test $ac_cv_header_stdc = yes; then
9404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416 $EGREP "free" >/dev/null 2>&1; then
9419 ac_cv_header_stdc=no
9425 if test $ac_cv_header_stdc = yes; then
9426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9427 if test "$cross_compiling" = yes; then
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9438 #if ((' ' & 0x0FF) == 0x020)
9439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9442 # define ISLOWER(c) \
9443 (('a' <= (c) && (c) <= 'i') \
9444 || ('j' <= (c) && (c) <= 'r') \
9445 || ('s' <= (c) && (c) <= 'z'))
9446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9454 for (i = 0; i < 256; i++)
9455 if (XOR (islower (i), ISLOWER (i))
9456 || toupper (i) != TOUPPER (i))
9461 rm -f conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463 (eval $ac_link) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9474 echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_header_stdc=no
9481 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9487 if test $ac_cv_header_stdc = yes; then
9489 cat >>confdefs.h <<\_ACEOF
9490 #define STDC_HEADERS 1
9495 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9496 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9497 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9501 #line $LINENO "configure"
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <sys/types.h>
9511 return makedev(0, 0);
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518 (eval $ac_link) 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_header_sys_types_h_makedev=yes
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9533 ac_cv_header_sys_types_h_makedev=no
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9539 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9541 if test $ac_cv_header_sys_types_h_makedev = no; then
9542 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9543 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9544 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9545 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9549 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9551 # Is the header compilable?
9552 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9553 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 $ac_includes_default
9562 #include <sys/mkdev.h>
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566 (eval $ac_compile) 2>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -s conftest.$ac_objext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_header_compiler=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_header_compiler=no
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9585 echo "${ECHO_T}$ac_header_compiler" >&6
9587 # Is the header present?
9588 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9589 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line $LINENO "configure"
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 #include <sys/mkdev.h>
9599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } >/dev/null; then
9607 if test -s conftest.err; then
9608 ac_cpp_err=$ac_c_preproc_warn_flag
9615 if test -z "$ac_cpp_err"; then
9616 ac_header_preproc=yes
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9621 ac_header_preproc=no
9623 rm -f conftest.err conftest.$ac_ext
9624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9625 echo "${ECHO_T}$ac_header_preproc" >&6
9627 # So? What about this header?
9628 case $ac_header_compiler:$ac_header_preproc in
9630 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9631 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9636 ## ------------------------------------ ##
9637 ## Report this to bug-autoconf@gnu.org. ##
9638 ## ------------------------------------ ##
9641 sed "s/^/$as_me: WARNING: /" >&2
9644 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9649 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9652 ## ------------------------------------ ##
9653 ## Report this to bug-autoconf@gnu.org. ##
9654 ## ------------------------------------ ##
9657 sed "s/^/$as_me: WARNING: /" >&2
9660 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9661 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9662 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9667 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9671 if test $ac_cv_header_sys_mkdev_h = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define MAJOR_IN_MKDEV 1
9681 if test $ac_cv_header_sys_mkdev_h = no; then
9682 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9683 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9684 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9685 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9689 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9691 # Is the header compilable?
9692 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9693 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <sys/sysmacros.h>
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -s conftest.$ac_objext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_header_compiler=yes
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_header_compiler=no
9723 rm -f conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9725 echo "${ECHO_T}$ac_header_compiler" >&6
9727 # Is the header present?
9728 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9729 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 #include <sys/sysmacros.h>
9739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } >/dev/null; then
9747 if test -s conftest.err; then
9748 ac_cpp_err=$ac_c_preproc_warn_flag
9755 if test -z "$ac_cpp_err"; then
9756 ac_header_preproc=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_header_preproc=no
9763 rm -f conftest.err conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9765 echo "${ECHO_T}$ac_header_preproc" >&6
9767 # So? What about this header?
9768 case $ac_header_compiler:$ac_header_preproc in
9770 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9771 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9776 ## ------------------------------------ ##
9777 ## Report this to bug-autoconf@gnu.org. ##
9778 ## ------------------------------------ ##
9781 sed "s/^/$as_me: WARNING: /" >&2
9784 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9785 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9787 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9789 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9792 ## ------------------------------------ ##
9793 ## Report this to bug-autoconf@gnu.org. ##
9794 ## ------------------------------------ ##
9797 sed "s/^/$as_me: WARNING: /" >&2
9800 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9801 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9802 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9807 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9808 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9811 if test $ac_cv_header_sys_sysmacros_h = yes; then
9813 cat >>confdefs.h <<\_ACEOF
9814 #define MAJOR_IN_SYSMACROS 1
9829 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9830 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9832 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <sys/types.h>
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -s conftest.$ac_objext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 eval "$as_ac_Header=yes"
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9872 eval "$as_ac_Header=no"
9874 rm -f conftest.$ac_objext conftest.$ac_ext
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879 cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9883 ac_header_dirent=$ac_hdr; break
9887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9888 if test $ac_header_dirent = dirent.h; then
9889 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9891 if test "${ac_cv_search_opendir+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 ac_func_search_save_LIBS=$LIBS
9895 ac_cv_search_opendir=no
9896 cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9904 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_search_opendir="none required"
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9938 if test "$ac_cv_search_opendir" = no; then
9939 for ac_lib in dir; do
9940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9941 cat >conftest.$ac_ext <<_ACEOF
9942 #line $LINENO "configure"
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_search_opendir="-l$ac_lib"
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_func_search_save_LIBS
9988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9990 if test "$ac_cv_search_opendir" != no; then
9991 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9996 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9997 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9998 if test "${ac_cv_search_opendir+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 ac_func_search_save_LIBS=$LIBS
10002 ac_cv_search_opendir=no
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any gcc2 internal prototype to avoid an error. */
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_search_opendir="none required"
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10045 if test "$ac_cv_search_opendir" = no; then
10046 for ac_lib in x; do
10047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10048 cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10056 /* Override any gcc2 internal prototype to avoid an error. */
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10071 rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_search_opendir="-l$ac_lib"
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_func_search_save_LIBS
10095 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10096 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10097 if test "$ac_cv_search_opendir" != no; then
10098 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10104 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10105 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10106 if test "${ac_cv_header_stat_broken+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <sys/types.h>
10117 #include <sys/stat.h>
10119 #if defined(S_ISBLK) && defined(S_IFDIR)
10120 # if S_ISBLK (S_IFDIR)
10125 #if defined(S_ISBLK) && defined(S_IFCHR)
10126 # if S_ISBLK (S_IFCHR)
10131 #if defined(S_ISLNK) && defined(S_IFREG)
10132 # if S_ISLNK (S_IFREG)
10137 #if defined(S_ISSOCK) && defined(S_IFREG)
10138 # if S_ISSOCK (S_IFREG)
10144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10145 $EGREP "You lose" >/dev/null 2>&1; then
10146 ac_cv_header_stat_broken=yes
10148 ac_cv_header_stat_broken=no
10153 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10154 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10155 if test $ac_cv_header_stat_broken = yes; then
10157 cat >>confdefs.h <<\_ACEOF
10158 #define STAT_MACROS_BROKEN 1
10163 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10169 #line $LINENO "configure"
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <sys/types.h>
10176 #include <sys/wait.h>
10177 #ifndef WEXITSTATUS
10178 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196 (eval $ac_compile) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -s conftest.$ac_objext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_header_sys_wait_h=yes
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_cv_header_sys_wait_h=no
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10215 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10216 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10217 if test $ac_cv_header_sys_wait_h = yes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_SYS_WAIT_H 1
10225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10227 if test "${ac_cv_header_time+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10231 #line $LINENO "configure"
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #include <sys/types.h>
10238 #include <sys/time.h>
10244 if ((struct tm *) 0)
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_header_time=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_header_time=no
10269 rm -f conftest.$ac_objext conftest.$ac_ext
10271 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10272 echo "${ECHO_T}$ac_cv_header_time" >&6
10273 if test $ac_cv_header_time = yes; then
10275 cat >>confdefs.h <<\_ACEOF
10276 #define TIME_WITH_SYS_TIME 1
10282 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10283 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10284 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 $ac_includes_default
10298 static struct stat ac_aggr;
10299 if (ac_aggr.st_blksize)
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_member_struct_stat_st_blksize=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10333 static struct stat ac_aggr;
10334 if (sizeof ac_aggr.st_blksize)
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_member_struct_stat_st_blksize=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_cv_member_struct_stat_st_blksize=no
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10365 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_ST_BLKSIZE 1
10379 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10380 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10381 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 $ac_includes_default
10395 static struct stat ac_aggr;
10396 if (ac_aggr.st_blocks)
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_member_struct_stat_st_blocks=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10430 static struct stat ac_aggr;
10431 if (sizeof ac_aggr.st_blocks)
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_member_struct_stat_st_blocks=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_member_struct_stat_st_blocks=no
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10462 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10464 cat >>confdefs.h <<_ACEOF
10465 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10469 cat >>confdefs.h <<\_ACEOF
10470 #define HAVE_ST_BLOCKS 1
10474 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10480 if test "${ac_cv_struct_tm+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <sys/types.h>
10496 struct tm *tp; tp->tm_sec;
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_struct_tm=time.h
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_cv_struct_tm=sys/time.h
10520 rm -f conftest.$ac_objext conftest.$ac_ext
10522 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10523 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10524 if test $ac_cv_struct_tm = sys/time.h; then
10526 cat >>confdefs.h <<\_ACEOF
10527 #define TM_IN_SYS_TIME 1
10532 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 cat >conftest.$ac_ext <<_ACEOF
10538 #line $LINENO "configure"
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #include <sys/types.h>
10545 #include <$ac_cv_struct_tm>
10551 static struct tm ac_aggr;
10552 if (ac_aggr.tm_zone)
10558 rm -f conftest.$ac_objext
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560 (eval $ac_compile) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_cv_member_struct_tm_tm_zone=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <sys/types.h>
10583 #include <$ac_cv_struct_tm>
10589 static struct tm ac_aggr;
10590 if (sizeof ac_aggr.tm_zone)
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -s conftest.$ac_objext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_member_struct_tm_tm_zone=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_cv_member_struct_tm_tm_zone=no
10615 rm -f conftest.$ac_objext conftest.$ac_ext
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10620 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10621 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define HAVE_STRUCT_TM_TM_ZONE 1
10630 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_TM_ZONE 1
10637 echo "$as_me:$LINENO: checking for tzname" >&5
10638 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10639 if test "${ac_cv_var_tzname+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 cat >conftest.$ac_ext <<_ACEOF
10643 #line $LINENO "configure"
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 #ifndef tzname /* For SGI. */
10651 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_var_tzname=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_cv_var_tzname=no
10681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10684 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10685 if test $ac_cv_var_tzname = yes; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_TZNAME 1
10695 echo "$as_me:$LINENO: checking for utime.h" >&5
10696 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10697 if test "${ba_cv_header_utime_h+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10708 #include <sys/types.h>
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ba_cv_header_utime_h=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ba_cv_header_utime_h=no
10737 rm -f conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10740 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10741 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_UTIME_H 1
10746 echo "$as_me:$LINENO: checking for socklen_t" >&5
10747 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10748 if test "${ba_cv_header_socklen_t+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10752 #line $LINENO "configure"
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 #include <sys/types.h>
10760 #include <sys/socket.h>
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771 (eval $ac_compile) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -s conftest.$ac_objext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ba_cv_header_socklen_t=yes
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 ba_cv_header_socklen_t=no
10788 rm -f conftest.$ac_objext conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10791 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10792 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_SOCKLEN_T 1
10797 echo "$as_me:$LINENO: checking for bigendian" >&5
10798 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10799 if test "${ba_cv_bigendian+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 if test "$cross_compiling" = yes; then
10805 cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10814 rm -f conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ba_cv_bigendian=yes
10827 echo "$as_me: program exited with status $ac_status" >&5
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ( exit $ac_status )
10834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10837 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10838 echo "${ECHO_T}$ba_cv_bigendian" >&6
10839 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_BIGENDIAN 1
10845 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10846 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10847 if test "${ac_cv_c_const+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10861 /* FIXME: Include the comments suggested by Paul. */
10862 #ifndef __cplusplus
10863 /* Ultrix mips cc rejects this. */
10864 typedef int charset[2];
10866 /* SunOS 4.1.1 cc rejects this. */
10867 char const *const *ccp;
10869 /* NEC SVR4.0.2 mips cc rejects this. */
10870 struct point {int x, y;};
10871 static struct point const zero = {0,0};
10872 /* AIX XL C 1.02.0.0 rejects this.
10873 It does not let you subtract one const X* pointer from another in
10874 an arm of an if-expression whose if-part is not a constant
10876 const char *g = "string";
10877 ccp = &g + (g ? g-g : 0);
10878 /* HPUX 7.0 cc rejects these. */
10881 ccp = (char const *const *) p;
10882 { /* SCO 3.2v4 cc rejects this. */
10884 char const *s = 0 ? (char *) 0 : (char const *) 0;
10888 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10889 int x[] = {25, 17};
10890 const int *foo = &x[0];
10893 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10894 typedef const int *iptr;
10898 { /* AIX XL C 1.02.0.0 rejects this saying
10899 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10900 struct s { int j; const int *ap[3]; };
10901 struct s *b; b->j = 5;
10903 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10904 const int foo = 10;
10912 rm -f conftest.$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10931 rm -f conftest.$ac_objext conftest.$ac_ext
10933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10934 echo "${ECHO_T}$ac_cv_c_const" >&6
10935 if test $ac_cv_c_const = no; then
10937 cat >>confdefs.h <<\_ACEOF
10945 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10946 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10948 # The order of these tests is important.
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <sys/statvfs.h>
10957 #include <sys/fstyp.h>
10959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
10975 if test -z "$ac_cpp_err"; then
10976 cat >>confdefs.h <<\_ACEOF
10977 #define FSTYPE_STATVFS 1
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10986 rm -f conftest.err conftest.$ac_ext
10987 if test $fstype = no; then
10988 cat >conftest.$ac_ext <<_ACEOF
10989 #line $LINENO "configure"
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <sys/statfs.h>
10996 #include <sys/fstyp.h>
10998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } >/dev/null; then
11006 if test -s conftest.err; then
11007 ac_cpp_err=$ac_c_preproc_warn_flag
11014 if test -z "$ac_cpp_err"; then
11015 cat >>confdefs.h <<\_ACEOF
11016 #define FSTYPE_USG_STATFS 1
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11025 rm -f conftest.err conftest.$ac_ext
11027 if test $fstype = no; then
11028 cat >conftest.$ac_ext <<_ACEOF
11029 #line $LINENO "configure"
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <sys/statfs.h>
11036 #include <sys/vmount.h>
11038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11041 grep -v '^ *+' conftest.er1 >conftest.err
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } >/dev/null; then
11046 if test -s conftest.err; then
11047 ac_cpp_err=$ac_c_preproc_warn_flag
11054 if test -z "$ac_cpp_err"; then
11055 cat >>confdefs.h <<\_ACEOF
11056 #define FSTYPE_AIX_STATFS 1
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11065 rm -f conftest.err conftest.$ac_ext
11067 if test $fstype = no; then
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 #include <mntent.h>
11077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11080 grep -v '^ *+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } >/dev/null; then
11085 if test -s conftest.err; then
11086 ac_cpp_err=$ac_c_preproc_warn_flag
11093 if test -z "$ac_cpp_err"; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define FSTYPE_MNTENT 1
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11104 rm -f conftest.err conftest.$ac_ext
11106 if test $fstype = no; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #include <sys/mount.h>
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118 $EGREP "f_type;" >/dev/null 2>&1; then
11119 cat >>confdefs.h <<\_ACEOF
11120 #define FSTYPE_STATFS 1
11127 if test $fstype = no; then
11128 cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <sys/mount.h>
11136 #include <sys/fs_types.h>
11138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11141 grep -v '^ *+' conftest.er1 >conftest.err
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } >/dev/null; then
11146 if test -s conftest.err; then
11147 ac_cpp_err=$ac_c_preproc_warn_flag
11154 if test -z "$ac_cpp_err"; then
11155 cat >>confdefs.h <<\_ACEOF
11156 #define FSTYPE_GETMNT 1
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11165 rm -f conftest.err conftest.$ac_ext
11167 echo "$as_me:$LINENO: result: $fstype" >&5
11168 echo "${ECHO_T}$fstype" >&6
11170 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11171 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11172 if test "${ac_cv_type_signal+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11176 #line $LINENO "configure"
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <sys/types.h>
11183 #include <signal.h>
11188 extern "C" void (*signal (int, void (*)(int)))(int);
11190 void (*signal ()) ();
11201 rm -f conftest.$ac_objext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203 (eval $ac_compile) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -s conftest.$ac_objext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_cv_type_signal=void
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_cv_type_signal=int
11220 rm -f conftest.$ac_objext conftest.$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11223 echo "${ECHO_T}$ac_cv_type_signal" >&6
11225 cat >>confdefs.h <<_ACEOF
11226 #define RETSIGTYPE $ac_cv_type_signal
11231 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11232 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11233 if test "${bash_cv_signal_vintage+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 #include <signal.h>
11250 struct sigaction sa;
11251 sigemptyset(&ss); sigsuspend(&ss);
11252 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11253 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261 (eval $ac_link) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 bash_cv_signal_vintage=posix
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <signal.h>
11289 int mask = sigmask(SIGINT);
11290 sigsetmask(mask); sigblock(mask); sigpause(mask);
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -s conftest$ac_exeext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 bash_cv_signal_vintage=4.2bsd
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11322 #include <signal.h>
11323 RETSIGTYPE foo() { }
11328 int mask = sigmask(SIGINT);
11329 sigset(SIGINT, foo); sigrelse(SIGINT);
11330 sighold(SIGINT); sigpause(SIGINT);
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338 (eval $ac_link) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 bash_cv_signal_vintage=svr3
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 bash_cv_signal_vintage=v7
11356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11366 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11367 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11368 if test "$bash_cv_signal_vintage" = posix; then
11369 cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_POSIX_SIGNALS 1
11373 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_BSD_SIGNALS 1
11378 elif test "$bash_cv_signal_vintage" = svr3; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_USG_SIGHOLD 1
11385 echo "$as_me:$LINENO: checking for mode_t" >&5
11386 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11387 if test "${ac_cv_type_mode_t+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11403 if (sizeof (mode_t))
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_cv_type_mode_t=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_type_mode_t=no
11428 rm -f conftest.$ac_objext conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11431 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11432 if test $ac_cv_type_mode_t = yes; then
11436 cat >>confdefs.h <<_ACEOF
11442 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11444 if test "${ac_cv_type_uid_t+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <sys/types.h>
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458 $EGREP "uid_t" >/dev/null 2>&1; then
11459 ac_cv_type_uid_t=yes
11461 ac_cv_type_uid_t=no
11466 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11468 if test $ac_cv_type_uid_t = no; then
11470 cat >>confdefs.h <<\_ACEOF
11475 cat >>confdefs.h <<\_ACEOF
11481 echo "$as_me:$LINENO: checking for size_t" >&5
11482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11483 if test "${ac_cv_type_size_t+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 #line $LINENO "configure"
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11499 if (sizeof (size_t))
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 (eval $ac_compile) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_type_size_t=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_cv_type_size_t=no
11524 rm -f conftest.$ac_objext conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11527 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11528 if test $ac_cv_type_size_t = yes; then
11532 cat >>confdefs.h <<_ACEOF
11533 #define size_t unsigned
11538 echo "$as_me:$LINENO: checking for pid_t" >&5
11539 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11540 if test "${ac_cv_type_pid_t+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11556 if (sizeof (pid_t))
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_type_pid_t=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_cv_type_pid_t=no
11581 rm -f conftest.$ac_objext conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11584 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11585 if test $ac_cv_type_pid_t = yes; then
11589 cat >>confdefs.h <<_ACEOF
11595 echo "$as_me:$LINENO: checking for off_t" >&5
11596 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11597 if test "${ac_cv_type_off_t+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 $ac_includes_default
11613 if (sizeof (off_t))
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621 (eval $ac_compile) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest.$ac_objext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_type_off_t=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_cv_type_off_t=no
11638 rm -f conftest.$ac_objext conftest.$ac_ext
11640 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11641 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11642 if test $ac_cv_type_off_t = yes; then
11646 cat >>confdefs.h <<_ACEOF
11652 echo "$as_me:$LINENO: checking for ino_t" >&5
11653 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11654 if test "${ac_cv_type_ino_t+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11658 #line $LINENO "configure"
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 $ac_includes_default
11670 if (sizeof (ino_t))
11676 rm -f conftest.$ac_objext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11678 (eval $ac_compile) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_type_ino_t=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_cv_type_ino_t=no
11695 rm -f conftest.$ac_objext conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11698 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11699 if test $ac_cv_type_ino_t = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define ino_t unsigned long
11709 echo "$as_me:$LINENO: checking for dev_t" >&5
11710 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11711 if test "${ac_cv_type_dev_t+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 $ac_includes_default
11727 if (sizeof (dev_t))
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735 (eval $ac_compile) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_type_dev_t=yes
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_cv_type_dev_t=no
11752 rm -f conftest.$ac_objext conftest.$ac_ext
11754 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11755 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11756 if test $ac_cv_type_dev_t = yes; then
11760 cat >>confdefs.h <<_ACEOF
11761 #define dev_t unsigned long
11766 echo "$as_me:$LINENO: checking for daddr_t" >&5
11767 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11768 if test "${ac_cv_type_daddr_t+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11784 if (sizeof (daddr_t))
11790 rm -f conftest.$ac_objext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_daddr_t=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_type_daddr_t=no
11809 rm -f conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11812 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11813 if test $ac_cv_type_daddr_t = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define daddr_t long
11823 echo "$as_me:$LINENO: checking for major_t" >&5
11824 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11825 if test "${ac_cv_type_major_t+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 $ac_includes_default
11841 if (sizeof (major_t))
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_type_major_t=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_cv_type_major_t=no
11866 rm -f conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11869 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11870 if test $ac_cv_type_major_t = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define major_t int
11880 echo "$as_me:$LINENO: checking for minor_t" >&5
11881 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11882 if test "${ac_cv_type_minor_t+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 $ac_includes_default
11898 if (sizeof (minor_t))
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_cv_type_minor_t=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_cv_type_minor_t=no
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11926 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11927 if test $ac_cv_type_minor_t = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define minor_t int
11937 echo "$as_me:$LINENO: checking for ssize_t" >&5
11938 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11939 if test "${ac_cv_type_ssize_t+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11955 if (sizeof (ssize_t))
11961 rm -f conftest.$ac_objext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963 (eval $ac_compile) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_cv_type_ssize_t=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_cv_type_ssize_t=no
11980 rm -f conftest.$ac_objext conftest.$ac_ext
11982 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11983 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11984 if test $ac_cv_type_ssize_t = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define ssize_t int
11994 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11995 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11996 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 #line $LINENO "configure"
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 $ac_includes_default
12010 static struct stat ac_aggr;
12011 if (ac_aggr.st_blocks)
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_member_struct_stat_st_blocks=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 $ac_includes_default
12045 static struct stat ac_aggr;
12046 if (sizeof ac_aggr.st_blocks)
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_member_struct_stat_st_blocks=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_member_struct_stat_st_blocks=no
12071 rm -f conftest.$ac_objext conftest.$ac_ext
12073 rm -f conftest.$ac_objext conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12077 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12084 cat >>confdefs.h <<\_ACEOF
12085 #define HAVE_ST_BLOCKS 1
12089 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12094 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12095 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12096 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12110 static struct stat ac_aggr;
12111 if (ac_aggr.st_rdev)
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_member_struct_stat_st_rdev=yes
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12145 static struct stat ac_aggr;
12146 if (sizeof ac_aggr.st_rdev)
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -s conftest.$ac_objext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 ac_cv_member_struct_stat_st_rdev=yes
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ac_cv_member_struct_stat_st_rdev=no
12171 rm -f conftest.$ac_objext conftest.$ac_ext
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12177 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_STRUCT_STAT_ST_RDEV 1
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_ST_RDEV 1
12191 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12192 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12193 if test "${ac_cv_struct_tm+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #include <sys/types.h>
12209 struct tm *tp; tp->tm_sec;
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_struct_tm=time.h
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_struct_tm=sys/time.h
12233 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12236 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12237 if test $ac_cv_struct_tm = sys/time.h; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define TM_IN_SYS_TIME 1
12245 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12247 if test "${ac_cv_c_const+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12261 /* FIXME: Include the comments suggested by Paul. */
12262 #ifndef __cplusplus
12263 /* Ultrix mips cc rejects this. */
12264 typedef int charset[2];
12266 /* SunOS 4.1.1 cc rejects this. */
12267 char const *const *ccp;
12269 /* NEC SVR4.0.2 mips cc rejects this. */
12270 struct point {int x, y;};
12271 static struct point const zero = {0,0};
12272 /* AIX XL C 1.02.0.0 rejects this.
12273 It does not let you subtract one const X* pointer from another in
12274 an arm of an if-expression whose if-part is not a constant
12276 const char *g = "string";
12277 ccp = &g + (g ? g-g : 0);
12278 /* HPUX 7.0 cc rejects these. */
12281 ccp = (char const *const *) p;
12282 { /* SCO 3.2v4 cc rejects this. */
12284 char const *s = 0 ? (char *) 0 : (char const *) 0;
12288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12289 int x[] = {25, 17};
12290 const int *foo = &x[0];
12293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12294 typedef const int *iptr;
12298 { /* AIX XL C 1.02.0.0 rejects this saying
12299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12300 struct s { int j; const int *ap[3]; };
12301 struct s *b; b->j = 5;
12303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12304 const int foo = 10;
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12333 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12334 echo "${ECHO_T}$ac_cv_c_const" >&6
12335 if test $ac_cv_c_const = no; then
12337 cat >>confdefs.h <<\_ACEOF
12345 echo "$as_me:$LINENO: checking for char" >&5
12346 echo $ECHO_N "checking for char... $ECHO_C" >&6
12347 if test "${ac_cv_type_char+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 $ac_includes_default
12369 rm -f conftest.$ac_objext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_type_char=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12391 echo "${ECHO_T}$ac_cv_type_char" >&6
12393 echo "$as_me:$LINENO: checking size of char" >&5
12394 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12395 if test "${ac_cv_sizeof_char+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 if test "$ac_cv_type_char" = yes; then
12399 # The cast to unsigned long works around a bug in the HP C Compiler
12400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12402 # This bug is HP SR number 8606223364.
12403 if test "$cross_compiling" = yes; then
12404 # Depending upon the size, compute the lo and hi bounds.
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12416 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425 (eval $ac_compile) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -s conftest.$ac_objext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12437 cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 $ac_includes_default
12448 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12455 rm -f conftest.$ac_objext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457 (eval $ac_compile) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_hi=$ac_mid; break
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_lo=`expr $ac_mid + 1`
12473 if test $ac_lo -le $ac_mid; then
12477 ac_mid=`expr 2 '*' $ac_mid + 1`
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 $ac_includes_default
12496 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest.$ac_objext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 $ac_includes_default
12528 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_lo=$ac_mid; break
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_hi=`expr '(' $ac_mid ')' - 1`
12553 if test $ac_mid -le $ac_hi; then
12557 ac_mid=`expr 2 '*' $ac_mid`
12559 rm -f conftest.$ac_objext conftest.$ac_ext
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12570 # Binary search between lo and hi bounds.
12571 while test "x$ac_lo" != "x$ac_hi"; do
12572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12573 cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12584 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_lo=`expr '(' $ac_mid ')' + 1`
12610 rm -f conftest.$ac_objext conftest.$ac_ext
12613 ?*) ac_cv_sizeof_char=$ac_lo;;
12614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12615 See \`config.log' for more details." >&5
12616 echo "$as_me: error: cannot compute sizeof (char), 77
12617 See \`config.log' for more details." >&2;}
12618 { (exit 1); exit 1; }; } ;;
12621 if test "$cross_compiling" = yes; then
12622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12623 See \`config.log' for more details." >&5
12624 echo "$as_me: error: cannot run test program while cross compiling
12625 See \`config.log' for more details." >&2;}
12626 { (exit 1); exit 1; }; }
12628 cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 $ac_includes_default
12636 long longval () { return (long) (sizeof (char)); }
12637 unsigned long ulongval () { return (long) (sizeof (char)); }
12639 #include <stdlib.h>
12644 FILE *f = fopen ("conftest.val", "w");
12647 if (((long) (sizeof (char))) < 0)
12649 long i = longval ();
12650 if (i != ((long) (sizeof (char))))
12652 fprintf (f, "%ld\n", i);
12656 unsigned long i = ulongval ();
12657 if (i != ((long) (sizeof (char))))
12659 fprintf (f, "%lu\n", i);
12661 exit (ferror (f) || fclose (f) != 0);
12667 rm -f conftest$ac_exeext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669 (eval $ac_link) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_sizeof_char=`cat conftest.val`
12680 echo "$as_me: program exited with status $ac_status" >&5
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ( exit $ac_status )
12685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12686 See \`config.log' for more details." >&5
12687 echo "$as_me: error: cannot compute sizeof (char), 77
12688 See \`config.log' for more details." >&2;}
12689 { (exit 1); exit 1; }; }
12691 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12696 ac_cv_sizeof_char=0
12699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12700 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12701 cat >>confdefs.h <<_ACEOF
12702 #define SIZEOF_CHAR $ac_cv_sizeof_char
12706 echo "$as_me:$LINENO: checking for short int" >&5
12707 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12708 if test "${ac_cv_type_short_int+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 $ac_includes_default
12722 if ((short int *) 0)
12724 if (sizeof (short int))
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_type_short_int=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_type_short_int=no
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12752 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12754 echo "$as_me:$LINENO: checking size of short int" >&5
12755 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12756 if test "${ac_cv_sizeof_short_int+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 if test "$ac_cv_type_short_int" = yes; then
12760 # The cast to unsigned long works around a bug in the HP C Compiler
12761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12763 # This bug is HP SR number 8606223364.
12764 if test "$cross_compiling" = yes; then
12765 # Depending upon the size, compute the lo and hi bounds.
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12777 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12798 cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 $ac_includes_default
12809 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_hi=$ac_mid; break
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 ac_lo=`expr $ac_mid + 1`
12834 if test $ac_lo -le $ac_mid; then
12838 ac_mid=`expr 2 '*' $ac_mid + 1`
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 $ac_includes_default
12857 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12864 rm -f conftest.$ac_objext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866 (eval $ac_compile) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -s conftest.$ac_objext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12878 cat >conftest.$ac_ext <<_ACEOF
12879 #line $LINENO "configure"
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 $ac_includes_default
12889 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12896 rm -f conftest.$ac_objext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898 (eval $ac_compile) 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_lo=$ac_mid; break
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_hi=`expr '(' $ac_mid ')' - 1`
12914 if test $ac_mid -le $ac_hi; then
12918 ac_mid=`expr 2 '*' $ac_mid`
12920 rm -f conftest.$ac_objext conftest.$ac_ext
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12930 rm -f conftest.$ac_objext conftest.$ac_ext
12931 # Binary search between lo and hi bounds.
12932 while test "x$ac_lo" != "x$ac_hi"; do
12933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12934 cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12941 $ac_includes_default
12945 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_lo=`expr '(' $ac_mid ')' + 1`
12971 rm -f conftest.$ac_objext conftest.$ac_ext
12974 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12976 See \`config.log' for more details." >&5
12977 echo "$as_me: error: cannot compute sizeof (short int), 77
12978 See \`config.log' for more details." >&2;}
12979 { (exit 1); exit 1; }; } ;;
12982 if test "$cross_compiling" = yes; then
12983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12984 See \`config.log' for more details." >&5
12985 echo "$as_me: error: cannot run test program while cross compiling
12986 See \`config.log' for more details." >&2;}
12987 { (exit 1); exit 1; }; }
12989 cat >conftest.$ac_ext <<_ACEOF
12990 #line $LINENO "configure"
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
12997 long longval () { return (long) (sizeof (short int)); }
12998 unsigned long ulongval () { return (long) (sizeof (short int)); }
13000 #include <stdlib.h>
13005 FILE *f = fopen ("conftest.val", "w");
13008 if (((long) (sizeof (short int))) < 0)
13010 long i = longval ();
13011 if (i != ((long) (sizeof (short int))))
13013 fprintf (f, "%ld\n", i);
13017 unsigned long i = ulongval ();
13018 if (i != ((long) (sizeof (short int))))
13020 fprintf (f, "%lu\n", i);
13022 exit (ferror (f) || fclose (f) != 0);
13028 rm -f conftest$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030 (eval $ac_link) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_sizeof_short_int=`cat conftest.val`
13041 echo "$as_me: program exited with status $ac_status" >&5
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 ( exit $ac_status )
13046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13047 See \`config.log' for more details." >&5
13048 echo "$as_me: error: cannot compute sizeof (short int), 77
13049 See \`config.log' for more details." >&2;}
13050 { (exit 1); exit 1; }; }
13052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13057 ac_cv_sizeof_short_int=0
13060 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13061 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13062 cat >>confdefs.h <<_ACEOF
13063 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13067 echo "$as_me:$LINENO: checking for int" >&5
13068 echo $ECHO_N "checking for int... $ECHO_C" >&6
13069 if test "${ac_cv_type_int+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 $ac_includes_default
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -s conftest.$ac_objext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13112 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13113 echo "${ECHO_T}$ac_cv_type_int" >&6
13115 echo "$as_me:$LINENO: checking size of int" >&5
13116 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13117 if test "${ac_cv_sizeof_int+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 if test "$ac_cv_type_int" = yes; then
13121 # The cast to unsigned long works around a bug in the HP C Compiler
13122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13124 # This bug is HP SR number 8606223364.
13125 if test "$cross_compiling" = yes; then
13126 # Depending upon the size, compute the lo and hi bounds.
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 $ac_includes_default
13138 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13145 rm -f conftest.$ac_objext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13159 cat >conftest.$ac_ext <<_ACEOF
13160 #line $LINENO "configure"
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 $ac_includes_default
13170 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179 (eval $ac_compile) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_hi=$ac_mid; break
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_lo=`expr $ac_mid + 1`
13195 if test $ac_lo -le $ac_mid; then
13199 ac_mid=`expr 2 '*' $ac_mid + 1`
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 cat >conftest.$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 $ac_includes_default
13218 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13225 rm -f conftest.$ac_objext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -s conftest.$ac_objext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13239 cat >conftest.$ac_ext <<_ACEOF
13240 #line $LINENO "configure"
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 $ac_includes_default
13250 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259 (eval $ac_compile) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -s conftest.$ac_objext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_lo=$ac_mid; break
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_hi=`expr '(' $ac_mid ')' - 1`
13275 if test $ac_mid -le $ac_hi; then
13279 ac_mid=`expr 2 '*' $ac_mid`
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13289 rm -f conftest.$ac_objext conftest.$ac_ext
13291 rm -f conftest.$ac_objext conftest.$ac_ext
13292 # Binary search between lo and hi bounds.
13293 while test "x$ac_lo" != "x$ac_hi"; do
13294 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13313 rm -f conftest.$ac_objext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -s conftest.$ac_objext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_lo=`expr '(' $ac_mid ')' + 1`
13332 rm -f conftest.$ac_objext conftest.$ac_ext
13335 ?*) ac_cv_sizeof_int=$ac_lo;;
13336 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13337 See \`config.log' for more details." >&5
13338 echo "$as_me: error: cannot compute sizeof (int), 77
13339 See \`config.log' for more details." >&2;}
13340 { (exit 1); exit 1; }; } ;;
13343 if test "$cross_compiling" = yes; then
13344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&5
13346 echo "$as_me: error: cannot run test program while cross compiling
13347 See \`config.log' for more details." >&2;}
13348 { (exit 1); exit 1; }; }
13350 cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 long longval () { return (long) (sizeof (int)); }
13359 unsigned long ulongval () { return (long) (sizeof (int)); }
13361 #include <stdlib.h>
13366 FILE *f = fopen ("conftest.val", "w");
13369 if (((long) (sizeof (int))) < 0)
13371 long i = longval ();
13372 if (i != ((long) (sizeof (int))))
13374 fprintf (f, "%ld\n", i);
13378 unsigned long i = ulongval ();
13379 if (i != ((long) (sizeof (int))))
13381 fprintf (f, "%lu\n", i);
13383 exit (ferror (f) || fclose (f) != 0);
13389 rm -f conftest$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_sizeof_int=`cat conftest.val`
13402 echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ( exit $ac_status )
13407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13408 See \`config.log' for more details." >&5
13409 echo "$as_me: error: cannot compute sizeof (int), 77
13410 See \`config.log' for more details." >&2;}
13411 { (exit 1); exit 1; }; }
13413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13421 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13423 cat >>confdefs.h <<_ACEOF
13424 #define SIZEOF_INT $ac_cv_sizeof_int
13428 echo "$as_me:$LINENO: checking for long int" >&5
13429 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13430 if test "${ac_cv_type_long_int+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 cat >conftest.$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 $ac_includes_default
13444 if ((long int *) 0)
13446 if (sizeof (long int))
13452 rm -f conftest.$ac_objext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13454 (eval $ac_compile) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -s conftest.$ac_objext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_type_long_int=yes
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_cv_type_long_int=no
13471 rm -f conftest.$ac_objext conftest.$ac_ext
13473 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13474 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13476 echo "$as_me:$LINENO: checking size of long int" >&5
13477 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13478 if test "${ac_cv_sizeof_long_int+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 if test "$ac_cv_type_long_int" = yes; then
13482 # The cast to unsigned long works around a bug in the HP C Compiler
13483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485 # This bug is HP SR number 8606223364.
13486 if test "$cross_compiling" = yes; then
13487 # Depending upon the size, compute the lo and hi bounds.
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13499 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13520 cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13531 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -s conftest.$ac_objext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_hi=$ac_mid; break
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_lo=`expr $ac_mid + 1`
13556 if test $ac_lo -le $ac_mid; then
13560 ac_mid=`expr 2 '*' $ac_mid + 1`
13562 rm -f conftest.$ac_objext conftest.$ac_ext
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line $LINENO "configure"
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 $ac_includes_default
13579 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13586 rm -f conftest.$ac_objext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -s conftest.$ac_objext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13600 cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 $ac_includes_default
13611 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_lo=$ac_mid; break
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_hi=`expr '(' $ac_mid ')' - 1`
13636 if test $ac_mid -le $ac_hi; then
13640 ac_mid=`expr 2 '*' $ac_mid`
13642 rm -f conftest.$ac_objext conftest.$ac_ext
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13652 rm -f conftest.$ac_objext conftest.$ac_ext
13653 # Binary search between lo and hi bounds.
13654 while test "x$ac_lo" != "x$ac_hi"; do
13655 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13656 cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13667 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -s conftest.$ac_objext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_lo=`expr '(' $ac_mid ')' + 1`
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13696 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13697 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13698 See \`config.log' for more details." >&5
13699 echo "$as_me: error: cannot compute sizeof (long int), 77
13700 See \`config.log' for more details." >&2;}
13701 { (exit 1); exit 1; }; } ;;
13704 if test "$cross_compiling" = yes; then
13705 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13706 See \`config.log' for more details." >&5
13707 echo "$as_me: error: cannot run test program while cross compiling
13708 See \`config.log' for more details." >&2;}
13709 { (exit 1); exit 1; }; }
13711 cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 $ac_includes_default
13719 long longval () { return (long) (sizeof (long int)); }
13720 unsigned long ulongval () { return (long) (sizeof (long int)); }
13722 #include <stdlib.h>
13727 FILE *f = fopen ("conftest.val", "w");
13730 if (((long) (sizeof (long int))) < 0)
13732 long i = longval ();
13733 if (i != ((long) (sizeof (long int))))
13735 fprintf (f, "%ld\n", i);
13739 unsigned long i = ulongval ();
13740 if (i != ((long) (sizeof (long int))))
13742 fprintf (f, "%lu\n", i);
13744 exit (ferror (f) || fclose (f) != 0);
13750 rm -f conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752 (eval $ac_link) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_sizeof_long_int=`cat conftest.val`
13763 echo "$as_me: program exited with status $ac_status" >&5
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ( exit $ac_status )
13768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13769 See \`config.log' for more details." >&5
13770 echo "$as_me: error: cannot compute sizeof (long int), 77
13771 See \`config.log' for more details." >&2;}
13772 { (exit 1); exit 1; }; }
13774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13779 ac_cv_sizeof_long_int=0
13782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13783 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13784 cat >>confdefs.h <<_ACEOF
13785 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13789 echo "$as_me:$LINENO: checking for long long int" >&5
13790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13791 if test "${ac_cv_type_long_long_int+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 $ac_includes_default
13805 if ((long long int *) 0)
13807 if (sizeof (long long int))
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_type_long_long_int=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_cv_type_long_long_int=no
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13835 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13837 echo "$as_me:$LINENO: checking size of long long int" >&5
13838 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13839 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 if test "$ac_cv_type_long_long_int" = yes; then
13843 # The cast to unsigned long works around a bug in the HP C Compiler
13844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846 # This bug is HP SR number 8606223364.
13847 if test "$cross_compiling" = yes; then
13848 # Depending upon the size, compute the lo and hi bounds.
13849 cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 $ac_includes_default
13860 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13867 rm -f conftest.$ac_objext
13868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13869 (eval $ac_compile) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try='test -s conftest.$ac_objext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 $ac_includes_default
13892 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901 (eval $ac_compile) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_hi=$ac_mid; break
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 ac_lo=`expr $ac_mid + 1`
13917 if test $ac_lo -le $ac_mid; then
13921 ac_mid=`expr 2 '*' $ac_mid + 1`
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 cat >conftest.$ac_ext <<_ACEOF
13930 #line $LINENO "configure"
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 $ac_includes_default
13940 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13961 cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13972 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_lo=$ac_mid; break
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_hi=`expr '(' $ac_mid ')' - 1`
13997 if test $ac_mid -le $ac_hi; then
14001 ac_mid=`expr 2 '*' $ac_mid`
14003 rm -f conftest.$ac_objext conftest.$ac_ext
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14014 # Binary search between lo and hi bounds.
14015 while test "x$ac_lo" != "x$ac_hi"; do
14016 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14017 cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 $ac_includes_default
14028 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_lo=`expr '(' $ac_mid ')' + 1`
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14057 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14059 See \`config.log' for more details." >&5
14060 echo "$as_me: error: cannot compute sizeof (long long int), 77
14061 See \`config.log' for more details." >&2;}
14062 { (exit 1); exit 1; }; } ;;
14065 if test "$cross_compiling" = yes; then
14066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14067 See \`config.log' for more details." >&5
14068 echo "$as_me: error: cannot run test program while cross compiling
14069 See \`config.log' for more details." >&2;}
14070 { (exit 1); exit 1; }; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 $ac_includes_default
14080 long longval () { return (long) (sizeof (long long int)); }
14081 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14083 #include <stdlib.h>
14088 FILE *f = fopen ("conftest.val", "w");
14091 if (((long) (sizeof (long long int))) < 0)
14093 long i = longval ();
14094 if (i != ((long) (sizeof (long long int))))
14096 fprintf (f, "%ld\n", i);
14100 unsigned long i = ulongval ();
14101 if (i != ((long) (sizeof (long long int))))
14103 fprintf (f, "%lu\n", i);
14105 exit (ferror (f) || fclose (f) != 0);
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_sizeof_long_long_int=`cat conftest.val`
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ( exit $ac_status )
14129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14130 See \`config.log' for more details." >&5
14131 echo "$as_me: error: cannot compute sizeof (long long int), 77
14132 See \`config.log' for more details." >&2;}
14133 { (exit 1); exit 1; }; }
14135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14140 ac_cv_sizeof_long_long_int=0
14143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14144 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14145 cat >>confdefs.h <<_ACEOF
14146 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14150 echo "$as_me:$LINENO: checking for int *" >&5
14151 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14152 if test "${ac_cv_type_int_p+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 $ac_includes_default
14168 if (sizeof (int *))
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_type_int_p=yes
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ac_cv_type_int_p=no
14193 rm -f conftest.$ac_objext conftest.$ac_ext
14195 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14196 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14198 echo "$as_me:$LINENO: checking size of int *" >&5
14199 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14200 if test "${ac_cv_sizeof_int_p+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 if test "$ac_cv_type_int_p" = yes; then
14204 # The cast to unsigned long works around a bug in the HP C Compiler
14205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14207 # This bug is HP SR number 8606223364.
14208 if test "$cross_compiling" = yes; then
14209 # Depending upon the size, compute the lo and hi bounds.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 #line $LINENO "configure"
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14221 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -s conftest.$ac_objext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14242 cat >conftest.$ac_ext <<_ACEOF
14243 #line $LINENO "configure"
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 $ac_includes_default
14253 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_hi=$ac_mid; break
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 ac_lo=`expr $ac_mid + 1`
14278 if test $ac_lo -le $ac_mid; then
14282 ac_mid=`expr 2 '*' $ac_mid + 1`
14284 rm -f conftest.$ac_objext conftest.$ac_ext
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 cat >conftest.$ac_ext <<_ACEOF
14291 #line $LINENO "configure"
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 $ac_includes_default
14301 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14308 rm -f conftest.$ac_objext
14309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14310 (eval $ac_compile) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -s conftest.$ac_objext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14322 cat >conftest.$ac_ext <<_ACEOF
14323 #line $LINENO "configure"
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14333 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14340 rm -f conftest.$ac_objext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342 (eval $ac_compile) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -s conftest.$ac_objext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_lo=$ac_mid; break
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_hi=`expr '(' $ac_mid ')' - 1`
14358 if test $ac_mid -le $ac_hi; then
14362 ac_mid=`expr 2 '*' $ac_mid`
14364 rm -f conftest.$ac_objext conftest.$ac_ext
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14372 rm -f conftest.$ac_objext conftest.$ac_ext
14374 rm -f conftest.$ac_objext conftest.$ac_ext
14375 # Binary search between lo and hi bounds.
14376 while test "x$ac_lo" != "x$ac_hi"; do
14377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14378 cat >conftest.$ac_ext <<_ACEOF
14379 #line $LINENO "configure"
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14389 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_lo=`expr '(' $ac_mid ')' + 1`
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14418 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14420 See \`config.log' for more details." >&5
14421 echo "$as_me: error: cannot compute sizeof (int *), 77
14422 See \`config.log' for more details." >&2;}
14423 { (exit 1); exit 1; }; } ;;
14426 if test "$cross_compiling" = yes; then
14427 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14428 See \`config.log' for more details." >&5
14429 echo "$as_me: error: cannot run test program while cross compiling
14430 See \`config.log' for more details." >&2;}
14431 { (exit 1); exit 1; }; }
14433 cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14441 long longval () { return (long) (sizeof (int *)); }
14442 unsigned long ulongval () { return (long) (sizeof (int *)); }
14444 #include <stdlib.h>
14449 FILE *f = fopen ("conftest.val", "w");
14452 if (((long) (sizeof (int *))) < 0)
14454 long i = longval ();
14455 if (i != ((long) (sizeof (int *))))
14457 fprintf (f, "%ld\n", i);
14461 unsigned long i = ulongval ();
14462 if (i != ((long) (sizeof (int *))))
14464 fprintf (f, "%lu\n", i);
14466 exit (ferror (f) || fclose (f) != 0);
14472 rm -f conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 ac_cv_sizeof_int_p=`cat conftest.val`
14485 echo "$as_me: program exited with status $ac_status" >&5
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ( exit $ac_status )
14490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14491 See \`config.log' for more details." >&5
14492 echo "$as_me: error: cannot compute sizeof (int *), 77
14493 See \`config.log' for more details." >&2;}
14494 { (exit 1); exit 1; }; }
14496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14501 ac_cv_sizeof_int_p=0
14504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14505 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14506 cat >>confdefs.h <<_ACEOF
14507 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14512 # Check for sys/types.h types
14513 echo "$as_me:$LINENO: checking for u_int type" >&5
14514 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14515 if test "${ac_cv_have_u_int+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <sys/types.h>
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_cv_have_u_int="yes"
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 ac_cv_have_u_int="no"
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14558 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14559 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14560 if test "x$ac_cv_have_u_int" = "xyes" ; then
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_U_INT 1
14568 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14569 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14570 if test "${ac_cv_have_intmax_t+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14575 #line $LINENO "configure"
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 #include <sys/types.h>
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_have_intmax_t="yes"
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14608 cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <stdint.h>
14624 rm -f conftest.$ac_objext
14625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14626 (eval $ac_compile) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_cv_have_intmax_t="yes"
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_cv_have_intmax_t="no"
14644 rm -f conftest.$ac_objext conftest.$ac_ext
14648 rm -f conftest.$ac_objext conftest.$ac_ext
14652 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14653 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14654 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INTMAX_T 1
14663 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14664 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14665 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <sys/types.h>
14680 u_intmax_t a; a = 1;
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687 (eval $ac_compile) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_have_u_intmax_t="yes"
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14703 cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <stdint.h>
14714 u_intmax_t a; a = 1;
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_cv_have_u_intmax_t="yes"
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_have_u_intmax_t="no"
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14743 rm -f conftest.$ac_objext conftest.$ac_ext
14746 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14747 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14748 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_U_INTMAX_T 1
14757 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14758 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14759 if test "${ac_cv_have_intxx_t+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <sys/types.h>
14774 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14779 rm -f conftest.$ac_objext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14781 (eval $ac_compile) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -s conftest.$ac_objext'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791 ac_cv_have_intxx_t="yes"
14793 echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 ac_cv_have_intxx_t="no"
14799 rm -f conftest.$ac_objext conftest.$ac_ext
14802 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14803 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14804 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_INTXX_T 1
14812 echo "$as_me:$LINENO: checking for int64_t type" >&5
14813 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14814 if test "${ac_cv_have_int64_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <sys/types.h>
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_have_int64_t="yes"
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 ac_cv_have_int64_t="no"
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14858 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14859 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_INT64_T 1
14867 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14868 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14869 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 cat >conftest.$ac_ext <<_ACEOF
14874 #line $LINENO "configure"
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 #include <sys/types.h>
14884 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_have_u_intxx_t="yes"
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ac_cv_have_u_intxx_t="no"
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14912 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14913 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14914 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_U_INTXX_T 1
14922 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14923 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14924 if test "${ac_cv_have_u_int64_t+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <sys/types.h>
14939 u_int64_t a; a = 1;
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_have_u_int64_t="yes"
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_have_u_int64_t="no"
14964 rm -f conftest.$ac_objext conftest.$ac_ext
14967 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14968 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14969 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_U_INT64_T 1
14977 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14978 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14980 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14981 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14982 cat >conftest.$ac_ext <<_ACEOF
14983 #line $LINENO "configure"
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989 #include <sys/bitypes.h>
14993 int8_t a; int16_t b; int32_t c;
14994 u_int8_t e; u_int16_t f; u_int32_t g;
14995 a = b = c = e = f = g = 1;
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_U_INTXX_T 1
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_INTXX_T 1
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_SYS_BITYPES_H 1
15024 echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15034 rm -f conftest.$ac_objext conftest.$ac_ext
15037 if test -z "$have_u_intxx_t" ; then
15038 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15039 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15040 if test "${ac_cv_have_uintxx_t+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15045 #line $LINENO "configure"
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 #include <sys/types.h>
15055 uint8_t a; uint16_t b;
15056 uint32_t c; a = b = c = 1;
15061 rm -f conftest.$ac_objext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_have_uintxx_t="yes"
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_cv_have_uintxx_t="no"
15081 rm -f conftest.$ac_objext conftest.$ac_ext
15084 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15085 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15086 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_UINTXX_T 1
15124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125 echo "$as_me:$LINENO: checking for $ac_func" >&5
15126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15127 if eval "test \"\${$as_ac_var+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 cat >conftest.$ac_ext <<_ACEOF
15131 #line $LINENO "configure"
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15137 /* System header to define __stub macros and hopefully few prototypes,
15138 which can conflict with char $ac_func (); below.
15139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15140 <limits.h> exists even on freestanding compilers. */
15142 # include <limits.h>
15144 # include <assert.h>
15146 /* Override any gcc2 internal prototype to avoid an error. */
15151 /* We use char because int might match the return type of a gcc2
15152 builtin and then its argument prototype would still apply. */
15154 /* The GNU C library defines this for functions which it implements
15155 to always fail with ENOSYS. Some functions are actually named
15156 something starting with __ and the normal name is an alias. */
15157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15160 char (*f) () = $ac_func;
15169 return f != $ac_func;
15174 rm -f conftest.$ac_objext conftest$ac_exeext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15176 (eval $ac_link) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 eval "$as_ac_var=yes"
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 eval "$as_ac_var=no"
15193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15197 if test `eval echo '${'$as_ac_var'}'` = yes; then
15198 cat >>confdefs.h <<_ACEOF
15199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15203 echo 'configure: cannot find needed function.'; exit 1
15210 for ac_func in fchdir
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215 if eval "test \"\${$as_ac_var+set}\" = set"; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 /* System header to define __stub macros and hopefully few prototypes,
15226 which can conflict with char $ac_func (); below.
15227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15228 <limits.h> exists even on freestanding compilers. */
15230 # include <limits.h>
15232 # include <assert.h>
15234 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15242 /* The GNU C library defines this for functions which it implements
15243 to always fail with ENOSYS. Some functions are actually named
15244 something starting with __ and the normal name is an alias. */
15245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15248 char (*f) () = $ac_func;
15257 return f != $ac_func;
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15264 (eval $ac_link) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -s conftest$ac_exeext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 eval "$as_ac_var=yes"
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 eval "$as_ac_var=no"
15281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15285 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15289 cat >>confdefs.h <<\_ACEOF
15290 #define HAVE_FCHDIR 1
15297 for ac_func in strtoll
15299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15300 echo "$as_me:$LINENO: checking for $ac_func" >&5
15301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15302 if eval "test \"\${$as_ac_var+set}\" = set"; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 cat >conftest.$ac_ext <<_ACEOF
15306 #line $LINENO "configure"
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 /* System header to define __stub macros and hopefully few prototypes,
15313 which can conflict with char $ac_func (); below.
15314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15315 <limits.h> exists even on freestanding compilers. */
15317 # include <limits.h>
15319 # include <assert.h>
15321 /* Override any gcc2 internal prototype to avoid an error. */
15326 /* We use char because int might match the return type of a gcc2
15327 builtin and then its argument prototype would still apply. */
15329 /* The GNU C library defines this for functions which it implements
15330 to always fail with ENOSYS. Some functions are actually named
15331 something starting with __ and the normal name is an alias. */
15332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15335 char (*f) () = $ac_func;
15344 return f != $ac_func;
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351 (eval $ac_link) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -s conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 eval "$as_ac_var=yes"
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 eval "$as_ac_var=no"
15368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15372 if test `eval echo '${'$as_ac_var'}'` = yes; then
15373 cat >>confdefs.h <<_ACEOF
15374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_STRTOLL 1
15385 for ac_func in chflags
15387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15388 echo "$as_me:$LINENO: checking for $ac_func" >&5
15389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15390 if eval "test \"\${$as_ac_var+set}\" = set"; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15394 #line $LINENO "configure"
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 /* System header to define __stub macros and hopefully few prototypes,
15401 which can conflict with char $ac_func (); below.
15402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15403 <limits.h> exists even on freestanding compilers. */
15405 # include <limits.h>
15407 # include <assert.h>
15409 /* Override any gcc2 internal prototype to avoid an error. */
15414 /* We use char because int might match the return type of a gcc2
15415 builtin and then its argument prototype would still apply. */
15417 /* The GNU C library defines this for functions which it implements
15418 to always fail with ENOSYS. Some functions are actually named
15419 something starting with __ and the normal name is an alias. */
15420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 char (*f) () = $ac_func;
15432 return f != $ac_func;
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest$ac_exeext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 eval "$as_ac_var=yes"
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 eval "$as_ac_var=no"
15456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15460 if test `eval echo '${'$as_ac_var'}'` = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15473 for ac_func in snprintf vsnprintf gethostid getdomainname
15475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15476 echo "$as_me:$LINENO: checking for $ac_func" >&5
15477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15478 if eval "test \"\${$as_ac_var+set}\" = set"; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 cat >conftest.$ac_ext <<_ACEOF
15482 #line $LINENO "configure"
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 /* System header to define __stub macros and hopefully few prototypes,
15489 which can conflict with char $ac_func (); below.
15490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15491 <limits.h> exists even on freestanding compilers. */
15493 # include <limits.h>
15495 # include <assert.h>
15497 /* Override any gcc2 internal prototype to avoid an error. */
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15505 /* The GNU C library defines this for functions which it implements
15506 to always fail with ENOSYS. Some functions are actually named
15507 something starting with __ and the normal name is an alias. */
15508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15511 char (*f) () = $ac_func;
15520 return f != $ac_func;
15525 rm -f conftest.$ac_objext conftest$ac_exeext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527 (eval $ac_link) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -s conftest$ac_exeext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 eval "$as_ac_var=yes"
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 eval "$as_ac_var=no"
15544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15548 if test `eval echo '${'$as_ac_var'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15561 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15564 echo "$as_me:$LINENO: checking for $ac_func" >&5
15565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_var+set}\" = set"; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 cat >conftest.$ac_ext <<_ACEOF
15570 #line $LINENO "configure"
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 /* System header to define __stub macros and hopefully few prototypes,
15577 which can conflict with char $ac_func (); below.
15578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15579 <limits.h> exists even on freestanding compilers. */
15581 # include <limits.h>
15583 # include <assert.h>
15585 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15593 /* The GNU C library defines this for functions which it implements
15594 to always fail with ENOSYS. Some functions are actually named
15595 something starting with __ and the normal name is an alias. */
15596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15599 char (*f) () = $ac_func;
15608 return f != $ac_func;
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -s conftest$ac_exeext'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 eval "$as_ac_var=yes"
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 eval "$as_ac_var=no"
15632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15636 if test `eval echo '${'$as_ac_var'}'` = yes; then
15637 cat >>confdefs.h <<_ACEOF
15638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15645 # If resolver functions are not in libc check for -lnsl or -lresolv.
15646 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15647 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15648 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 /* System header to define __stub macros and hopefully few prototypes,
15659 which can conflict with char gethostbyname_r (); below.
15660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661 <limits.h> exists even on freestanding compilers. */
15663 # include <limits.h>
15665 # include <assert.h>
15667 /* Override any gcc2 internal prototype to avoid an error. */
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15674 char gethostbyname_r ();
15675 /* The GNU C library defines this for functions which it implements
15676 to always fail with ENOSYS. Some functions are actually named
15677 something starting with __ and the normal name is an alias. */
15678 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15681 char (*f) () = gethostbyname_r;
15690 return f != gethostbyname_r;
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697 (eval $ac_link) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_func_gethostbyname_r=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_cv_func_gethostbyname_r=no
15714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15717 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15718 if test $ac_cv_func_gethostbyname_r = yes; then
15719 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15720 echo "${ECHO_T}using libc's resolver" >&6
15723 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15724 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15725 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 ac_check_lib_save_LIBS=$LIBS
15730 cat >conftest.$ac_ext <<_ACEOF
15731 #line $LINENO "configure"
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15738 /* Override any gcc2 internal prototype to avoid an error. */
15742 /* We use char because int might match the return type of a gcc2
15743 builtin and then its argument prototype would still apply. */
15744 char gethostbyname_r ();
15748 gethostbyname_r ();
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755 (eval $ac_link) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -s conftest$ac_exeext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_cv_lib_nsl_gethostbyname_r=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_cv_lib_nsl_gethostbyname_r=no
15772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15773 LIBS=$ac_check_lib_save_LIBS
15775 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15776 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15777 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779 #define HAVE_LIBNSL 1
15787 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15788 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15789 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-lresolv $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15795 #line $LINENO "configure"
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15802 /* Override any gcc2 internal prototype to avoid an error. */
15806 /* We use char because int might match the return type of a gcc2
15807 builtin and then its argument prototype would still apply. */
15808 char gethostbyname_r ();
15812 gethostbyname_r ();
15817 rm -f conftest.$ac_objext conftest$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819 (eval $ac_link) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -s conftest$ac_exeext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_cv_lib_resolv_gethostbyname_r=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_cv_lib_resolv_gethostbyname_r=no
15836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15837 LIBS=$ac_check_lib_save_LIBS
15839 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15840 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15841 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15842 cat >>confdefs.h <<_ACEOF
15843 #define HAVE_LIBRESOLV 1
15846 LIBS="-lresolv $LIBS"
15854 # Find where sockets are (especially for Solaris)
15855 echo "$as_me:$LINENO: checking for socket" >&5
15856 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15857 if test "${ac_cv_func_socket+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 /* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char socket (); below.
15869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870 <limits.h> exists even on freestanding compilers. */
15872 # include <limits.h>
15874 # include <assert.h>
15876 /* Override any gcc2 internal prototype to avoid an error. */
15881 /* We use char because int might match the return type of a gcc2
15882 builtin and then its argument prototype would still apply. */
15884 /* The GNU C library defines this for functions which it implements
15885 to always fail with ENOSYS. Some functions are actually named
15886 something starting with __ and the normal name is an alias. */
15887 #if defined (__stub_socket) || defined (__stub___socket)
15890 char (*f) () = socket;
15899 return f != socket;
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906 (eval $ac_link) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_cv_func_socket=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_cv_func_socket=no
15923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15925 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15926 echo "${ECHO_T}$ac_cv_func_socket" >&6
15927 if test $ac_cv_func_socket = yes; then
15928 echo "$as_me:$LINENO: result: using libc's socket" >&5
15929 echo "${ECHO_T}using libc's socket" >&6
15932 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15933 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15934 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 ac_check_lib_save_LIBS=$LIBS
15938 LIBS="-lxnet $LIBS"
15939 cat >conftest.$ac_ext <<_ACEOF
15940 #line $LINENO "configure"
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15947 /* Override any gcc2 internal prototype to avoid an error. */
15951 /* We use char because int might match the return type of a gcc2
15952 builtin and then its argument prototype would still apply. */
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -s conftest$ac_exeext'
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; }; then
15974 ac_cv_lib_xnet_socket=yes
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 ac_cv_lib_xnet_socket=no
15981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15984 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15985 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15986 if test $ac_cv_lib_xnet_socket = yes; then
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_LIBXNET 1
15991 LIBS="-lxnet $LIBS"
15996 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15997 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15998 if test "${ac_cv_lib_socket_socket+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_check_lib_save_LIBS=$LIBS
16002 LIBS="-lsocket $LIBS"
16003 cat >conftest.$ac_ext <<_ACEOF
16004 #line $LINENO "configure"
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 /* Override any gcc2 internal prototype to avoid an error. */
16015 /* We use char because int might match the return type of a gcc2
16016 builtin and then its argument prototype would still apply. */
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028 (eval $ac_link) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -s conftest$ac_exeext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_cv_lib_socket_socket=yes
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_cv_lib_socket_socket=no
16045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16046 LIBS=$ac_check_lib_save_LIBS
16048 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16049 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16050 if test $ac_cv_lib_socket_socket = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_LIBSOCKET 1
16055 LIBS="-lsocket $LIBS"
16060 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16061 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16062 if test "${ac_cv_lib_inet_socket+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 ac_check_lib_save_LIBS=$LIBS
16066 LIBS="-linet $LIBS"
16067 cat >conftest.$ac_ext <<_ACEOF
16068 #line $LINENO "configure"
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16075 /* Override any gcc2 internal prototype to avoid an error. */
16079 /* We use char because int might match the return type of a gcc2
16080 builtin and then its argument prototype would still apply. */
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092 (eval $ac_link) 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -s conftest$ac_exeext'
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_cv_lib_inet_socket=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_cv_lib_inet_socket=no
16109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16113 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16114 if test $ac_cv_lib_inet_socket = yes; then
16115 cat >>confdefs.h <<_ACEOF
16116 #define HAVE_LIBINET 1
16119 LIBS="-linet $LIBS"
16127 for ac_func in inet_pton
16129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_var+set}\" = set"; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 cat >conftest.$ac_ext <<_ACEOF
16136 #line $LINENO "configure"
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 /* System header to define __stub macros and hopefully few prototypes,
16143 which can conflict with char $ac_func (); below.
16144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16145 <limits.h> exists even on freestanding compilers. */
16147 # include <limits.h>
16149 # include <assert.h>
16151 /* Override any gcc2 internal prototype to avoid an error. */
16156 /* We use char because int might match the return type of a gcc2
16157 builtin and then its argument prototype would still apply. */
16159 /* The GNU C library defines this for functions which it implements
16160 to always fail with ENOSYS. Some functions are actually named
16161 something starting with __ and the normal name is an alias. */
16162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16165 char (*f) () = $ac_func;
16174 return f != $ac_func;
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -s conftest$ac_exeext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 eval "$as_ac_var=yes"
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 eval "$as_ac_var=no"
16198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16202 if test `eval echo '${'$as_ac_var'}'` = yes; then
16203 cat >>confdefs.h <<_ACEOF
16204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16206 cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_INET_PTON 1
16215 for ac_func in strftime
16217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16218 echo "$as_me:$LINENO: checking for $ac_func" >&5
16219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16220 if eval "test \"\${$as_ac_var+set}\" = set"; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 cat >conftest.$ac_ext <<_ACEOF
16224 #line $LINENO "configure"
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 /* System header to define __stub macros and hopefully few prototypes,
16231 which can conflict with char $ac_func (); below.
16232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233 <limits.h> exists even on freestanding compilers. */
16235 # include <limits.h>
16237 # include <assert.h>
16239 /* Override any gcc2 internal prototype to avoid an error. */
16244 /* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
16247 /* The GNU C library defines this for functions which it implements
16248 to always fail with ENOSYS. Some functions are actually named
16249 something starting with __ and the normal name is an alias. */
16250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16253 char (*f) () = $ac_func;
16262 return f != $ac_func;
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16269 (eval $ac_link) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 eval "$as_ac_var=yes"
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 eval "$as_ac_var=no"
16286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16290 if test `eval echo '${'$as_ac_var'}'` = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16296 # strftime is in -lintl on SCO UNIX.
16297 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16298 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16299 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 ac_check_lib_save_LIBS=$LIBS
16303 LIBS="-lintl $LIBS"
16304 cat >conftest.$ac_ext <<_ACEOF
16305 #line $LINENO "configure"
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16312 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16327 rm -f conftest.$ac_objext conftest$ac_exeext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16329 (eval $ac_link) 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -s conftest$ac_exeext'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 ac_cv_lib_intl_strftime=yes
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 ac_cv_lib_intl_strftime=no
16346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16347 LIBS=$ac_check_lib_save_LIBS
16349 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16350 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16351 if test $ac_cv_lib_intl_strftime = yes; then
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STRFTIME 1
16356 LIBS="-lintl $LIBS"
16363 for ac_func in vprintf
16365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16366 echo "$as_me:$LINENO: checking for $ac_func" >&5
16367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16368 if eval "test \"\${$as_ac_var+set}\" = set"; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 cat >conftest.$ac_ext <<_ACEOF
16372 #line $LINENO "configure"
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 /* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func (); below.
16380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16381 <limits.h> exists even on freestanding compilers. */
16383 # include <limits.h>
16385 # include <assert.h>
16387 /* Override any gcc2 internal prototype to avoid an error. */
16392 /* We use char because int might match the return type of a gcc2
16393 builtin and then its argument prototype would still apply. */
16395 /* The GNU C library defines this for functions which it implements
16396 to always fail with ENOSYS. Some functions are actually named
16397 something starting with __ and the normal name is an alias. */
16398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16401 char (*f) () = $ac_func;
16410 return f != $ac_func;
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417 (eval $ac_link) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -s conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 eval "$as_ac_var=yes"
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16432 eval "$as_ac_var=no"
16434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16438 if test `eval echo '${'$as_ac_var'}'` = yes; then
16439 cat >>confdefs.h <<_ACEOF
16440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16443 echo "$as_me:$LINENO: checking for _doprnt" >&5
16444 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16445 if test "${ac_cv_func__doprnt+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 /* System header to define __stub macros and hopefully few prototypes,
16456 which can conflict with char _doprnt (); below.
16457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16458 <limits.h> exists even on freestanding compilers. */
16460 # include <limits.h>
16462 # include <assert.h>
16464 /* Override any gcc2 internal prototype to avoid an error. */
16469 /* We use char because int might match the return type of a gcc2
16470 builtin and then its argument prototype would still apply. */
16472 /* The GNU C library defines this for functions which it implements
16473 to always fail with ENOSYS. Some functions are actually named
16474 something starting with __ and the normal name is an alias. */
16475 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16478 char (*f) () = _doprnt;
16487 return f != _doprnt;
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -s conftest$ac_exeext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_func__doprnt=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_cv_func__doprnt=no
16511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16513 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16514 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16515 if test $ac_cv_func__doprnt = yes; then
16517 cat >>confdefs.h <<\_ACEOF
16518 #define HAVE_DOPRNT 1
16527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16528 # for constant arguments. Useless!
16529 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16530 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16531 if test "${ac_cv_working_alloca_h+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16535 #line $LINENO "configure"
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 #include <alloca.h>
16545 char *p = (char *) alloca (2 * sizeof (int));
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -s conftest$ac_exeext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_working_alloca_h=yes
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 ac_cv_working_alloca_h=no
16569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16571 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16572 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16573 if test $ac_cv_working_alloca_h = yes; then
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_ALLOCA_H 1
16581 echo "$as_me:$LINENO: checking for alloca" >&5
16582 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16583 if test "${ac_cv_func_alloca_works+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 cat >conftest.$ac_ext <<_ACEOF
16587 #line $LINENO "configure"
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16594 # define alloca __builtin_alloca
16597 # include <malloc.h>
16598 # define alloca _alloca
16601 # include <alloca.h>
16606 # ifndef alloca /* predefined by HP cc +Olibcalls */
16617 char *p = (char *) alloca (1);
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_func_alloca_works=yes
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ac_cv_func_alloca_works=no
16641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16643 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16646 if test $ac_cv_func_alloca_works = yes; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_ALLOCA 1
16653 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16654 # that cause trouble. Some versions do not even contain alloca or
16655 # contain a buggy version. If you still want to use their alloca,
16656 # use ar to extract alloca.o from them instead of compiling alloca.c.
16658 ALLOCA=alloca.$ac_objext
16660 cat >>confdefs.h <<\_ACEOF
16665 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16666 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16667 if test "${ac_cv_os_cray+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 #if defined(CRAY) && ! defined(CRAY2)
16684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16685 $EGREP "webecray" >/dev/null 2>&1; then
16693 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16694 echo "${ECHO_T}$ac_cv_os_cray" >&6
16695 if test $ac_cv_os_cray = yes; then
16696 for ac_func in _getb67 GETB67 getb67; do
16697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16698 echo "$as_me:$LINENO: checking for $ac_func" >&5
16699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16700 if eval "test \"\${$as_ac_var+set}\" = set"; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 cat >conftest.$ac_ext <<_ACEOF
16704 #line $LINENO "configure"
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 /* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func (); below.
16712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713 <limits.h> exists even on freestanding compilers. */
16715 # include <limits.h>
16717 # include <assert.h>
16719 /* Override any gcc2 internal prototype to avoid an error. */
16724 /* We use char because int might match the return type of a gcc2
16725 builtin and then its argument prototype would still apply. */
16727 /* The GNU C library defines this for functions which it implements
16728 to always fail with ENOSYS. Some functions are actually named
16729 something starting with __ and the normal name is an alias. */
16730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16733 char (*f) () = $ac_func;
16742 return f != $ac_func;
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749 (eval $ac_link) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -s conftest$ac_exeext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 eval "$as_ac_var=yes"
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 eval "$as_ac_var=no"
16766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16770 if test `eval echo '${'$as_ac_var'}'` = yes; then
16772 cat >>confdefs.h <<_ACEOF
16773 #define CRAY_STACKSEG_END $ac_func
16782 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16783 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16784 if test "${ac_cv_c_stack_direction+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 if test "$cross_compiling" = yes; then
16788 ac_cv_c_stack_direction=0
16790 cat >conftest.$ac_ext <<_ACEOF
16791 #line $LINENO "configure"
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16798 find_stack_direction ()
16800 static char *addr = 0;
16805 return find_stack_direction ();
16808 return (&dummy > addr) ? 1 : -1;
16814 exit (find_stack_direction () < 0);
16817 rm -f conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_cv_c_stack_direction=1
16830 echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ( exit $ac_status )
16835 ac_cv_c_stack_direction=-1
16837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16840 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16841 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16843 cat >>confdefs.h <<_ACEOF
16844 #define STACK_DIRECTION $ac_cv_c_stack_direction
16850 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16851 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16852 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16853 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 ac_check_lib_save_LIBS=$LIBS
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16866 /* Override any gcc2 internal prototype to avoid an error. */
16870 /* We use char because int might match the return type of a gcc2
16871 builtin and then its argument prototype would still apply. */
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883 (eval $ac_link) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -s conftest$ac_exeext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_lib_sun_getmntent=yes
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_cv_lib_sun_getmntent=no
16900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16901 LIBS=$ac_check_lib_save_LIBS
16903 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16904 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16905 if test $ac_cv_lib_sun_getmntent = yes; then
16908 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16909 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16910 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 ac_check_lib_save_LIBS=$LIBS
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line $LINENO "configure"
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16923 /* Override any gcc2 internal prototype to avoid an error. */
16927 /* We use char because int might match the return type of a gcc2
16928 builtin and then its argument prototype would still apply. */
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -s conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_lib_seq_getmntent=yes
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_cv_lib_seq_getmntent=no
16957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16960 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16961 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16962 if test $ac_cv_lib_seq_getmntent = yes; then
16965 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16966 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16967 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 ac_check_lib_save_LIBS=$LIBS
16972 cat >conftest.$ac_ext <<_ACEOF
16973 #line $LINENO "configure"
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16980 /* Override any gcc2 internal prototype to avoid an error. */
16984 /* We use char because int might match the return type of a gcc2
16985 builtin and then its argument prototype would still apply. */
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -s conftest$ac_exeext'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; }; then
17007 ac_cv_lib_gen_getmntent=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_cv_lib_gen_getmntent=no
17014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17015 LIBS=$ac_check_lib_save_LIBS
17017 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17018 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17019 if test $ac_cv_lib_gen_getmntent = yes; then
17028 for ac_func in getmntent
17030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 echo "$as_me:$LINENO: checking for $ac_func" >&5
17032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17033 if eval "test \"\${$as_ac_var+set}\" = set"; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17037 #line $LINENO "configure"
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 /* System header to define __stub macros and hopefully few prototypes,
17044 which can conflict with char $ac_func (); below.
17045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17046 <limits.h> exists even on freestanding compilers. */
17048 # include <limits.h>
17050 # include <assert.h>
17052 /* Override any gcc2 internal prototype to avoid an error. */
17057 /* We use char because int might match the return type of a gcc2
17058 builtin and then its argument prototype would still apply. */
17060 /* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17066 char (*f) () = $ac_func;
17075 return f != $ac_func;
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -s conftest$ac_exeext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 eval "$as_ac_var=yes"
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 eval "$as_ac_var=no"
17099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17103 if test `eval echo '${'$as_ac_var'}'` = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17112 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17113 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17114 if test "${ac_cv_func_closedir_void+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 if test "$cross_compiling" = yes; then
17118 ac_cv_func_closedir_void=yes
17120 cat >conftest.$ac_ext <<_ACEOF
17121 #line $LINENO "configure"
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 $ac_includes_default
17128 #include <$ac_header_dirent>
17129 #ifndef __cplusplus
17136 exit (closedir (opendir (".")) != 0);
17141 rm -f conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_cv_func_closedir_void=no
17154 echo "$as_me: program exited with status $ac_status" >&5
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ( exit $ac_status )
17159 ac_cv_func_closedir_void=yes
17161 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17164 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17165 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17166 if test $ac_cv_func_closedir_void = yes; then
17168 cat >>confdefs.h <<\_ACEOF
17169 #define CLOSEDIR_VOID 1
17174 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17175 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17176 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 if test "$cross_compiling" = yes; then
17180 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17181 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17182 { (exit 1); exit 1; }; }
17184 cat >conftest.$ac_ext <<_ACEOF
17185 #line $LINENO "configure"
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 # include <unistd.h>
17198 /* If this system has a BSD-style setpgrp which takes arguments,
17199 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17200 exit successfully. */
17201 exit (setpgrp (1,1) == -1 ? 0 : 1);
17206 rm -f conftest$ac_exeext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208 (eval $ac_link) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_cv_func_setpgrp_void=no
17219 echo "$as_me: program exited with status $ac_status" >&5
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ( exit $ac_status )
17224 ac_cv_func_setpgrp_void=yes
17226 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17229 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17230 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17231 if test $ac_cv_func_setpgrp_void = yes; then
17233 cat >>confdefs.h <<\_ACEOF
17234 #define SETPGRP_VOID 1
17238 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17239 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17240 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 # Some versions of Solaris, SCO, and the GNU C Library
17244 # have a broken or incompatible fnmatch.
17245 # So we run a test program. If we are cross-compiling, take no chance.
17246 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17247 if test "$cross_compiling" = yes; then
17248 ac_cv_func_fnmatch_works=cross
17250 cat >conftest.$ac_ext <<_ACEOF
17251 #line $LINENO "configure"
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <fnmatch.h>
17258 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17259 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17265 (!(y ("a*", "abc", 0)
17266 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17267 && y ("a\\\\bc", "abc", 0)
17268 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17269 && y ("*x", ".x", 0)
17270 && n ("*x", ".x", FNM_PERIOD)
17276 rm -f conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_func_fnmatch_works=yes
17289 echo "$as_me: program exited with status $ac_status" >&5
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ( exit $ac_status )
17294 ac_cv_func_fnmatch_works=no
17296 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17299 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17300 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17301 if test $ac_cv_func_fnmatch_works = yes; then
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_FNMATCH 1
17313 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17314 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17315 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-lxpg4 $LIBS"
17320 cat >conftest.$ac_ext <<_ACEOF
17321 #line $LINENO "configure"
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17328 /* Override any gcc2 internal prototype to avoid an error. */
17332 /* We use char because int might match the return type of a gcc2
17333 builtin and then its argument prototype would still apply. */
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345 (eval $ac_link) 2>&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -s conftest$ac_exeext'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_lib_xpg4_setlocale=yes
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_lib_xpg4_setlocale=no
17362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17363 LIBS=$ac_check_lib_save_LIBS
17365 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17366 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17367 if test $ac_cv_lib_xpg4_setlocale = yes; then
17368 LIBS="$LIBS -lxpg4"
17374 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17375 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17376 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 ac_check_lib_save_LIBS=$LIBS
17381 cat >conftest.$ac_ext <<_ACEOF
17382 #line $LINENO "configure"
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17389 /* Override any gcc2 internal prototype to avoid an error. */
17393 /* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406 (eval $ac_link) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_cv_lib_sun_getpwnam=yes
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_lib_sun_getpwnam=no
17423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17426 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17427 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17428 if test $ac_cv_lib_sun_getpwnam = yes; then
17429 cat >>confdefs.h <<_ACEOF
17430 #define HAVE_LIBSUN 1
17439 for ac_header in zlib.h
17441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17443 echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17451 # Is the header compilable?
17452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17454 cat >conftest.$ac_ext <<_ACEOF
17455 #line $LINENO "configure"
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <$ac_header>
17464 rm -f conftest.$ac_objext
17465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17466 (eval $ac_compile) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_header_compiler=yes
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_header_compiler=no
17483 rm -f conftest.$ac_objext conftest.$ac_ext
17484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17485 echo "${ECHO_T}$ac_header_compiler" >&6
17487 # Is the header present?
17488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17490 cat >conftest.$ac_ext <<_ACEOF
17491 #line $LINENO "configure"
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <$ac_header>
17499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } >/dev/null; then
17507 if test -s conftest.err; then
17508 ac_cpp_err=$ac_c_preproc_warn_flag
17515 if test -z "$ac_cpp_err"; then
17516 ac_header_preproc=yes
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_header_preproc=no
17523 rm -f conftest.err conftest.$ac_ext
17524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17525 echo "${ECHO_T}$ac_header_preproc" >&6
17527 # So? What about this header?
17528 case $ac_header_compiler:$ac_header_preproc in
17530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17536 ## ------------------------------------ ##
17537 ## Report this to bug-autoconf@gnu.org. ##
17538 ## ------------------------------------ ##
17541 sed "s/^/$as_me: WARNING: /" >&2
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17552 ## ------------------------------------ ##
17553 ## Report this to bug-autoconf@gnu.org. ##
17554 ## ------------------------------------ ##
17557 sed "s/^/$as_me: WARNING: /" >&2
17560 echo "$as_me:$LINENO: checking for $ac_header" >&5
17561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 eval "$as_ac_Header=$ac_header_preproc"
17567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17580 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17581 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17582 if test "${ac_cv_lib_z_deflate+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 ac_check_lib_save_LIBS=$LIBS
17587 cat >conftest.$ac_ext <<_ACEOF
17588 #line $LINENO "configure"
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17595 /* Override any gcc2 internal prototype to avoid an error. */
17599 /* We use char because int might match the return type of a gcc2
17600 builtin and then its argument prototype would still apply. */
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612 (eval $ac_link) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_z_deflate=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_cv_lib_z_deflate=no
17629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17632 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17633 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17634 if test $ac_cv_lib_z_deflate = yes; then
17639 if test x$FDLIBS = x-lz; then
17640 cat >>confdefs.h <<\_ACEOF
17641 #define HAVE_LIBZ 1
17648 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17649 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17650 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 ac_check_lib_save_LIBS=$LIBS
17654 LIBS="-lpthread $LIBS"
17655 cat >conftest.$ac_ext <<_ACEOF
17656 #line $LINENO "configure"
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17663 /* Override any gcc2 internal prototype to avoid an error. */
17667 /* We use char because int might match the return type of a gcc2
17668 builtin and then its argument prototype would still apply. */
17669 char pthread_create ();
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_lib_pthread_pthread_create=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_lib_pthread_pthread_create=no
17697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_check_lib_save_LIBS
17700 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17701 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17702 if test $ac_cv_lib_pthread_pthread_create = yes; then
17703 PTHREAD_LIB="-lpthread"
17705 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17706 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17707 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-lpthreads $LIBS"
17712 cat >conftest.$ac_ext <<_ACEOF
17713 #line $LINENO "configure"
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17720 /* Override any gcc2 internal prototype to avoid an error. */
17724 /* We use char because int might match the return type of a gcc2
17725 builtin and then its argument prototype would still apply. */
17726 char pthread_create ();
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737 (eval $ac_link) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -s conftest$ac_exeext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 ac_cv_lib_pthreads_pthread_create=yes
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 ac_cv_lib_pthreads_pthread_create=no
17754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17758 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17759 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17760 PTHREAD_LIB="-lpthreads"
17762 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17763 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17764 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_check_lib_save_LIBS=$LIBS
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any gcc2 internal prototype to avoid an error. */
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17783 char pthread_create ();
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_c_r_pthread_create=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_cv_lib_c_r_pthread_create=no
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17815 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17816 if test $ac_cv_lib_c_r_pthread_create = yes; then
17817 PTHREAD_LIB="-lc_r"
17819 echo "$as_me:$LINENO: checking for pthread_create" >&5
17820 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17821 if test "${ac_cv_func_pthread_create+set}" = set; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 /* System header to define __stub macros and hopefully few prototypes,
17832 which can conflict with char pthread_create (); below.
17833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834 <limits.h> exists even on freestanding compilers. */
17836 # include <limits.h>
17838 # include <assert.h>
17840 /* Override any gcc2 internal prototype to avoid an error. */
17845 /* We use char because int might match the return type of a gcc2
17846 builtin and then its argument prototype would still apply. */
17847 char pthread_create ();
17848 /* The GNU C library defines this for functions which it implements
17849 to always fail with ENOSYS. Some functions are actually named
17850 something starting with __ and the normal name is an alias. */
17851 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17854 char (*f) () = pthread_create;
17863 return f != pthread_create;
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -s conftest$ac_exeext'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_cv_func_pthread_create=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17885 ac_cv_func_pthread_create=no
17887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17889 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17890 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17903 cat >>confdefs.h <<\_ACEOF
17909 CFLAGS=${CFLAGS--O}
17910 LDFLAGS=${LDFLAGS--O}
17911 DB_LIBS="${SQL_LFLAGS}"
17913 CPPFLAGS="$CPPFLAGS"
17938 # Finally we set appropriate distribution specific
17939 # variables and defaults
17941 # PFILES are platform specific files
17942 PFILES="platforms/Makefile"
17945 hostname=`uname -n | cut -d '.' -f 1`
17946 case "$DISTNAME" in
17949 PSCMD="ps -e -o pid,comm"
17950 PFILES="${PFILES} \
17951 platforms/aix/Makefile"
17952 TAPEDRIVE="/dev/rmt0.1"
17956 PTHREAD_LIB="-lpthread -lexc"
17957 if test "${CC}" = "gcc" ; then
17964 TAPEDRIVE="/dev/nrmt0"
17967 DISTVER=`uname -a |awk '{print $3}'`
17968 TAPEDRIVE="/dev/nrmt0"
17969 PTHREAD_LIB="-pthread"
17970 CFLAGS="${CFLAGS} -pthread"
17971 PSCMD="ps -x -o pid,command"
17974 PFILES="${PFILES} \
17975 platforms/bsdi/Makefile \
17976 platforms/bsdi/bacula-fd \
17977 platforms/bsdi/bacula-sd \
17978 platforms/bsdi/bacula-dir"
17979 largefile_support="yes"
17982 DISTVER=`uname -a |awk '{print $3}'`
17983 TAPEDRIVE="/dev/nrst0"
17985 WCFLAGS="-mwindows"
17986 WLDFLAGS="-mwindows"
17990 TAPEDRIVE="/dev/nst0"
17991 PSCMD="ps -e -o pid,command"
17992 PFILES="${PFILES} \
17993 platforms/darwin/Makefile"
17996 DISTVER=`cat /etc/debian_version`
17997 TAPEDRIVE="/dev/nrst0"
17998 PSCMD="ps -e -o pid,command"
18001 DISTVER=`uname -a |awk '{print $3}'`
18002 VER=`echo $DISTVER | cut -c 1`
18003 if test x$VER = x4 ; then
18004 PTHREAD_LIB="-pthread"
18005 CFLAGS="${CFLAGS} -pthread"
18009 TAPEDRIVE="/dev/nrsa0"
18010 PSCMD="ps -x -o pid,command"
18011 PFILES="${PFILES} \
18012 platforms/freebsd/Makefile \
18013 platforms/freebsd/bacula-fd \
18014 platforms/freebsd/bacula-sd \
18015 platforms/freebsd/bacula-dir"
18016 largefile_support="yes"
18019 PSCMD="UNIX95=1 ps -e -o pid,comm"
18020 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18022 TAPEDRIVE="/dev/rmt/0hnb"
18026 TAPEDRIVE="/dev/rmt/0cbn"
18027 PSCMD="ps -e -o pid,comm"
18028 PFILES="${PFILES} \
18029 platforms/irix/Makefile \
18030 platforms/irix/bacula-fd \
18031 platforms/irix/bacula-sd \
18032 platforms/irix/bacula-dir"
18035 DISTVER=`uname -a |awk '{print $3}'`
18038 TAPEDRIVE="/dev/nrst0"
18039 PSCMD="ps -a -o pid,command"
18040 PTHREAD_LIB="-pthread"
18041 CFLAGS="${CFLAGS} -pthread"
18044 DISTVER=`uname -a |awk '{print $3}'`
18047 TAPEDRIVE="/dev/nrst0"
18048 PSCMD="ps -a -o pid,command"
18049 PTHREAD_LIB="-pthread"
18050 CFLAGS="${CFLAGS} -pthread"
18051 PFILES="${PFILES} \
18052 platforms/openbsd/Makefile \
18053 platforms/openbsd/bacula-fd \
18054 platforms/openbsd/bacula-sd \
18055 platforms/openbsd/bacula-dir"
18058 if test `cat /etc/redhat-release | grep release |\
18059 cut -f 3 -d ' '`x = "Enterprise"x ; then
18060 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18063 DISTVER=`cat /etc/redhat-release | grep release |\
18066 TAPEDRIVE="/dev/nst0"
18067 PSCMD="ps -e -o pid,command"
18068 PFILES="${PFILES} \
18069 platforms/redhat/Makefile \
18070 platforms/redhat/bacula-fd \
18071 platforms/redhat/bacula-sd \
18072 platforms/redhat/bacula-dir \
18073 platforms/redhat/bacula.spec \
18075 hostname=`hostname -s`
18078 DISTVER=`cat /etc/mandrake-release | grep release |\
18080 TAPEDRIVE="/dev/nst0"
18081 PSCMD="ps -e -o pid,command"
18082 PFILES="${PFILES} \
18083 platforms/mandrake/Makefile \
18084 platforms/mandrake/bacula-fd \
18085 platforms/mandrake/bacula-sd \
18086 platforms/mandrake/bacula-dir \
18087 platforms/mandrake/bacula.spec \
18091 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18092 TAPEDRIVE="/dev/nst0"
18093 PSCMD="ps -e -o pid,command"
18094 PFILES="${PFILES} \
18095 platforms/gentoo/Makefile \
18096 platforms/gentoo/bacula-fd \
18097 platforms/gentoo/bacula-sd \
18098 platforms/gentoo/bacula-dir"
18101 DISTVER=`cat /etc/slackware-version`
18102 TAPEDRIVE="/dev/nst0"
18103 PSCMD="ps -e -o pid,command"
18104 PFILES="${PFILES} \
18105 platforms/slackware/Makefile \
18106 platforms/slackware/rc.bacula-fd \
18107 platforms/slackware/rc.bacula-sd \
18108 platforms/slackware/rc.bacula-dir\
18109 platforms/slackware/functions.bacula"
18113 TAPEDRIVE="/dev/rmt/0cbn"
18114 PSCMD="ps -e -o pid,comm"
18115 PFILES="${PFILES} \
18116 platforms/solaris/Makefile \
18117 platforms/solaris/bacula-fd \
18118 platforms/solaris/bacula-sd \
18119 platforms/solaris/bacula-dir"
18120 if test x$DISTVER = x5.6 ; then
18121 cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_OLD_SOCKOPT 1
18128 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18130 TAPEDRIVE="/dev/nst0"
18131 PSCMD="ps -e -o pid,command"
18132 PFILES="${PFILES} \
18133 platforms/suse/Makefile \
18134 platforms/suse/bacula-fd \
18135 platforms/suse/bacula-sd \
18136 platforms/suse/bacula-dir \
18137 platforms/suse/bacula \
18138 platforms/suse/bacula.spec"
18143 TAPEDRIVE="/dev/nst0"
18144 PSCMD="ps -e -o pid,command"
18145 PFILES="${PFILES} \
18146 platforms/suse/Makefile \
18147 platforms/suse/bacula-fd \
18148 platforms/suse/bacula-sd \
18149 platforms/suse/bacula-dir"
18153 TAPEDRIVE="/dev/nst0"
18156 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18162 LIBS="$PTHREAD_LIB $LIBS"
18164 cat >>confdefs.h <<_ACEOF
18168 cat >>confdefs.h <<_ACEOF
18178 MCOMMON=./autoconf/Make.common
18181 if test "x${subsysdir}" = "x${sbindir}" ; then
18184 echo "You have set both --sbindir and --with-subsys-dir"
18185 echo " equal to: ${subsysdir} "
18186 echo "This is not permitted. Please reconfigure."
18188 echo "Aborting configuration ..."
18194 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"
18195 ac_config_commands="$ac_config_commands default"
18196 cat >confcache <<\_ACEOF
18197 # This file is a shell script that caches the results of configure
18198 # tests run on this system so they can be shared between configure
18199 # scripts and configure runs, see configure's option --config-cache.
18200 # It is not useful on other systems. If it contains results you don't
18201 # want to keep, you may remove or edit it.
18203 # config.status only pays attention to the cache file if you give it
18204 # the --recheck option to rerun configure.
18206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18208 # following values.
18212 # The following way of writing the cache mishandles newlines in values,
18213 # but we know of no workaround that is simple, portable, and efficient.
18214 # So, don't put newlines in cache variables' values.
18215 # Ultrix sh set writes to stderr and can't be redirected directly,
18216 # and sets the high bit in the cache file unless we assign to the vars.
18219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18221 # `set' does not quote correctly, so add quotes (double-quote
18222 # substitution turns \\\\ into \\, and sed turns \\ into \).
18225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18228 # `set' quotes correctly as required by POSIX, so do not add quotes.
18230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18239 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18241 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18242 if test -w $cache_file; then
18243 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18244 cat confcache >$cache_file
18246 echo "not updating unwritable cache $cache_file"
18251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18252 # Let make expand exec_prefix.
18253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18255 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18256 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18257 # trailing colons and then remove the whole line if VPATH becomes empty
18258 # (actually we leave an empty line to preserve line numbers).
18259 if test "x$srcdir" = x.; then
18260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18261 s/:*\$(srcdir):*/:/;
18262 s/:*\${srcdir}:*/:/;
18264 s/^\([^=]*=[ ]*\):*/\1/;
18270 DEFS=-DHAVE_CONFIG_H
18274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18275 # 1. Remove the extension, and $U if already installed.
18276 ac_i=`echo "$ac_i" |
18277 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18279 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18280 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18282 LIBOBJS=$ac_libobjs
18284 LTLIBOBJS=$ac_ltlibobjs
18288 : ${CONFIG_STATUS=./config.status}
18289 ac_clean_files_save=$ac_clean_files
18290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18293 cat >$CONFIG_STATUS <<_ACEOF
18295 # Generated by $as_me.
18296 # Run this file to recreate the current configuration.
18297 # Compiler output produced by configure, useful for debugging
18298 # configure, is in config.log if it exists.
18301 ac_cs_recheck=false
18303 SHELL=\${CONFIG_SHELL-$SHELL}
18306 cat >>$CONFIG_STATUS <<\_ACEOF
18307 ## --------------------- ##
18308 ## M4sh Initialization. ##
18309 ## --------------------- ##
18311 # Be Bourne compatible
18312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18315 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18316 # is contrary to our usage. Disable this feature.
18317 alias -g '${1+"$@"}'='"$@"'
18318 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18322 # Support unset when possible.
18323 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18330 # Work around bugs in pre-3.0 UWIN ksh.
18331 $as_unset ENV MAIL MAILPATH
18338 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18339 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18340 LC_TELEPHONE LC_TIME
18342 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18343 eval $as_var=C; export $as_var
18349 # Required to use basename.
18350 if expr a : '\(a\)' >/dev/null 2>&1; then
18356 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18357 as_basename=basename
18363 # Name of the executable.
18364 as_me=`$as_basename "$0" ||
18365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18366 X"$0" : 'X\(//\)$' \| \
18367 X"$0" : 'X\(/\)$' \| \
18368 . : '\(.\)' 2>/dev/null ||
18370 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18371 /^X\/\(\/\/\)$/{ s//\1/; q; }
18372 /^X\/\(\/\).*/{ s//\1/; q; }
18376 # PATH needs CR, and LINENO needs CR and PATH.
18377 # Avoid depending upon Character Ranges.
18378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18381 as_cr_digits='0123456789'
18382 as_cr_alnum=$as_cr_Letters$as_cr_digits
18384 # The user is always right.
18385 if test "${PATH_SEPARATOR+set}" != set; then
18386 echo "#! /bin/sh" >conf$$.sh
18387 echo "exit 0" >>conf$$.sh
18389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18398 as_lineno_1=$LINENO
18399 as_lineno_2=$LINENO
18400 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18401 test "x$as_lineno_1" != "x$as_lineno_2" &&
18402 test "x$as_lineno_3" = "x$as_lineno_2" || {
18403 # Find who we are. Look in the path if we contain no path at all
18406 *[\\/]* ) as_myself=$0 ;;
18407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408 for as_dir in $PATH
18411 test -z "$as_dir" && as_dir=.
18412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18417 # We did not find ourselves, most probably we were run as `sh COMMAND'
18418 # in which case we are not to be found in the path.
18419 if test "x$as_myself" = x; then
18422 if test ! -f "$as_myself"; then
18423 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18424 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18425 { (exit 1); exit 1; }; }
18427 case $CONFIG_SHELL in
18429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18430 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18433 test -z "$as_dir" && as_dir=.
18434 for as_base in sh bash ksh sh5; do
18437 if ("$as_dir/$as_base" -c '
18438 as_lineno_1=$LINENO
18439 as_lineno_2=$LINENO
18440 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18441 test "x$as_lineno_1" != "x$as_lineno_2" &&
18442 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18443 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18444 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18445 CONFIG_SHELL=$as_dir/$as_base
18446 export CONFIG_SHELL
18447 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18455 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18456 # uniformly replaced by the line number. The first 'sed' inserts a
18457 # line-number line before each line; the second 'sed' does the real
18458 # work. The second script uses 'N' to pair each line-number line
18459 # with the numbered line, and appends trailing '-' during
18460 # substitution so that $LINENO is not a special case at line end.
18461 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18462 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18463 sed '=' <$as_myself |
18468 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18471 s,^['$as_cr_digits']*\n,,
18472 ' >$as_me.lineno &&
18473 chmod +x $as_me.lineno ||
18474 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18475 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18476 { (exit 1); exit 1; }; }
18478 # Don't try to exec as it changes $[0], causing all sort of problems
18479 # (the dirname of $[0] is not the place where we might find the
18480 # original and so on. Autoconf is especially sensible to this).
18482 # Exit status is that of the last command.
18487 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18488 *c*,-n*) ECHO_N= ECHO_C='
18490 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18491 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18494 if expr a : '\(a\)' >/dev/null 2>&1; then
18500 rm -f conf$$ conf$$.exe conf$$.file
18502 if ln -s conf$$.file conf$$ 2>/dev/null; then
18503 # We could just check for DJGPP; but this test a) works b) is more generic
18504 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18505 if test -f conf$$.exe; then
18506 # Don't use ln at all; we don't have any links
18511 elif ln conf$$.file conf$$ 2>/dev/null; then
18516 rm -f conf$$ conf$$.exe conf$$.file
18518 if mkdir -p . 2>/dev/null; then
18524 as_executable_p="test -f"
18526 # Sed expression to map a string onto a valid CPP name.
18527 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18529 # Sed expression to map a string onto a valid variable name.
18530 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18534 # We need space, tab and new line, in precisely that order.
18544 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18545 # report actual input values of CONFIG_FILES etc. instead of their
18546 # values after options handling. Logging --version etc. is OK.
18550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18551 ## Running $as_me. ##
18556 This file was extended by $as_me, which was
18557 generated by GNU Autoconf 2.57. Invocation command line was
18559 CONFIG_FILES = $CONFIG_FILES
18560 CONFIG_HEADERS = $CONFIG_HEADERS
18561 CONFIG_LINKS = $CONFIG_LINKS
18562 CONFIG_COMMANDS = $CONFIG_COMMANDS
18566 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18570 # Files that config.status was made for.
18571 if test -n "$ac_config_files"; then
18572 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18575 if test -n "$ac_config_headers"; then
18576 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18579 if test -n "$ac_config_links"; then
18580 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18583 if test -n "$ac_config_commands"; then
18584 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18587 cat >>$CONFIG_STATUS <<\_ACEOF
18590 \`$as_me' instantiates files from templates according to the
18591 current configuration.
18593 Usage: $0 [OPTIONS] [FILE]...
18595 -h, --help print this help, then exit
18596 -V, --version print version number, then exit
18597 -q, --quiet do not print progress messages
18598 -d, --debug don't remove temporary files
18599 --recheck update $as_me by reconfiguring in the same conditions
18600 --file=FILE[:TEMPLATE]
18601 instantiate the configuration file FILE
18602 --header=FILE[:TEMPLATE]
18603 instantiate the configuration header FILE
18605 Configuration files:
18608 Configuration headers:
18611 Configuration commands:
18614 Report bugs to <bug-autoconf@gnu.org>."
18617 cat >>$CONFIG_STATUS <<_ACEOF
18620 configured by $0, generated by GNU Autoconf 2.57,
18621 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18623 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18624 Free Software Foundation, Inc.
18625 This config.status script is free software; the Free Software Foundation
18626 gives unlimited permission to copy, distribute and modify it."
18631 cat >>$CONFIG_STATUS <<\_ACEOF
18632 # If no file are specified by the user, then we need to provide default
18633 # value. By we need to know if files were specified by the user.
18639 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18640 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18648 *) # This is not an option, so the user has probably given explicit
18651 ac_need_defaults=false;;
18655 # Handling of the options.
18657 cat >>$CONFIG_STATUS <<\_ACEOF
18658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18660 --version | --vers* | -V )
18661 echo "$ac_cs_version"; exit 0 ;;
18663 # Conflict between --help and --header
18664 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18665 Try \`$0 --help' for more information." >&5
18666 echo "$as_me: error: ambiguous option: $1
18667 Try \`$0 --help' for more information." >&2;}
18668 { (exit 1); exit 1; }; };;
18669 --help | --hel | -h )
18670 echo "$ac_cs_usage"; exit 0 ;;
18671 --debug | --d* | -d )
18673 --file | --fil | --fi | --f )
18675 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18676 ac_need_defaults=false;;
18677 --header | --heade | --head | --hea )
18679 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18680 ac_need_defaults=false;;
18681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18685 # This is an error.
18686 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18687 Try \`$0 --help' for more information." >&5
18688 echo "$as_me: error: unrecognized option: $1
18689 Try \`$0 --help' for more information." >&2;}
18690 { (exit 1); exit 1; }; } ;;
18692 *) ac_config_targets="$ac_config_targets $1" ;;
18698 ac_configure_extra_args=
18700 if $ac_cs_silent; then
18702 ac_configure_extra_args="$ac_configure_extra_args --silent"
18706 cat >>$CONFIG_STATUS <<_ACEOF
18707 if \$ac_cs_recheck; then
18708 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18709 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18718 cat >>$CONFIG_STATUS <<\_ACEOF
18719 for ac_config_target in $ac_config_targets
18721 case "$ac_config_target" in
18722 # Handling of arguments.
18723 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18724 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18725 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18726 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18727 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18728 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18729 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18730 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18731 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18732 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18733 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18734 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18735 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18736 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18737 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18738 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18739 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18740 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18741 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18742 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18743 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18744 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18745 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18746 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18747 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18748 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18749 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18750 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18751 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18752 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18753 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18754 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18755 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18756 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18757 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18758 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18759 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18760 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18761 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18762 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18763 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18764 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18765 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18766 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18767 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18768 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18769 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18770 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18771 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18772 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18773 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18774 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18775 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18776 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18777 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18778 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18779 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18780 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18781 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18782 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18783 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18784 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18785 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18786 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18787 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18788 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18789 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18790 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18791 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18792 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18793 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18794 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18795 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18796 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18797 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18798 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18799 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18800 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18801 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18802 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18803 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18804 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18805 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18806 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18807 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18808 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18809 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18810 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18811 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18812 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18815 { (exit 1); exit 1; }; };;
18819 # If the user did not use the arguments to specify the items to instantiate,
18820 # then the envvar interface is used. Set only those that are not.
18821 # We use the long form for the default assignment because of an extremely
18822 # bizarre bug on SunOS 4.1.3.
18823 if $ac_need_defaults; then
18824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18829 # Have a temporary directory for convenience. Make it in the build tree
18830 # simply because there is no reason to put it here, and in addition,
18831 # creating and moving files from /tmp can sometimes cause problems.
18832 # Create a temporary directory, and hook for its removal unless debugging.
18835 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18836 trap '{ (exit 1); exit 1; }' 1 2 13 15
18839 # Create a (secure) tmp directory for tmp files.
18842 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18843 test -n "$tmp" && test -d "$tmp"
18846 tmp=./confstat$$-$RANDOM
18847 (umask 077 && mkdir $tmp)
18850 echo "$me: cannot create a temporary directory in ." >&2
18851 { (exit 1); exit 1; }
18856 cat >>$CONFIG_STATUS <<_ACEOF
18859 # CONFIG_FILES section.
18862 # No need to generate the scripts if there are no CONFIG_FILES.
18863 # This happens for instance when ./config.status config.h
18864 if test -n "\$CONFIG_FILES"; then
18865 # Protect against being on the right side of a sed subst in config.status.
18866 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18867 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18868 s,@SHELL@,$SHELL,;t t
18869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18875 s,@exec_prefix@,$exec_prefix,;t t
18876 s,@prefix@,$prefix,;t t
18877 s,@program_transform_name@,$program_transform_name,;t t
18878 s,@bindir@,$bindir,;t t
18879 s,@sbindir@,$sbindir,;t t
18880 s,@libexecdir@,$libexecdir,;t t
18881 s,@datadir@,$datadir,;t t
18882 s,@sysconfdir@,$sysconfdir,;t t
18883 s,@sharedstatedir@,$sharedstatedir,;t t
18884 s,@localstatedir@,$localstatedir,;t t
18885 s,@libdir@,$libdir,;t t
18886 s,@includedir@,$includedir,;t t
18887 s,@oldincludedir@,$oldincludedir,;t t
18888 s,@infodir@,$infodir,;t t
18889 s,@mandir@,$mandir,;t t
18890 s,@build_alias@,$build_alias,;t t
18891 s,@host_alias@,$host_alias,;t t
18892 s,@target_alias@,$target_alias,;t t
18893 s,@DEFS@,$DEFS,;t t
18894 s,@ECHO_C@,$ECHO_C,;t t
18895 s,@ECHO_N@,$ECHO_N,;t t
18896 s,@ECHO_T@,$ECHO_T,;t t
18897 s,@LIBS@,$LIBS,;t t
18898 s,@BUILD_DIR@,$BUILD_DIR,;t t
18899 s,@TRUEPRG@,$TRUEPRG,;t t
18900 s,@FALSEPRG@,$FALSEPRG,;t t
18901 s,@VERSION@,$VERSION,;t t
18902 s,@DATE@,$DATE,;t t
18903 s,@LSMDATE@,$LSMDATE,;t t
18905 s,@CFLAGS@,$CFLAGS,;t t
18906 s,@LDFLAGS@,$LDFLAGS,;t t
18907 s,@CPPFLAGS@,$CPPFLAGS,;t t
18908 s,@ac_ct_CC@,$ac_ct_CC,;t t
18909 s,@EXEEXT@,$EXEEXT,;t t
18910 s,@OBJEXT@,$OBJEXT,;t t
18912 s,@CXXFLAGS@,$CXXFLAGS,;t t
18913 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18915 s,@EGREP@,$EGREP,;t t
18916 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18917 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18918 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18919 s,@RANLIB@,$RANLIB,;t t
18920 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18926 s,@ECHO@,$ECHO,;t t
18930 s,@OPENSSL@,$OPENSSL,;t t
18932 s,@PKGCONFIG@,$PKGCONFIG,;t t
18933 s,@WXCONFIG@,$WXCONFIG,;t t
18934 s,@ARFLAGS@,$ARFLAGS,;t t
18935 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18936 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18937 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18938 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18939 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18940 s,@build@,$build,;t t
18941 s,@build_cpu@,$build_cpu,;t t
18942 s,@build_vendor@,$build_vendor,;t t
18943 s,@build_os@,$build_os,;t t
18944 s,@host@,$host,;t t
18945 s,@host_cpu@,$host_cpu,;t t
18946 s,@host_vendor@,$host_vendor,;t t
18947 s,@host_os@,$host_os,;t t
18948 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18949 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18950 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18951 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18952 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18953 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18954 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18955 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18956 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18957 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18958 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18959 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18960 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18961 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18962 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18963 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18964 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18965 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18966 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18967 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18968 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18969 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18970 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18971 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18972 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18973 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18974 s,@MSGFMT@,$MSGFMT,;t t
18975 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18976 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18977 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18978 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18979 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18980 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18981 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18982 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18983 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18984 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18985 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18986 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18987 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18988 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18989 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18990 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18991 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18992 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18993 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18994 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18995 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18996 s,@GNOME_DIR@,$GNOME_DIR,;t t
18997 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
18998 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
18999 s,@WX_DIR@,$WX_DIR,;t t
19000 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19001 s,@STATIC_FD@,$STATIC_FD,;t t
19002 s,@STATIC_SD@,$STATIC_SD,;t t
19003 s,@STATIC_DIR@,$STATIC_DIR,;t t
19004 s,@STATIC_CONS@,$STATIC_CONS,;t t
19005 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19006 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19007 s,@ALL_DIRS@,$ALL_DIRS,;t t
19008 s,@CONS_INC@,$CONS_INC,;t t
19009 s,@CONS_OBJ@,$CONS_OBJ,;t t
19010 s,@CONS_SRC@,$CONS_SRC,;t t
19011 s,@CONS_LIBS@,$CONS_LIBS,;t t
19012 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19013 s,@READLINE_SRC@,$READLINE_SRC,;t t
19014 s,@working_dir@,$working_dir,;t t
19015 s,@scriptdir@,$scriptdir,;t t
19016 s,@dump_email@,$dump_email,;t t
19017 s,@job_email@,$job_email,;t t
19018 s,@smtp_host@,$smtp_host,;t t
19019 s,@piddir@,$piddir,;t t
19020 s,@subsysdir@,$subsysdir,;t t
19021 s,@baseport@,$baseport,;t t
19022 s,@dir_port@,$dir_port,;t t
19023 s,@fd_port@,$fd_port,;t t
19024 s,@sd_port@,$sd_port,;t t
19025 s,@dir_password@,$dir_password,;t t
19026 s,@fd_password@,$fd_password,;t t
19027 s,@sd_password@,$sd_password,;t t
19028 s,@dir_user@,$dir_user,;t t
19029 s,@dir_group@,$dir_group,;t t
19030 s,@sd_user@,$sd_user,;t t
19031 s,@sd_group@,$sd_group,;t t
19032 s,@fd_user@,$fd_user,;t t
19033 s,@fd_group@,$fd_group,;t t
19034 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19035 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19036 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19037 s,@cats@,$cats,;t t
19038 s,@DB_NAME@,$DB_NAME,;t t
19039 s,@GETCONF@,$GETCONF,;t t
19040 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19041 s,@X_CFLAGS@,$X_CFLAGS,;t t
19042 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19043 s,@X_LIBS@,$X_LIBS,;t t
19044 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19045 s,@LIBOBJS@,$LIBOBJS,;t t
19046 s,@ALLOCA@,$ALLOCA,;t t
19047 s,@FDLIBS@,$FDLIBS,;t t
19048 s,@DEBUG@,$DEBUG,;t t
19049 s,@DINCLUDE@,$DINCLUDE,;t t
19050 s,@DLIB@,$DLIB,;t t
19051 s,@DB_LIBS@,$DB_LIBS,;t t
19052 s,@WCFLAGS@,$WCFLAGS,;t t
19053 s,@WLDFLAGS@,$WLDFLAGS,;t t
19054 s,@OBJLIST@,$OBJLIST,;t t
19055 s,@hostname@,$hostname,;t t
19056 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19057 s,@PSCMD@,$PSCMD,;t t
19058 s,@WIN32@,$WIN32,;t t
19059 s,@DISTNAME@,$DISTNAME,;t t
19060 s,@DISTVER@,$DISTVER,;t t
19061 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19062 /@MCOMMON@/r $MCOMMON
19068 cat >>$CONFIG_STATUS <<\_ACEOF
19069 # Split the substitutions into bite-sized pieces for seds with
19070 # small command number limits, like on Digital OSF/1 and HP-UX.
19071 ac_max_sed_lines=48
19072 ac_sed_frag=1 # Number of current file.
19073 ac_beg=1 # First line for current file.
19074 ac_end=$ac_max_sed_lines # Line after last line for current file.
19077 while $ac_more_lines; do
19078 if test $ac_beg -gt 1; then
19079 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19081 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19083 if test ! -s $tmp/subs.frag; then
19084 ac_more_lines=false
19086 # The purpose of the label and of the branching condition is to
19087 # speed up the sed processing (if there are no `@' at all, there
19088 # is no need to browse any of the substitutions).
19089 # These are the two extra sed commands mentioned above.
19091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19092 if test -z "$ac_sed_cmds"; then
19093 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19095 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19097 ac_sed_frag=`expr $ac_sed_frag + 1`
19099 ac_end=`expr $ac_end + $ac_max_sed_lines`
19102 if test -z "$ac_sed_cmds"; then
19105 fi # test -n "$CONFIG_FILES"
19108 cat >>$CONFIG_STATUS <<\_ACEOF
19109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19112 - | *:- | *:-:* ) # input from stdin
19114 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19116 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19118 * ) ac_file_in=$ac_file.in ;;
19121 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19124 X"$ac_file" : 'X\(//\)[^/]' \| \
19125 X"$ac_file" : 'X\(//\)$' \| \
19126 X"$ac_file" : 'X\(/\)' \| \
19127 . : '\(.\)' 2>/dev/null ||
19129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19131 /^X\(\/\/\)$/{ s//\1/; q; }
19132 /^X\(\/\).*/{ s//\1/; q; }
19134 { if $as_mkdir_p; then
19139 while test ! -d "$as_dir"; do
19140 as_dirs="$as_dir $as_dirs"
19141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19143 X"$as_dir" : 'X\(//\)[^/]' \| \
19144 X"$as_dir" : 'X\(//\)$' \| \
19145 X"$as_dir" : 'X\(/\)' \| \
19146 . : '\(.\)' 2>/dev/null ||
19148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19150 /^X\(\/\/\)$/{ s//\1/; q; }
19151 /^X\(\/\).*/{ s//\1/; q; }
19154 test ! -n "$as_dirs" || mkdir $as_dirs
19155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19157 { (exit 1); exit 1; }; }; }
19161 if test "$ac_dir" != .; then
19162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19163 # A "../" for each directory in $ac_dir_suffix.
19164 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19166 ac_dir_suffix= ac_top_builddir=
19170 .) # No --srcdir option. We are building in place.
19172 if test -z "$ac_top_builddir"; then
19175 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19177 [\\/]* | ?:[\\/]* ) # Absolute path.
19178 ac_srcdir=$srcdir$ac_dir_suffix;
19179 ac_top_srcdir=$srcdir ;;
19180 *) # Relative path.
19181 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19182 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19184 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19186 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19187 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19188 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19189 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19193 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19194 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19197 if test x"$ac_file" != x-; then
19198 { echo "$as_me:$LINENO: creating $ac_file" >&5
19199 echo "$as_me: creating $ac_file" >&6;}
19202 # Let's still pretend it is `configure' which instantiates (i.e., don't
19203 # use $as_me), people would be surprised to read:
19204 # /* config.h. Generated by config.status. */
19205 if test x"$ac_file" = x-; then
19208 configure_input="$ac_file. "
19210 configure_input=$configure_input"Generated from `echo $ac_file_in |
19211 sed 's,.*/,,'` by configure."
19213 # First look for the input files in the build tree, otherwise in the
19215 ac_file_inputs=`IFS=:
19216 for f in $ac_file_in; do
19218 -) echo $tmp/stdin ;;
19220 # Absolute (can't be DOS-style, as IFS=:)
19221 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19222 echo "$as_me: error: cannot find input file: $f" >&2;}
19223 { (exit 1); exit 1; }; }
19226 if test -f "$f"; then
19229 elif test -f "$srcdir/$f"; then
19234 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19235 echo "$as_me: error: cannot find input file: $f" >&2;}
19236 { (exit 1); exit 1; }; }
19239 done` || { (exit 1); exit 1; }
19241 cat >>$CONFIG_STATUS <<_ACEOF
19245 cat >>$CONFIG_STATUS <<\_ACEOF
19247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19248 s,@configure_input@,$configure_input,;t t
19249 s,@srcdir@,$ac_srcdir,;t t
19250 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19251 s,@top_srcdir@,$ac_top_srcdir,;t t
19252 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19253 s,@builddir@,$ac_builddir,;t t
19254 s,@abs_builddir@,$ac_abs_builddir,;t t
19255 s,@top_builddir@,$ac_top_builddir,;t t
19256 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19257 s,@INSTALL@,$ac_INSTALL,;t t
19258 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19260 if test x"$ac_file" != x-; then
19261 mv $tmp/out $ac_file
19269 cat >>$CONFIG_STATUS <<\_ACEOF
19272 # CONFIG_HEADER section.
19275 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19276 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19278 # ac_d sets the value in "#define NAME VALUE" lines.
19279 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19280 ac_dB='[ ].*$,\1#\2'
19283 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19284 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19285 ac_uB='$,\1#\2define\3'
19289 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19292 - | *:- | *:-:* ) # input from stdin
19294 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19296 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19298 * ) ac_file_in=$ac_file.in ;;
19301 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19302 echo "$as_me: creating $ac_file" >&6;}
19304 # First look for the input files in the build tree, otherwise in the
19306 ac_file_inputs=`IFS=:
19307 for f in $ac_file_in; do
19309 -) echo $tmp/stdin ;;
19311 # Absolute (can't be DOS-style, as IFS=:)
19312 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19313 echo "$as_me: error: cannot find input file: $f" >&2;}
19314 { (exit 1); exit 1; }; }
19317 if test -f "$f"; then
19320 elif test -f "$srcdir/$f"; then
19325 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19326 echo "$as_me: error: cannot find input file: $f" >&2;}
19327 { (exit 1); exit 1; }; }
19330 done` || { (exit 1); exit 1; }
19331 # Remove the trailing spaces.
19332 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19336 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19337 # `conftest.undefs', that substitutes the proper values into
19338 # config.h.in to produce config.h. The first handles `#define'
19339 # templates, and the second `#undef' templates.
19340 # And first: Protect against being on the right side of a sed subst in
19341 # config.status. Protect against being in an unquoted here document
19342 # in config.status.
19343 rm -f conftest.defines conftest.undefs
19344 # Using a here document instead of a string reduces the quoting nightmare.
19345 # Putting comments in sed scripts is not portable.
19347 # `end' is used to avoid that the second main sed command (meant for
19348 # 0-ary CPP macros) applies to n-ary macro definitions.
19349 # See the Autoconf documentation for `clear'.
19350 cat >confdef2sed.sed <<\_ACEOF
19355 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19357 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19360 # If some macros were called several times there might be several times
19361 # the same #defines, which is useless. Nevertheless, we may not want to
19362 # sort them, since we want the *last* AC-DEFINE to be honored.
19363 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19364 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19365 rm -f confdef2sed.sed
19367 # This sed command replaces #undef with comments. This is necessary, for
19368 # example, in the case of _POSIX_SOURCE, which is predefined and required
19369 # on some systems where configure will not decide to define it.
19370 cat >>conftest.undefs <<\_ACEOF
19371 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19374 # Break up conftest.defines because some shells have a limit on the size
19375 # of here documents, and old seds have small limits too (100 cmds).
19376 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19377 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19378 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19379 echo ' :' >>$CONFIG_STATUS
19380 rm -f conftest.tail
19381 while grep . conftest.defines >/dev/null
19383 # Write a limited-size here document to $tmp/defines.sed.
19384 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19385 # Speed up: don't consider the non `#define' lines.
19386 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19387 # Work around the forget-to-reset-the-flag bug.
19388 echo 't clr' >>$CONFIG_STATUS
19389 echo ': clr' >>$CONFIG_STATUS
19390 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19392 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19394 mv $tmp/out $tmp/in
19396 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19397 rm -f conftest.defines
19398 mv conftest.tail conftest.defines
19400 rm -f conftest.defines
19401 echo ' fi # grep' >>$CONFIG_STATUS
19402 echo >>$CONFIG_STATUS
19404 # Break up conftest.undefs because some shells have a limit on the size
19405 # of here documents, and old seds have small limits too (100 cmds).
19406 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19407 rm -f conftest.tail
19408 while grep . conftest.undefs >/dev/null
19410 # Write a limited-size here document to $tmp/undefs.sed.
19411 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19412 # Speed up: don't consider the non `#undef'
19413 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19414 # Work around the forget-to-reset-the-flag bug.
19415 echo 't clr' >>$CONFIG_STATUS
19416 echo ': clr' >>$CONFIG_STATUS
19417 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19419 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19421 mv $tmp/out $tmp/in
19423 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19424 rm -f conftest.undefs
19425 mv conftest.tail conftest.undefs
19427 rm -f conftest.undefs
19429 cat >>$CONFIG_STATUS <<\_ACEOF
19430 # Let's still pretend it is `configure' which instantiates (i.e., don't
19431 # use $as_me), people would be surprised to read:
19432 # /* config.h. Generated by config.status. */
19433 if test x"$ac_file" = x-; then
19434 echo "/* Generated by configure. */" >$tmp/config.h
19436 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19438 cat $tmp/in >>$tmp/config.h
19440 if test x"$ac_file" != x-; then
19441 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19442 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19443 echo "$as_me: $ac_file is unchanged" >&6;}
19445 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19447 X"$ac_file" : 'X\(//\)[^/]' \| \
19448 X"$ac_file" : 'X\(//\)$' \| \
19449 X"$ac_file" : 'X\(/\)' \| \
19450 . : '\(.\)' 2>/dev/null ||
19452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19454 /^X\(\/\/\)$/{ s//\1/; q; }
19455 /^X\(\/\).*/{ s//\1/; q; }
19457 { if $as_mkdir_p; then
19462 while test ! -d "$as_dir"; do
19463 as_dirs="$as_dir $as_dirs"
19464 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19466 X"$as_dir" : 'X\(//\)[^/]' \| \
19467 X"$as_dir" : 'X\(//\)$' \| \
19468 X"$as_dir" : 'X\(/\)' \| \
19469 . : '\(.\)' 2>/dev/null ||
19471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19473 /^X\(\/\/\)$/{ s//\1/; q; }
19474 /^X\(\/\).*/{ s//\1/; q; }
19477 test ! -n "$as_dirs" || mkdir $as_dirs
19478 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19480 { (exit 1); exit 1; }; }; }
19483 mv $tmp/config.h $ac_file
19487 rm -f $tmp/config.h
19491 cat >>$CONFIG_STATUS <<\_ACEOF
19494 # CONFIG_COMMANDS section.
19496 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19497 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19498 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19499 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19500 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19501 X"$ac_dest" : 'X\(//\)[^/]' \| \
19502 X"$ac_dest" : 'X\(//\)$' \| \
19503 X"$ac_dest" : 'X\(/\)' \| \
19504 . : '\(.\)' 2>/dev/null ||
19506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19508 /^X\(\/\/\)$/{ s//\1/; q; }
19509 /^X\(\/\).*/{ s//\1/; q; }
19513 if test "$ac_dir" != .; then
19514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19515 # A "../" for each directory in $ac_dir_suffix.
19516 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19518 ac_dir_suffix= ac_top_builddir=
19522 .) # No --srcdir option. We are building in place.
19524 if test -z "$ac_top_builddir"; then
19527 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19529 [\\/]* | ?:[\\/]* ) # Absolute path.
19530 ac_srcdir=$srcdir$ac_dir_suffix;
19531 ac_top_srcdir=$srcdir ;;
19532 *) # Relative path.
19533 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19534 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19536 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19538 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19539 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19540 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19541 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19544 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19545 echo "$as_me: executing $ac_dest commands" >&6;}
19547 default ) (echo "Doing make of dependencies"; make depend;)
19553 cat >>$CONFIG_STATUS <<\_ACEOF
19555 { (exit 0); exit 0; }
19557 chmod +x $CONFIG_STATUS
19558 ac_clean_files=$ac_clean_files_save
19561 # configure is writing to config.log, and then calls config.status.
19562 # config.status does its own redirection, appending to config.log.
19563 # Unfortunately, on DOS this fails, as config.log is still kept open
19564 # by configure, so config.status won't be able to write to it; its
19565 # output is simply discarded. So we exec the FD to /dev/null,
19566 # effectively closing config.log, so it can be properly (re)opened and
19567 # appended to by config.status. When coming back to configure, we
19568 # need to make the FD available again.
19569 if test "$no_create" != yes; then
19571 ac_config_status_args=
19572 test "$silent" = yes &&
19573 ac_config_status_args="$ac_config_status_args --quiet"
19575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19578 # would make configure fail if this is the last instruction.
19579 $ac_cs_success || { (exit 1); exit 1; }
19584 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19585 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19590 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19591 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19593 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19594 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19596 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19597 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19599 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19600 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19602 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19603 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19605 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19606 chmod 755 $c/sqlite
19609 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19610 largefile_support="yes"
19614 # A whole lot of hand springs to get the compiler version.
19615 # This is because gcc changed the output in version 3.0
19617 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19618 if test "x${CCVERSION}" = "x" ; then
19619 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19621 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19622 if test x"${CXXVERSION}" = x ; then
19623 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19626 if test "x${subsysdir}" = "x${sbindir}" ; then
19629 echo "You have set --sbindir and --with-subsys-dir"
19630 echo " both equal to: ${subsysdir} "
19631 echo " This is not permitted. Please reconfigure."
19632 echo "Aborting configuration ..."
19639 Configuration on `date`:
19641 Host: $host -- ${DISTNAME} ${DISTVER}
19642 Bacula version: ${VERSION} (${DATE})
19643 Source code location: ${srcdir}
19644 Install binaries: ${sbindir}
19645 Install config files: ${sysconfdir}
19646 Scripts directory: ${scriptdir}
19647 Working directory: ${working_dir}
19648 PID directory: ${piddir}
19649 Subsys directory: ${subsysdir}
19650 C Compiler: ${CC} ${CCVERSION}
19651 C++ Compiler: ${CXX} ${CXXVERSION}
19652 Compiler flags: ${WCFLAGS} ${CFLAGS}
19653 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19655 Statically Linked Tools: ${support_static_tools}
19656 Statically Linked FD: ${support_static_fd}
19657 Statically Linked SD: ${support_static_sd}
19658 Statically Linked DIR: ${support_static_dir}
19659 Statically Linked CONS: ${support_static_cons}
19660 Database type: ${db_name}
19661 Database lib: ${DB_LIBS}
19663 Job Output Email: ${job_email}
19664 Traceback Email: ${dump_email}
19665 SMTP Host Address: ${smtp_host}
19667 Director Port: ${dir_port}
19668 File daemon Port: ${fd_port}
19669 Storage daemon Port: ${sd_port}
19671 Director User: ${dir_user}
19672 Director Group: ${dir_group}
19673 Storage Daemon User: ${sd_user}
19674 Storage DaemonGroup: ${sd_group}
19675 File Daemon User: ${fd_user}
19676 File Daemon Group: ${fd_group}
19678 SQL binaries Directory ${SQL_BINDIR}
19680 Large file support: $largefile_support
19681 Bacula conio support: ${got_conio} ${CONS_LIBS}
19682 readline support: ${got_readline} ${PRTREADLINE_SRC}
19683 TCP Wrappers support: ${TCPW_MSG}
19684 ZLIB support: ${have_zlib}
19685 enable-smartalloc: ${support_smartalloc}
19686 enable-gnome: ${support_gnome} ${gnome_version}
19687 enable-wx-console: ${support_wx_console}
19688 client-only: ${build_client_only}
19695 # cweb support: ${got_cweb} ${CWEB_SRC}
19696 # gmp support: ${got_gmp} ${GMP_SRC}