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 TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC 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 SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
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-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-dir-user=USER specify user for Director daemon
894 --with-dir-group=GROUP specify group for Director daemon
895 --with-sd-user=USER specify user for Storage daemon
896 --with-sd-group=GROUP specify group for Storage daemon
897 --with-fd-user=USER specify user for File daemon
898 --with-fd-group=GROUP specify group for File daemon
899 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
900 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
901 base install directory, defaults to /usr/local/pgsql
903 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
904 install directory, default is to search through
905 a number of common places for the MySQL files.
907 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
908 install directory, default is to search through
909 a number of common places for the MySQL files.
911 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
912 install directory, default is to search through
913 a number of common places for the SQLite files.
914 --with-x use the X Window System
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CXX C++ compiler command
924 CXXFLAGS C++ compiler flags
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core core.* *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340 if test -f $ac_dir/install-sh; then
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 elif test -f $ac_dir/install.sh; then
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 elif test -f $ac_dir/shtool; then
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1402 if test -n "$TRUEPRG"; then
1403 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 test -n "$TRUEPRG" && break
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1414 for ac_prog in false
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1447 if test -n "$FALSEPRG"; then
1448 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 test -n "$FALSEPRG" && break
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1462 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1465 echo "configuring for bacula $VERSION ($DATE)"
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 if test -n "$CC"; then
1503 echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1511 if test -z "$ac_cv_prog_CC"; then
1513 # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$ac_ct_CC"; then
1521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_ac_ct_CC="gcc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1553 if test -z "$CC"; then
1554 if test -n "$ac_tool_prefix"; then
1555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_CC="${ac_tool_prefix}cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1591 if test -z "$ac_cv_prog_CC"; then
1593 # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$ac_ct_CC"; then
1601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_ac_ct_CC="cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1634 if test -z "$CC"; then
1635 # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654 ac_prog_rejected=yes
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 if test $ac_prog_rejected = yes; then
1665 # We found a bogon in the path, so make sure we never use it.
1666 set dummy $ac_cv_prog_CC
1668 if test $# != 0; then
1669 # We chose a different compiler from the bogus one.
1670 # However, it has the same basename, so the bogon will be chosen
1671 # first if we set CC to just the basename; use the full file name.
1673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 if test -n "$ac_tool_prefix"; then
1692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 if test -n "$CC"; then
1720 echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1727 test -n "$CC" && break
1730 if test -z "$CC"; then
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$ac_ct_CC"; then
1742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_ac_ct_CC="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$ac_ct_CC" && break
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782 { (exit 1); exit 1; }; }
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786 "checking for C compiler version" >&5
1787 ac_compiler=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789 (eval $ac_compiler --version </dev/null >&5) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794 (eval $ac_compiler -v </dev/null >&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799 (eval $ac_compiler -V </dev/null >&5) 2>&5
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h. */
1820 ac_clean_files_save=$ac_clean_files
1821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1822 # Try to create an executable without -o first, disregard a.out.
1823 # It will help us diagnose broken compilers, and finding out an intuition
1825 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1826 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1829 (eval $ac_link_default) 2>&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); }; then
1833 # Find the output, starting from the most likely. This scheme is
1834 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837 # Be careful to initialize this variable, since it used to be cached.
1838 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1840 # b.out is created by i960 compilers.
1841 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1843 test -f "$ac_file" || continue
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1848 # This is the source file.
1851 # We found the default executable, but exeext='' is most
1855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 # FIXME: I believe we export ac_cv_exeext for Libtool,
1857 # but it would be cool to find out if it's true. Does anybody
1858 # maintain Libtool? --akim.
1866 echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&2;}
1873 { (exit 77); exit 77; }; }
1876 ac_exeext=$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_file" >&5
1878 echo "${ECHO_T}$ac_file" >&6
1880 # Check the compiler produces executables we can run. If not, either
1881 # the compiler is broken, or we cross compile.
1882 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1885 # If not cross compiling, check that we can run a simple program.
1886 if test "$cross_compiling" != yes; then
1887 if { ac_try='./$ac_file'
1888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; }; then
1895 if test "$cross_compiling" = maybe; then
1898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1908 echo "$as_me:$LINENO: result: yes" >&5
1909 echo "${ECHO_T}yes" >&6
1911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1912 ac_clean_files=$ac_clean_files_save
1913 # Check the compiler produces executables we can run. If not, either
1914 # the compiler is broken, or we cross compile.
1915 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1917 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1918 echo "${ECHO_T}$cross_compiling" >&6
1920 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1923 (eval $ac_link) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; then
1927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1929 # work properly (i.e., refer to `conftest.exe'), while it won't with
1931 for ac_file in conftest.exe conftest conftest.*; do
1932 test -f "$ac_file" || continue
1934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946 { (exit 1); exit 1; }; }
1949 rm -f conftest$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1953 rm -f conftest.$ac_ext
1954 EXEEXT=$ac_cv_exeext
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1977 rm -f conftest.o conftest.obj
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1991 echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&2;}
1998 { (exit 1); exit 1; }; }
2001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2004 echo "${ECHO_T}$ac_cv_objext" >&6
2005 OBJEXT=$ac_cv_objext
2007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2056 GCC=`test $ac_compiler_gnu = yes && echo yes`
2057 ac_test_CFLAGS=${CFLAGS+set}
2058 ac_save_CFLAGS=$CFLAGS
2060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2062 if test "${ac_cv_prog_cc_g+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105 CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107 if test "$GCC" = yes; then
2113 if test "$GCC" = yes; then
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 ac_cv_prog_cc_stdc=no
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2135 #include <sys/types.h>
2136 #include <sys/stat.h>
2137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2138 struct buf { int x; };
2139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (p, i)
2146 static char *f (char * (*g) (char **, int), char **p, ...)
2151 s = g (p, va_arg (v,int));
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX -qlanglvl=ansi
2172 # Ultrix and OSF/1 -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions -Aa -D_HPUX_SOURCE
2175 # SVR4 -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2178 CC="$ac_save_CC $ac_arg"
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2198 rm -f conftest.$ac_objext
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2205 case "x$ac_cv_prog_cc_stdc" in
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 # Some people use a C++ compiler to compile C. Since we use `exit',
2216 # in C++ we need to declare it. In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
2238 '#include <stdlib.h>' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 ac_cpp='$CXXCPP $CPPFLAGS'
2339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CXX+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$CXX"; then
2353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test -n "$CXX"; then
2373 echo "$as_me:$LINENO: result: $CXX" >&5
2374 echo "${ECHO_T}$CXX" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2380 test -n "$CXX" && break
2383 if test -z "$CXX"; then
2385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CXX"; then
2395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_CXX="$ac_prog"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2414 if test -n "$ac_ct_CXX"; then
2415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2416 echo "${ECHO_T}$ac_ct_CXX" >&6
2418 echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2422 test -n "$ac_ct_CXX" && break
2424 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2430 # Provide some information about the compiler.
2431 echo "$as_me:$LINENO:" \
2432 "checking for C++ compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2435 (eval $ac_compiler --version </dev/null >&5) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2440 (eval $ac_compiler -v </dev/null >&5) 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2445 (eval $ac_compiler -V </dev/null >&5) 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2450 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2497 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2499 GXX=`test $ac_compiler_gnu = yes && echo yes`
2500 ac_test_CXXFLAGS=${CXXFLAGS+set}
2501 ac_save_CXXFLAGS=$CXXFLAGS
2503 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cxx_g+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_prog_cxx_g=yes
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2547 if test "$ac_test_CXXFLAGS" = set; then
2548 CXXFLAGS=$ac_save_CXXFLAGS
2549 elif test $ac_cv_prog_cxx_g = yes; then
2550 if test "$GXX" = yes; then
2556 if test "$GXX" = yes; then
2562 for ac_declaration in \
2564 '#include <stdlib.h>' \
2565 'extern "C" void std::exit (int) throw (); using std::exit;' \
2566 'extern "C" void std::exit (int); using std::exit;' \
2567 'extern "C" void exit (int) throw ();' \
2568 'extern "C" void exit (int);' \
2571 cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2645 if test -n "$ac_declaration"; then
2646 echo '#ifdef __cplusplus' >>confdefs.h
2647 echo $ac_declaration >>confdefs.h
2648 echo '#endif' >>confdefs.h
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 if test "x$CC" != xcc; then
2658 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2659 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2661 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2662 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2664 set dummy $CC; ac_cc=`echo $2 |
2665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2666 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 # Make sure it works both with $CC and with simple cc.
2686 # We do the test twice because some compilers refuse to overwrite an
2687 # existing .o file with -o, though they will create one.
2688 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2689 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); };
2700 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2701 if test "x$CC" != xcc; then
2702 # Test first that cc exists at all.
2703 if { ac_try='cc -c conftest.$ac_ext >&5'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2710 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); };
2724 # cc exists but doesn't like -o.
2725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2735 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2742 cat >>confdefs.h <<\_ACEOF
2743 #define NO_MINUS_C_MINUS_O 1
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2755 # On Suns, sometimes $CPP names a directory.
2756 if test -n "$CPP" && test -d "$CPP"; then
2759 if test -z "$CPP"; then
2760 if test "${ac_cv_prog_CPP+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 # Double quotes because CPP needs to be expanded
2764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2767 for ac_c_preproc_warn_flag in '' yes
2769 # Use a header file that comes with gcc, so configuring glibc
2770 # with a fresh cross-compiler works.
2771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772 # <limits.h> exists even on freestanding compilers.
2773 # On the NeXT, cc -E runs the code through the compiler's parser,
2774 # not just through cpp. "Syntax error" is here to catch this case.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2783 # include <limits.h>
2785 # include <assert.h>
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2805 if test -z "$ac_cpp_err"; then
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 # Broken: fails on valid input.
2814 rm -f conftest.err conftest.$ac_ext
2816 # OK, works on sane cases. Now check whether non-existent headers
2817 # can be detected and how.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #include <ac_nonexistent.h>
2827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null; then
2835 if test -s conftest.err; then
2836 ac_cpp_err=$ac_c_preproc_warn_flag
2843 if test -z "$ac_cpp_err"; then
2844 # Broken: success on invalid input.
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 # Passes both tests.
2854 rm -f conftest.err conftest.$ac_ext
2857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858 rm -f conftest.err conftest.$ac_ext
2859 if $ac_preproc_ok; then
2871 echo "$as_me:$LINENO: result: $CPP" >&5
2872 echo "${ECHO_T}$CPP" >&6
2874 for ac_c_preproc_warn_flag in '' yes
2876 # Use a header file that comes with gcc, so configuring glibc
2877 # with a fresh cross-compiler works.
2878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879 # <limits.h> exists even on freestanding compilers.
2880 # On the NeXT, cc -E runs the code through the compiler's parser,
2881 # not just through cpp. "Syntax error" is here to catch this case.
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2890 # include <limits.h>
2892 # include <assert.h>
2896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } >/dev/null; then
2904 if test -s conftest.err; then
2905 ac_cpp_err=$ac_c_preproc_warn_flag
2912 if test -z "$ac_cpp_err"; then
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 # Broken: fails on valid input.
2921 rm -f conftest.err conftest.$ac_ext
2923 # OK, works on sane cases. Now check whether non-existent headers
2924 # can be detected and how.
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <ac_nonexistent.h>
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2950 if test -z "$ac_cpp_err"; then
2951 # Broken: success on invalid input.
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Passes both tests.
2961 rm -f conftest.err conftest.$ac_ext
2964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965 rm -f conftest.err conftest.$ac_ext
2966 if $ac_preproc_ok; then
2969 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 echo "$as_me:$LINENO: checking for egrep" >&5
2984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2985 if test "${ac_cv_prog_egrep+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2989 then ac_cv_prog_egrep='grep -E'
2990 else ac_cv_prog_egrep='egrep'
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2995 EGREP=$ac_cv_prog_egrep
2998 if test $ac_cv_c_compiler_gnu = yes; then
2999 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_pattern="Autoconf.*'x'"
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3017 ac_cv_prog_gcc_traditional=yes
3019 ac_cv_prog_gcc_traditional=no
3024 if test $ac_cv_prog_gcc_traditional = no; then
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037 ac_cv_prog_gcc_traditional=yes
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3045 if test $ac_cv_prog_gcc_traditional = yes; then
3046 CC="$CC -traditional"
3052 cat >>confdefs.h <<\_ACEOF
3058 # Find a good install program. We prefer a C program (faster),
3059 # so one script is as good as another. But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3072 if test -z "$INSTALL"; then
3073 if test "${ac_cv_path_install+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 # Account for people who put trailing slashes in PATH elements.
3083 ./ | .// | /cC/* | \
3084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3087 # OSF1 and SCO ODT 3.0 have their own names for install.
3088 # Don't use installbsd from OSF since it installs stuff as root
3090 for ac_prog in ginstall scoinst install; do
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3093 if test $ac_prog = install &&
3094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # AIX install. It has an incompatible calling convention.
3097 elif test $ac_prog = install &&
3098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099 # program-specific install script used by HP pwplus--don't use.
3102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3114 if test "${ac_cv_path_install+set}" = set; then
3115 INSTALL=$ac_cv_path_install
3117 # As a last resort, use the slow shell script. We don't cache a
3118 # path for INSTALL within a source directory, because that will
3119 # break other packages using the cache if that directory is
3120 # removed, or if the path is relative.
3121 INSTALL=$ac_install_sh
3124 echo "$as_me:$LINENO: result: $INSTALL" >&5
3125 echo "${ECHO_T}$INSTALL" >&6
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 if test -n "$RANLIB"; then
3144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164 echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3167 echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173 ac_ct_RANLIB=$RANLIB
3174 # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$ac_ct_RANLIB"; then
3182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_ac_ct_RANLIB="ranlib"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 RANLIB=$ac_ct_RANLIB
3212 RANLIB="$ac_cv_prog_RANLIB"
3215 # Extract the first word of "mv", so it can be a program name with args.
3216 set dummy mv; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_MV+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3247 if test -n "$MV"; then
3248 echo "$as_me:$LINENO: result: $MV" >&5
3249 echo "${ECHO_T}$MV" >&6
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3255 # Extract the first word of "rm", so it can be a program name with args.
3256 set dummy rm; ac_word=$2
3257 echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_RM+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3287 if test -n "$RM"; then
3288 echo "$as_me:$LINENO: result: $RM" >&5
3289 echo "${ECHO_T}$RM" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3295 # Extract the first word of "cp", so it can be a program name with args.
3296 set dummy cp; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_path_CP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3327 if test -n "$CP"; then
3328 echo "$as_me:$LINENO: result: $CP" >&5
3329 echo "${ECHO_T}$CP" >&6
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3335 # Extract the first word of "sed", so it can be a program name with args.
3336 set dummy sed; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_path_SED+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3367 if test -n "$SED"; then
3368 echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 # Extract the first word of "awk", so it can be a program name with args.
3376 set dummy awk; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_path_AWK+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3407 if test -n "$AWK"; then
3408 echo "$as_me:$LINENO: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 # Extract the first word of "echo", so it can be a program name with args.
3416 set dummy echo; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_path_ECHO+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445 ECHO=$ac_cv_path_ECHO
3447 if test -n "$ECHO"; then
3448 echo "$as_me:$LINENO: result: $ECHO" >&5
3449 echo "${ECHO_T}$ECHO" >&6
3451 echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3455 # Extract the first word of "cmp", so it can be a program name with args.
3456 set dummy cmp; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_path_CMP+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3487 if test -n "$CMP"; then
3488 echo "$as_me:$LINENO: result: $CMP" >&5
3489 echo "${ECHO_T}$CMP" >&6
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3495 # Extract the first word of "tbl", so it can be a program name with args.
3496 set dummy tbl; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_path_TBL+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3527 if test -n "$TBL"; then
3528 echo "$as_me:$LINENO: result: $TBL" >&5
3529 echo "${ECHO_T}$TBL" >&6
3531 echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3535 # Extract the first word of "ar", so it can be a program name with args.
3536 set dummy ar; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_path_AR+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3567 if test -n "$AR"; then
3568 echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 # Extract the first word of "openssl", so it can be a program name with args.
3576 set dummy openssl; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_OPENSSL+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605 OPENSSL=$ac_cv_path_OPENSSL
3607 if test -n "$OPENSSL"; then
3608 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3609 echo "${ECHO_T}$OPENSSL" >&6
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 # Extract the first word of "mtx", so it can be a program name with args.
3616 set dummy mtx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_MTX+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3647 if test -n "$MTX"; then
3648 echo "$as_me:$LINENO: result: $MTX" >&5
3649 echo "${ECHO_T}$MTX" >&6
3651 echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3655 # Extract the first word of "pkg-config", so it can be a program name with args.
3656 set dummy pkg-config; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685 PKGCONFIG=$ac_cv_path_PKGCONFIG
3687 if test -n "$PKGCONFIG"; then
3688 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3689 echo "${ECHO_T}$PKGCONFIG" >&6
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 # Extract the first word of "wx-config", so it can be a program name with args.
3696 set dummy wx-config; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725 WXCONFIG=$ac_cv_path_WXCONFIG
3727 if test -n "$WXCONFIG"; then
3728 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3729 echo "${ECHO_T}$WXCONFIG" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3736 test -n "$ARFLAG" || ARFLAGS="cr"
3749 # Make sure we can run config.sub.
3750 $ac_config_sub sun4 >/dev/null 2>&1 ||
3751 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3753 { (exit 1); exit 1; }; }
3755 echo "$as_me:$LINENO: checking build system type" >&5
3756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3757 if test "${ac_cv_build+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 ac_cv_build_alias=$build_alias
3761 test -z "$ac_cv_build_alias" &&
3762 ac_cv_build_alias=`$ac_config_guess`
3763 test -z "$ac_cv_build_alias" &&
3764 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3766 { (exit 1); exit 1; }; }
3767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3768 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3770 { (exit 1); exit 1; }; }
3773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3774 echo "${ECHO_T}$ac_cv_build" >&6
3776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789 ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793 { (exit 1); exit 1; }; }
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805 *cygwin* ) CYGWIN=yes;;
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3815 HAVE_SUN_OS_FALSE='#'
3817 HAVE_SUN_OS_TRUE='#'
3820 cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3829 HAVE_SUN_OS_FALSE='#'
3831 HAVE_SUN_OS_TRUE='#'
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3842 HAVE_OSF1_OS_FALSE='#'
3844 HAVE_OSF1_OS_TRUE='#'
3847 cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3856 HAVE_OSF1_OS_FALSE='#'
3858 HAVE_OSF1_OS_TRUE='#'
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3869 HAVE_AIX_OS_FALSE='#'
3871 HAVE_AIX_OS_TRUE='#'
3874 cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3883 HAVE_AIX_OS_FALSE='#'
3885 HAVE_AIX_OS_TRUE='#'
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3896 HAVE_HPUX_OS_FALSE='#'
3898 HAVE_HPUX_OS_TRUE='#'
3901 cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3910 HAVE_HPUX_OS_FALSE='#'
3912 HAVE_HPUX_OS_TRUE='#'
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3923 HAVE_LINUX_OS_FALSE='#'
3925 HAVE_LINUX_OS_TRUE='#'
3926 HAVE_LINUX_OS_FALSE=
3928 cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3937 HAVE_LINUX_OS_FALSE='#'
3939 HAVE_LINUX_OS_TRUE='#'
3940 HAVE_LINUX_OS_FALSE=
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3949 HAVE_FREEBSD_OS_TRUE=
3950 HAVE_FREEBSD_OS_FALSE='#'
3952 HAVE_FREEBSD_OS_TRUE='#'
3953 HAVE_FREEBSD_OS_FALSE=
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3963 HAVE_FREEBSD_OS_TRUE=
3964 HAVE_FREEBSD_OS_FALSE='#'
3966 HAVE_FREEBSD_OS_TRUE='#'
3967 HAVE_FREEBSD_OS_FALSE=
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3976 HAVE_NETBSD_OS_TRUE=
3977 HAVE_NETBSD_OS_FALSE='#'
3979 HAVE_NETBSD_OS_TRUE='#'
3980 HAVE_NETBSD_OS_FALSE=
3982 cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3990 HAVE_NETBSD_OS_TRUE=
3991 HAVE_NETBSD_OS_FALSE='#'
3993 HAVE_NETBSD_OS_TRUE='#'
3994 HAVE_NETBSD_OS_FALSE=
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4003 HAVE_OPENBSD_OS_TRUE=
4004 HAVE_OPENBSD_OS_FALSE='#'
4006 HAVE_OPENBSD_OS_TRUE='#'
4007 HAVE_OPENBSD_OS_FALSE=
4009 cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4017 HAVE_OPENBSD_OS_TRUE=
4018 HAVE_OPENBSD_OS_FALSE='#'
4020 HAVE_OPENBSD_OS_TRUE='#'
4021 HAVE_OPENBSD_OS_FALSE=
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4031 HAVE_BSDI_OS_FALSE='#'
4033 HAVE_BSDI_OS_TRUE='#'
4036 cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4045 HAVE_BSDI_OS_FALSE='#'
4047 HAVE_BSDI_OS_TRUE='#'
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4058 HAVE_SGI_OS_FALSE='#'
4060 HAVE_SGI_OS_TRUE='#'
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4072 HAVE_SGI_OS_FALSE='#'
4074 HAVE_SGI_OS_TRUE='#'
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4085 HAVE_IRIX_OS_FALSE='#'
4087 HAVE_IRIX_OS_TRUE='#'
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4099 HAVE_IRIX_OS_FALSE='#'
4101 HAVE_IRIX_OS_TRUE='#'
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4111 HAVE_DARWIN_OS_TRUE=
4112 HAVE_DARWIN_OS_FALSE='#'
4114 HAVE_DARWIN_OS_TRUE='#'
4115 HAVE_DARWIN_OS_FALSE=
4117 cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4125 HAVE_DARWIN_OS_TRUE=
4126 HAVE_DARWIN_OS_FALSE='#'
4128 HAVE_DARWIN_OS_TRUE='#'
4129 HAVE_DARWIN_OS_FALSE=
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4140 echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 elif test -f /etc/SuSE-release
4171 elif test -d /etc/SuSEconfig
4174 elif test -f /etc/mandrake-release
4177 elif test -f /etc/whitebox-release
4180 elif test -f /etc/redhat-release
4183 elif test -f /etc/gentoo-release
4186 elif test -f /etc/debian_version
4189 elif test -f /etc/slackware-version
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4195 elif test -f /etc/engarde-version
4198 elif test "$CYGWIN" = yes
4201 cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4208 echo "$as_me:$LINENO: result: done" >&5
4209 echo "${ECHO_T}done" >&6
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4218 INSIDE_GNOME_COMMON_TRUE=
4219 INSIDE_GNOME_COMMON_FALSE='#'
4221 INSIDE_GNOME_COMMON_TRUE='#'
4222 INSIDE_GNOME_COMMON_FALSE=
4225 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4227 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4230 # ------------------------------------------------------------------
4231 # If the user has not set --prefix, we set our default to nothing.
4232 # In this case, if the user has not set --sysconfdir, we set it
4233 # to the package default of /etc/bacula. If either --prefix or
4234 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238 sysconfdir=/etc/bacula
4242 sysconfdir=`eval echo ${sysconfdir}`
4244 # -------------------------------------------------------------------------
4245 # If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248 exec_prefix=${prefix}
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255 sbindir=${exec_prefix}/sbin
4257 sbindir=`eval echo ${sbindir}`
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 # language is separated by a space.
4262 # ------------------------------------------------------------------
4265 for ac_prog in msgfmt
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 MSGFMT=$ac_cv_path_MSGFMT
4298 if test -n "$MSGFMT"; then
4299 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$MSGFMT" && break
4308 test -n "$MSGFMT" || MSGFMT="no"
4310 if test "$MSGFMT" = "no"
4312 echo 'msgfmt program not found, disabling NLS !'
4314 USE_INCLUDED_LIBINTL=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4327 support_wx_console=no
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345 enableval="$enable_gnome"
4346 if test x$enableval = xyes; then
4352 if test x$support_gnome = xyes; then
4353 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4355 if test $pkg = 0; then
4356 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4364 GNOME_DIR=src/gnome2-console
4365 gnome_version="Version 2.x"
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380 withval="$with_gnome_includes"
4382 CFLAGS="$CFLAGS -I$withval"
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389 withval="$with_gnome_libs"
4391 LDFLAGS="$LDFLAGS -L$withval"
4392 gnome_prefix=$withval
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399 withval="$with_gnome"
4400 if test x$withval = xyes; then
4404 if test "x$withval" = xno; then
4408 LDFLAGS="$LDFLAGS -L$withval/lib"
4409 CFLAGS="$CFLAGS -I$withval/include"
4410 gnome_prefix=$withval/lib
4417 if test "x$want_gnome" = xyes; then
4419 # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 case $GNOME_CONFIG in
4428 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4451 if test -n "$GNOME_CONFIG"; then
4452 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "$GNOME_CONFIG" = "no"; then
4460 no_gnome_config="yes"
4462 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4469 # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 case $ORBIT_CONFIG in
4478 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4501 if test -n "$ORBIT_CONFIG"; then
4502 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4541 if test -n "$ORBIT_IDL"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556 gnome_cv_orbit_found=no
4558 gnome_cv_orbit_found=yes
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 HAVE_ORBIT_FALSE='#'
4573 if test x$gnome_cv_orbit_found = xyes; then
4575 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580 if test xfail = xfailure; then
4581 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583 { (exit 1); exit 1; }; }
4587 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 gnome_cv_gnorba_found=no
4594 if test x$gnome_cv_orbit_found = xyes; then
4595 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597 if test -n "$GNORBA_LIBS"; then
4598 gnome_cv_gnorba_found=yes
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4607 if test x$gnome_cv_gnorba_found = xyes; then
4609 HAVE_GNORBA_FALSE='#'
4611 HAVE_GNORBA_TRUE='#'
4614 if test x$gnome_cv_orbit_found = xyes; then
4616 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621 if test xfail = xfailure; then
4622 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624 { (exit 1); exit 1; }; }
4628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 no_gnome_config="yes"
4643 if test x$exec_prefix = xNONE; then
4644 if test x$prefix = xNONE; then
4645 gnome_prefix=$ac_default_prefix/lib
4647 gnome_prefix=$prefix/lib
4650 gnome_prefix=`eval echo \`echo $libdir\``
4653 if test "$no_gnome_config" = "yes"; then
4654 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656 if test -f $gnome_prefix/gnomeConf.sh; then
4657 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659 echo "loading gnome configuration from" \
4660 "$gnome_prefix/gnomeConf.sh"
4661 . $gnome_prefix/gnomeConf.sh
4664 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666 if test xfail = xfail; then
4667 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669 { (exit 1); exit 1; }; }
4678 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4688 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4693 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4697 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4700 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4706 GNOME_DIR=src/gnome-console
4707 gnome_version="Version 1.4"
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718 enableval="$enable_wx_console"
4719 if test x$enableval = xyes; then
4720 support_wx_console=yes
4725 if test x$support_wx_console = xyes; then
4726 abc=`$WXCONFIG --cppflags`
4728 if test $pkg = 0; then
4729 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4733 WX_DIR=src/wx-console
4736 echo "wx-config program not found. wx-console disabled."
4738 support_wx_console=no
4744 # -------------------------------------------
4745 # tray-monitor (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4748 if test "${enable_tray_monitor+set}" = set; then
4749 enableval="$enable_tray_monitor"
4750 if test x$enableval = xyes; then
4751 support_tray_monitor=yes
4756 if test x$support_tray_monitor = xyes; then
4757 abc=`$PKGCONFIG --exists gtk+-2.0`
4759 if test $pkg = 0; then
4760 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4761 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4764 TRAY_MONITOR_DIR=src/tray-monitor
4769 # -------------------------------------------
4770 # smartalloc (default off)
4771 # -------------------------------------------
4772 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4773 if test "${enable_smartalloc+set}" = set; then
4774 enableval="$enable_smartalloc"
4775 if test x$enableval = xno; then
4776 support_smartalloc=no
4780 if test x$support_smartalloc = xyes; then
4781 cat >>confdefs.h <<\_ACEOF
4782 #define SMARTALLOC 1
4787 # -------------------------------------------
4788 # static-tools (default off)
4789 # -------------------------------------------
4790 # Check whether --enable-static-tools or --disable-static-tools was given.
4791 if test "${enable_static_tools+set}" = set; then
4792 enableval="$enable_static_tools"
4793 if test x$enableval = xyes; then
4794 support_static_tools=yes
4799 if test x$support_static_tools = xyes; then
4800 TTOOL_LDFLAGS="-static"
4804 # -------------------------------------------
4805 # static-fd (default off)
4806 # -------------------------------------------
4807 # Check whether --enable-static-fd or --disable-static-fd was given.
4808 if test "${enable_static_fd+set}" = set; then
4809 enableval="$enable_static_fd"
4810 if test x$enableval = xyes; then
4811 support_static_fd=yes
4816 if test x$support_static_fd = xyes; then
4817 STATIC_FD="static-bacula-fd"
4821 # -------------------------------------------
4822 # static-sd (default off)
4823 # -------------------------------------------
4824 # Check whether --enable-static-sd or --disable-static-sd was given.
4825 if test "${enable_static_sd+set}" = set; then
4826 enableval="$enable_static_sd"
4827 if test x$enableval = xyes; then
4828 support_static_sd=yes
4833 if test x$support_static_sd = xyes; then
4834 STATIC_SD="static-bacula-sd"
4838 # -------------------------------------------
4839 # static-dir (default off)
4840 # -------------------------------------------
4841 # Check whether --enable-static-dir or --disable-static-dir was given.
4842 if test "${enable_static_dir+set}" = set; then
4843 enableval="$enable_static_dir"
4844 if test x$enableval = xyes; then
4845 support_static_dir=yes
4850 if test x$support_static_dir = xyes; then
4851 STATIC_DIR="static-bacula-dir"
4855 # -------------------------------------------
4856 # static-cons (default off)
4857 # -------------------------------------------
4858 # Check whether --enable-static-cons or --disable-static-cons was given.
4859 if test "${enable_static_cons+set}" = set; then
4860 enableval="$enable_static_cons"
4861 if test x$enableval = xyes; then
4862 support_static_cons=yes
4869 if test x$support_static_cons = xyes; then
4870 STATIC_CONS="static-bconsole"
4871 STATIC_GNOME_CONS="static-gnome-console"
4872 STATIC_WX_CONS="static-wx-console"
4878 # -------------------------------------------
4879 # client_only (default off)
4880 # -------------------------------------------
4881 # Check whether --enable-client-only or --disable-client-only was given.
4882 if test "${enable_client_only+set}" = set; then
4883 enableval="$enable_client_only"
4884 if test x$enableval = xyes; then
4885 build_client_only=yes
4890 if test x$build_client_only = xno; then
4897 # ---------------------------------------------------
4898 # Check for conio (Bacula readline substitute)(
4899 # ---------------------------------------------------
4900 # this allows you to turn it completely off
4901 # Check whether --enable-conio or --disable-conio was given.
4902 if test "${enable_conio+set}" = set; then
4903 enableval="$enable_conio"
4904 if test x$enableval = xno; then
4910 if test x$support_conio = xyes; then
4911 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4912 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4913 if test "${ac_cv_header_stdc+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 cat >conftest.$ac_ext <<_ACEOF
4917 #line $LINENO "configure"
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_header_stdc=yes
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_cv_header_stdc=no
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4957 if test $ac_cv_header_stdc = yes; then
4958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970 $EGREP "memchr" >/dev/null 2>&1; then
4973 ac_cv_header_stdc=no
4979 if test $ac_cv_header_stdc = yes; then
4980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992 $EGREP "free" >/dev/null 2>&1; then
4995 ac_cv_header_stdc=no
5001 if test $ac_cv_header_stdc = yes; then
5002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5003 if test "$cross_compiling" = yes; then
5006 cat >conftest.$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 #if ((' ' & 0x0FF) == 0x020)
5015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5018 # define ISLOWER(c) \
5019 (('a' <= (c) && (c) <= 'i') \
5020 || ('j' <= (c) && (c) <= 'r') \
5021 || ('s' <= (c) && (c) <= 'z'))
5022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5030 for (i = 0; i < 256; i++)
5031 if (XOR (islower (i), ISLOWER (i))
5032 || toupper (i) != TOUPPER (i))
5037 rm -f conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5050 echo "$as_me: program exited with status $ac_status" >&5
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5055 ac_cv_header_stdc=no
5057 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5062 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5063 if test $ac_cv_header_stdc = yes; then
5065 cat >>confdefs.h <<\_ACEOF
5066 #define STDC_HEADERS 1
5071 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5081 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5082 inttypes.h stdint.h unistd.h
5084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5085 echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5099 #include <$ac_header>
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 eval "$as_ac_Header=yes"
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 eval "$as_ac_Header=no"
5120 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125 cat >>confdefs.h <<_ACEOF
5126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5134 if test "${ac_cv_header_termcap_h+set}" = set; then
5135 echo "$as_me:$LINENO: checking for termcap.h" >&5
5136 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5137 if test "${ac_cv_header_termcap_h+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5141 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5143 # Is the header compilable?
5144 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5145 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 #include <termcap.h>
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_header_compiler=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_header_compiler=no
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177 echo "${ECHO_T}$ac_header_compiler" >&6
5179 # Is the header present?
5180 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5181 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 #include <termcap.h>
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5207 if test -z "$ac_cpp_err"; then
5208 ac_header_preproc=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_header_preproc=no
5215 rm -f conftest.err conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5217 echo "${ECHO_T}$ac_header_preproc" >&6
5219 # So? What about this header?
5220 case $ac_header_compiler:$ac_header_preproc in
5222 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5223 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5228 ## ------------------------------------ ##
5229 ## Report this to bug-autoconf@gnu.org. ##
5230 ## ------------------------------------ ##
5233 sed "s/^/$as_me: WARNING: /" >&2
5236 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5241 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5244 ## ------------------------------------ ##
5245 ## Report this to bug-autoconf@gnu.org. ##
5246 ## ------------------------------------ ##
5249 sed "s/^/$as_me: WARNING: /" >&2
5252 echo "$as_me:$LINENO: checking for termcap.h" >&5
5253 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5254 if test "${ac_cv_header_termcap_h+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 ac_cv_header_termcap_h=$ac_header_preproc
5259 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5260 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5263 if test $ac_cv_header_termcap_h = yes; then
5264 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5265 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5266 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-ltermcap $LIBS"
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -s conftest$ac_exeext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 ac_cv_lib_termcap_tgetent=yes
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_cv_lib_termcap_tgetent=no
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314 LIBS=$ac_check_lib_save_LIBS
5316 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5317 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5318 if test $ac_cv_lib_termcap_tgetent = yes; then
5319 CONS_LIBS="-ltermcap"
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_CONIO 1
5331 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5332 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5333 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 ac_check_lib_save_LIBS=$LIBS
5337 LIBS="-lncurses $LIBS"
5338 cat >conftest.$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5346 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -s conftest$ac_exeext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_lib_ncurses_tgetent=yes
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ac_cv_lib_ncurses_tgetent=no
5380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5381 LIBS=$ac_check_lib_save_LIBS
5383 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5384 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5385 if test $ac_cv_lib_ncurses_tgetent = yes; then
5386 CONS_LIBS="-lncurses"
5392 cat >>confdefs.h <<\_ACEOF
5393 #define HAVE_CONIO 1
5398 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5406 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5413 # ---------------------------------------------------
5414 # Check for readline support/directory (default off)
5415 # ---------------------------------------------------
5416 # this allows you to turn it completely off
5417 # Check whether --enable-readline or --disable-readline was given.
5418 if test "${enable_readline+set}" = set; then
5419 enableval="$enable_readline"
5420 if test x$enableval = xno; then
5427 if test x$support_readline = xyes; then
5429 # Check whether --with-readline or --without-readline was given.
5430 if test "${with_readline+set}" = set; then
5431 withval="$with_readline"
5433 case "$with_readline" in
5436 if test "$with_readline" != "yes"; then
5437 CONS_INC="-I${with_readline}"
5438 CONS_LDFLAGS="-L$with_readline"
5440 with_readline="/usr/include/readline"
5442 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5445 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5452 # Is the header compilable?
5453 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5454 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5463 #include <${with_readline}/readline.h>
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_header_compiler=yes
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_header_compiler=no
5484 rm -f conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486 echo "${ECHO_T}$ac_header_compiler" >&6
5488 # Is the header present?
5489 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5490 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <${with_readline}/readline.h>
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5516 if test -z "$ac_cpp_err"; then
5517 ac_header_preproc=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_preproc=no
5524 rm -f conftest.err conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526 echo "${ECHO_T}$ac_header_preproc" >&6
5528 # So? What about this header?
5529 case $ac_header_compiler:$ac_header_preproc in
5531 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5532 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5534 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5537 ## ------------------------------------ ##
5538 ## Report this to bug-autoconf@gnu.org. ##
5539 ## ------------------------------------ ##
5542 sed "s/^/$as_me: WARNING: /" >&2
5545 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5558 sed "s/^/$as_me: WARNING: /" >&2
5561 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5562 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 eval "$as_ac_Header=$ac_header_preproc"
5568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_READLINE 1
5577 CONS_LIBS="-lreadline -ltermcap"
5582 echo "readline.h not found. readline turned off ..."
5594 # check for standard readline library
5595 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5596 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5597 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5598 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5602 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5604 # Is the header compilable?
5605 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5606 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 $ac_includes_default
5615 #include </usr/include/readline/readline.h>
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_header_compiler=yes
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_header_compiler=no
5636 rm -f conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638 echo "${ECHO_T}$ac_header_compiler" >&6
5640 # Is the header present?
5641 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5642 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include </usr/include/readline/readline.h>
5652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null; then
5660 if test -s conftest.err; then
5661 ac_cpp_err=$ac_c_preproc_warn_flag
5668 if test -z "$ac_cpp_err"; then
5669 ac_header_preproc=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5676 rm -f conftest.err conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678 echo "${ECHO_T}$ac_header_preproc" >&6
5680 # So? What about this header?
5681 case $ac_header_compiler:$ac_header_preproc in
5683 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5684 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5686 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5689 ## ------------------------------------ ##
5690 ## Report this to bug-autoconf@gnu.org. ##
5691 ## ------------------------------------ ##
5694 sed "s/^/$as_me: WARNING: /" >&2
5697 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5705 ## ------------------------------------ ##
5706 ## Report this to bug-autoconf@gnu.org. ##
5707 ## ------------------------------------ ##
5710 sed "s/^/$as_me: WARNING: /" >&2
5713 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5714 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5715 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5720 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5721 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5724 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define HAVE_READLINE 1
5730 CONS_INC="-I/usr/include/readline"
5731 CONS_LIBS="-lreadline -ltermcap"
5735 # Did not find standard library, so try Bacula's default
5736 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5739 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5746 # Is the header compilable?
5747 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5748 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5757 #include <${TOP_DIR}/depkgs/readline/readline.h>
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_header_compiler=yes
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ac_header_compiler=no
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5780 echo "${ECHO_T}$ac_header_compiler" >&6
5782 # Is the header present?
5783 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5784 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line $LINENO "configure"
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #include <${TOP_DIR}/depkgs/readline/readline.h>
5794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null; then
5802 if test -s conftest.err; then
5803 ac_cpp_err=$ac_c_preproc_warn_flag
5810 if test -z "$ac_cpp_err"; then
5811 ac_header_preproc=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_header_preproc=no
5818 rm -f conftest.err conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5820 echo "${ECHO_T}$ac_header_preproc" >&6
5822 # So? What about this header?
5823 case $ac_header_compiler:$ac_header_preproc in
5825 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5826 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5828 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5831 ## ------------------------------------ ##
5832 ## Report this to bug-autoconf@gnu.org. ##
5833 ## ------------------------------------ ##
5836 sed "s/^/$as_me: WARNING: /" >&2
5839 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5840 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5842 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5843 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5844 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5847 ## ------------------------------------ ##
5848 ## Report this to bug-autoconf@gnu.org. ##
5849 ## ------------------------------------ ##
5852 sed "s/^/$as_me: WARNING: /" >&2
5855 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5856 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 eval "$as_ac_Header=$ac_header_preproc"
5862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867 cat >>confdefs.h <<\_ACEOF
5868 #define HAVE_READLINE 1
5872 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5873 CONS_LIBS="-lreadline -lhistory -ltermcap"
5874 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5875 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5879 echo "readline.h not found. readline turned off ..."
5905 # Minimal stuff for readline Makefile configuration
5908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5910 if test "${ac_cv_header_stat_broken+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <sys/types.h>
5921 #include <sys/stat.h>
5923 #if defined(S_ISBLK) && defined(S_IFDIR)
5924 # if S_ISBLK (S_IFDIR)
5929 #if defined(S_ISBLK) && defined(S_IFCHR)
5930 # if S_ISBLK (S_IFCHR)
5935 #if defined(S_ISLNK) && defined(S_IFREG)
5936 # if S_ISLNK (S_IFREG)
5941 #if defined(S_ISSOCK) && defined(S_IFREG)
5942 # if S_ISSOCK (S_IFREG)
5948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5949 $EGREP "You lose" >/dev/null 2>&1; then
5950 ac_cv_header_stat_broken=yes
5952 ac_cv_header_stat_broken=no
5957 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5958 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5959 if test $ac_cv_header_stat_broken = yes; then
5961 cat >>confdefs.h <<\_ACEOF
5962 #define STAT_MACROS_BROKEN 1
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cat >conftest.$ac_ext <<_ACEOF
5981 #line $LINENO "configure"
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 #include <sys/types.h>
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 eval "$as_ac_Header=yes"
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 eval "$as_ac_Header=no"
6018 rm -f conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6027 ac_header_dirent=$ac_hdr; break
6031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032 if test $ac_header_dirent = dirent.h; then
6033 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 ac_func_search_save_LIBS=$LIBS
6039 ac_cv_search_opendir=no
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6048 /* Override any gcc2 internal prototype to avoid an error. */
6052 /* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -s conftest$ac_exeext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_search_opendir="none required"
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6082 if test "$ac_cv_search_opendir" = no; then
6083 for ac_lib in dir; do
6084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_search_opendir="-l$ac_lib"
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_func_search_save_LIBS
6132 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6133 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6134 if test "$ac_cv_search_opendir" != no; then
6135 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6140 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6142 if test "${ac_cv_search_opendir+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 ac_func_search_save_LIBS=$LIBS
6146 ac_cv_search_opendir=no
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6155 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_opendir="none required"
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 if test "$ac_cv_search_opendir" = no; then
6191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_search_opendir="-l$ac_lib"
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_func_search_save_LIBS
6239 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241 if test "$ac_cv_search_opendir" != no; then
6242 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6256 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259 echo "$as_me:$LINENO: checking for $ac_func" >&5
6260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6261 if eval "test \"\${$as_ac_var+set}\" = set"; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 /* System header to define __stub macros and hopefully few prototypes,
6272 which can conflict with char $ac_func (); below.
6273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6274 <limits.h> exists even on freestanding compilers. */
6276 # include <limits.h>
6278 # include <assert.h>
6280 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294 char (*f) () = $ac_func;
6303 return f != $ac_func;
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310 (eval $ac_link) 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -s conftest$ac_exeext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 eval "$as_ac_var=yes"
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 eval "$as_ac_var=no"
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6331 if test `eval echo '${'$as_ac_var'}'` = yes; then
6332 cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6341 for ac_func in nanosleep nl_langinfo
6343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6344 echo "$as_me:$LINENO: checking for $ac_func" >&5
6345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6346 if eval "test \"\${$as_ac_var+set}\" = set"; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char $ac_func (); below.
6358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359 <limits.h> exists even on freestanding compilers. */
6361 # include <limits.h>
6363 # include <assert.h>
6365 /* Override any gcc2 internal prototype to avoid an error. */
6370 /* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6379 char (*f) () = $ac_func;
6388 return f != $ac_func;
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -s conftest$ac_exeext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 eval "$as_ac_var=yes"
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 eval "$as_ac_var=no"
6412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6416 if test `eval echo '${'$as_ac_var'}'` = yes; then
6417 cat >>confdefs.h <<_ACEOF
6418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6425 for ac_header in varargs.h
6427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 # Is the header compilable?
6438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 $ac_includes_default
6448 #include <$ac_header>
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_header_compiler=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_header_compiler=no
6469 rm -f conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6471 echo "${ECHO_T}$ac_header_compiler" >&6
6473 # Is the header present?
6474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6476 cat >conftest.$ac_ext <<_ACEOF
6477 #line $LINENO "configure"
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <$ac_header>
6485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } >/dev/null; then
6493 if test -s conftest.err; then
6494 ac_cpp_err=$ac_c_preproc_warn_flag
6501 if test -z "$ac_cpp_err"; then
6502 ac_header_preproc=yes
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_header_preproc=no
6509 rm -f conftest.err conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511 echo "${ECHO_T}$ac_header_preproc" >&6
6513 # So? What about this header?
6514 case $ac_header_compiler:$ac_header_preproc in
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6522 ## ------------------------------------ ##
6523 ## Report this to bug-autoconf@gnu.org. ##
6524 ## ------------------------------------ ##
6527 sed "s/^/$as_me: WARNING: /" >&2
6530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 eval "$as_ac_Header=$ac_header_preproc"
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558 cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 # End of readline/conio stuff
6568 # -----------------------------------------------------------------------
6571 # ---------------------------------------------------
6572 # Check for GMP support/directory
6573 # ---------------------------------------------------
6577 # [ --with-gmp[=DIR] Specify gmp library directory],
6579 # case "$with_gmp" in
6582 # if test "$with_gmp" != "yes"; then
6583 # GMP_INC="-I$with_gmp"
6585 # GMP_LDFLAGS="-L$with_gmp"
6587 # with_gmp="/usr/include"
6589 # AC_CHECK_HEADER($with_gmp/gmp.h,
6590 # [ AC_MSG_RESULT(yes)
6591 # AC_DEFINE(HAVE_GMP)
6595 # [ AC_MSG_ERROR([*** gmp library missing])
6601 # # check for standard gmp library
6602 # AC_CHECK_HEADER(/usr/include/gmp.h,
6603 # [ AC_MSG_RESULT(yes)
6604 # AC_DEFINE(HAVE_GMP)
6609 # # Did not find standard library, so use our own
6610 # AC_MSG_RESULT(yes)
6611 # AC_DEFINE(HAVE_GMP)
6614 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6616 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6617 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6623 #AC_SUBST(GMP_LDFLAGS)
6627 # -----------------------------------------------------------------------
6630 # ---------------------------------------------------
6631 # Check for CWEB support/directory
6632 # ---------------------------------------------------
6637 # [ --with-cweb[=DIR] Specify cweb library directory],
6639 # case "$with_cweb" in
6642 # if test "$with_cweb" != "yes"; then
6643 # CWEB_INC="-I$with_cweb"
6644 # CWEB_LIBS="-lcweb"
6645 # CWEB_LDFLAGS="-L$with_cweb"
6647 # with_cweb="/usr/include"
6649 # AC_CHECK_HEADER($with_cweb/cweb.h,
6650 # [ AC_MSG_RESULT(yes)
6651 # AC_DEFINE(HAVE_CWEB)
6652 # CWEB_LIBS="-lcweb"
6655 # [ AC_MSG_ERROR([*** cweb library missing])
6661 # # check for standard cweb library
6662 # AC_CHECK_HEADER(/usr/include/cweb.h,
6663 # [ AC_MSG_RESULT(yes)
6664 # AC_DEFINE(HAVE_CWEB)
6667 # CWEB_LIBS="-lcweb"
6669 # # Did not find starndard library, so use our own
6670 # AC_MSG_RESULT(yes)
6671 # AC_DEFINE(HAVE_CWEB)
6674 # CWEB=${TOP_DIR}/depkgs/cweb
6675 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6676 # CWEB_LIBS="-lcweb"
6677 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6678 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6684 #AC_SUBST(CWEB_LIBS)
6685 #AC_SUBST(CWEB_LDFLAGS)
6689 # -----------------------------------------------------------------------
6693 # -----------------------------------------------------------
6694 # Check whether user wants TCP wrappers support (default off)
6695 # -----------------------------------------------------------
6698 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6699 if test "${with_tcp_wrappers+set}" = set; then
6700 withval="$with_tcp_wrappers"
6702 if test "x$withval" != "xno" ; then
6704 LIBS="$saved_LIBS -lwrap"
6705 echo "$as_me:$LINENO: checking for libwrap" >&5
6706 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6715 int deny_severity = 0;
6716 int allow_severity = 0;
6717 struct request_info *req;
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6739 echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_LIBWRAP 1
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6752 LIBS="$saved_LIBS -lwrap -lnsl"
6753 cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6761 int deny_severity = 0;
6762 int allow_severity = 0;
6763 struct request_info *req;
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774 (eval $ac_link) 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -s conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6785 echo "$as_me:$LINENO: result: yes" >&5
6786 echo "${ECHO_T}yes" >&6
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_LIBWRAP 1
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6798 echo "$as_me: error: *** libwrap missing" >&2;}
6799 { (exit 1); exit 1; }; }
6802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 # ------------------------------------------
6812 # Where to place working dir
6813 # ------------------------------------------
6814 working_dir=`eval echo ${prefix}/var/bacula/working`
6816 # Check whether --with-working-dir or --without-working-dir was given.
6817 if test "${with_working_dir+set}" = set; then
6818 withval="$with_working_dir"
6820 if test "x$withval" != "xno" ; then
6821 working_dir=$withval
6830 # ------------------------------------------
6831 # Where to place scriptdir (script files)
6832 # ------------------------------------------
6833 scriptdir=`eval echo ${sysconfdir}`
6835 # Check whether --with-scriptdir or --without-scriptdir was given.
6836 if test "${with_scriptdir+set}" = set; then
6837 withval="$with_scriptdir"
6839 if test "x$withval" != "xno" ; then
6849 # ------------------------------------------
6850 # Where to send dump email
6851 # ------------------------------------------
6852 dump_email=root@localhost
6854 # Check whether --with-dump-email or --without-dump-email was given.
6855 if test "${with_dump_email+set}" = set; then
6856 withval="$with_dump_email"
6858 if test "x$withval" != "xno" ; then
6867 # ------------------------------------------
6868 # Where to send job email
6869 # ------------------------------------------
6870 job_email=root@localhost
6872 # Check whether --with-job-email or --without-job-email was given.
6873 if test "${with_job_email+set}" = set; then
6874 withval="$with_job_email"
6876 if test "x$withval" != "xno" ; then
6885 # ------------------------------------------
6886 # Where to find smtp host
6887 # ------------------------------------------
6890 # Check whether --with-smtp_host or --without-smtp_host was given.
6891 if test "${with_smtp_host+set}" = set; then
6892 withval="$with_smtp_host"
6894 if test "x$withval" != "xno" ; then
6904 # ------------------------------------
6905 # Where to place pid files
6906 # ------------------------------------
6909 # Check whether --with-pid-dir or --without-pid-dir was given.
6910 if test "${with_pid_dir+set}" = set; then
6911 withval="$with_pid_dir"
6913 if test "x$withval" != "xno" ; then
6920 cat >>confdefs.h <<_ACEOF
6921 #define _PATH_BACULA_PIDDIR "$piddir"
6927 # ------------------------------------
6928 # Where to place subsys "lock file"
6929 # ------------------------------------
6930 subsysdir=/var/run/subsys
6932 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6933 if test "${with_subsys_dir+set}" = set; then
6934 withval="$with_subsys_dir"
6936 if test "x$withval" != "xno" ; then
6947 # ------------------------------------
6948 # Where to start assigning ports
6949 # ------------------------------------
6952 # Check whether --with-baseport or --without-baseport was given.
6953 if test "${with_baseport+set}" = set; then
6954 withval="$with_baseport"
6956 if test "x$withval" != "xno" ; then
6964 dir_port=`expr $baseport`
6965 fd_port=`expr $baseport + 1`
6966 sd_port=`expr $fd_port + 1`
6973 # ------------------------------------------
6974 # Generate passwords
6975 # ------------------------------------------
6978 # Check whether --with-dir-password or --without-dir-password was given.
6979 if test "${with_dir_password+set}" = set; then
6980 withval="$with_dir_password"
6982 if test "x$withval" != "xno" ; then
6983 dir_password=$withval
6989 if test "x$dir_password" = "x" ; then
6990 if test "x$OPENSSL" = "xnone" ; then
6991 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6992 key=`autoconf/randpass 33`
6994 key=`openssl rand -base64 33`
7001 # Check whether --with-fd-password or --without-fd-password was given.
7002 if test "${with_fd_password+set}" = set; then
7003 withval="$with_fd_password"
7005 if test "x$withval" != "xno" ; then
7006 fd_password=$withval
7012 if test "x$fd_password" = "x" ; then
7013 if test "x$OPENSSL" = "xnone" ; then
7014 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7015 key=`autoconf/randpass 37`
7017 key=`openssl rand -base64 33`
7024 # Check whether --with-sd-password or --without-sd-password was given.
7025 if test "${with_sd_password+set}" = set; then
7026 withval="$with_sd_password"
7028 if test "x$withval" != "xno" ; then
7029 sd_password=$withval
7035 if test "x$sd_password" = "x" ; then
7036 if test "x$OPENSSL" = "xnone" ; then
7037 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7038 key=`autoconf/randpass 41`
7040 key=`openssl rand -base64 33`
7052 # Handle users and groups for each daemon
7056 # Check whether --with-dir_user or --without-dir_user was given.
7057 if test "${with_dir_user+set}" = set; then
7058 withval="$with_dir_user"
7060 if test "x$withval" != "x" ; then
7069 # Check whether --with-dir_group or --without-dir_group was given.
7070 if test "${with_dir_group+set}" = set; then
7071 withval="$with_dir_group"
7073 if test "x$withval" != "x" ; then
7082 # Check whether --with-sd_user or --without-sd_user was given.
7083 if test "${with_sd_user+set}" = set; then
7084 withval="$with_sd_user"
7086 if test "x$withval" != "x" ; then
7095 # Check whether --with-sd_group or --without-sd_group was given.
7096 if test "${with_sd_group+set}" = set; then
7097 withval="$with_sd_group"
7099 if test "x$withval" != "x" ; then
7108 # Check whether --with-fd_user or --without-fd_user was given.
7109 if test "${with_fd_user+set}" = set; then
7110 withval="$with_fd_user"
7112 if test "x$withval" != "x" ; then
7121 # Check whether --with-fd_group or --without-fd_group was given.
7122 if test "${with_fd_group+set}" = set; then
7123 withval="$with_fd_group"
7125 if test "x$withval" != "x" ; then
7143 # allow setting default executable permissions
7147 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7148 if test "${with_sbin_perm+set}" = set; then
7149 withval="$with_sbin_perm"
7151 if test "x$withval" != "x" ; then
7160 # ------------------------------------------------
7161 # Bacula check for various SQL database engines
7162 # ------------------------------------------------
7165 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7166 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7168 # Check whether --with-postgresql or --without-postgresql was given.
7169 if test "${with_postgresql+set}" = set; then
7170 withval="$with_postgresql"
7172 if test "$withval" != "no"; then
7173 if test "$db_found" = "yes"; then
7174 echo "$as_me:$LINENO: result: error" >&5
7175 echo "${ECHO_T}error" >&6
7176 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7177 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7178 { (exit 1); exit 1; }; };
7180 if test "$withval" = "yes"; then
7181 if test -f /usr/local/include/libpq-fe.h; then
7182 POSTGRESQL_INCDIR=/usr/local/include
7183 POSTGRESQL_LIBDIR=/usr/local/lib
7184 POSTGRESQL_BINDIR=/usr/local/bin
7185 elif test -f /usr/include/libpq-fe.h; then
7186 POSTGRESQL_INCDIR=/usr/include
7187 POSTGRESQL_LIBDIR=/usr/lib
7188 POSTGRESQL_BINDIR=/usr/bin
7189 elif test -f /usr/include/pgsql/libpq-fe.h; then
7190 POSTGRESQL_INCDIR=/usr/include/pgsql
7191 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7192 POSTGRESQL_BINDIR=/usr/bin
7193 elif test -f /usr/include/postgresql/libpq-fe.h; then
7194 POSTGRESQL_INCDIR=/usr/include/postgresql
7195 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7196 POSTGRESQL_BINDIR=/usr/bin
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7200 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7201 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7202 { (exit 1); exit 1; }; }
7204 elif test -f $withval/include/libpq-fe.h; then
7205 POSTGRESQL_INCDIR=$withval/include
7206 POSTGRESQL_LIBDIR=$withval/lib
7207 POSTGRESQL_BINDIR=$withval/bin
7209 echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7212 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7213 { (exit 1); exit 1; }; }
7215 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7216 echo "$as_me:$LINENO: checking for crypt" >&5
7217 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7218 if test "${ac_cv_func_crypt+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char crypt (); below.
7230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231 <limits.h> exists even on freestanding compilers. */
7233 # include <limits.h>
7235 # include <assert.h>
7237 /* Override any gcc2 internal prototype to avoid an error. */
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7245 /* The GNU C library defines this for functions which it implements
7246 to always fail with ENOSYS. Some functions are actually named
7247 something starting with __ and the normal name is an alias. */
7248 #if defined (__stub_crypt) || defined (__stub___crypt)
7251 char (*f) () = crypt;
7265 rm -f conftest.$ac_objext conftest$ac_exeext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_func_crypt=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7287 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7288 if test $ac_cv_func_crypt = yes; then
7291 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7292 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7293 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_check_lib_save_LIBS=$LIBS
7297 LIBS="-lcrypt $LIBS"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7306 /* Override any gcc2 internal prototype to avoid an error. */
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323 (eval $ac_link) 2>&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -s conftest$ac_exeext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 ac_cv_lib_crypt_crypt=yes
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_lib_crypt_crypt=no
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 LIBS=$ac_check_lib_save_LIBS
7343 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7344 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7345 if test $ac_cv_lib_crypt_crypt = yes; then
7346 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7351 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7352 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7353 SQL_BINDIR=$POSTGRESQL_BINDIR
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_POSTGRESQL 1
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7361 support_postgresql=yes
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7383 echo "$as_me:$LINENO: checking for MySQL support" >&5
7384 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7386 # Check whether --with-mysql or --without-mysql was given.
7387 if test "${with_mysql+set}" = set; then
7388 withval="$with_mysql"
7390 if test "$withval" != "no"; then
7391 if test "$withval" = "yes"; then
7392 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7393 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7394 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7395 MYSQL_BINDIR=/usr/local/mysql/bin
7396 elif test -f /usr/include/mysql/mysql.h; then
7397 MYSQL_INCDIR=/usr/include/mysql
7398 MYSQL_LIBDIR=/usr/lib/mysql
7399 MYSQL_BINDIR=/usr/bin
7400 elif test -f /usr/include/mysql.h; then
7401 MYSQL_INCDIR=/usr/include
7402 MYSQL_LIBDIR=/usr/lib
7403 MYSQL_BINDIR=/usr/bin
7404 elif test -f /usr/local/include/mysql/mysql.h; then
7405 MYSQL_INCDIR=/usr/local/include/mysql
7406 MYSQL_LIBDIR=/usr/local/lib/mysql
7407 MYSQL_BINDIR=/usr/local/bin
7408 elif test -f /usr/local/include/mysql.h; then
7409 MYSQL_INCDIR=/usr/local/include
7410 MYSQL_LIBDIR=/usr/local/lib
7411 MYSQL_BINDIR=/usr/local/bin
7413 echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7416 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7417 { (exit 1); exit 1; }; }
7420 if test -f $withval/include/mysql/mysql.h; then
7421 MYSQL_INCDIR=$withval/include/mysql
7422 MYSQL_LIBDIR=$withval/lib/mysql
7423 MYSQL_BINDIR=$withval/bin
7424 elif test -f $withval/include/mysql.h; then
7425 MYSQL_INCDIR=$withval/include
7426 MYSQL_LIBDIR=$withval/lib
7427 MYSQL_BINDIR=$withval/bin
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7432 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7433 { (exit 1); exit 1; }; }
7436 SQL_INCLUDE=-I$MYSQL_INCDIR
7437 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7438 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_THREAD_SAFE_MYSQL 1
7444 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7446 SQL_BINDIR=$MYSQL_BINDIR
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MYSQL 1
7452 echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7468 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7469 if test "${with_embedded_mysql+set}" = set; then
7470 withval="$with_embedded_mysql"
7472 if test "$withval" != "no"; then
7473 if test "$withval" = "yes"; then
7474 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7475 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7476 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7477 MYSQL_BINDIR=/usr/local/mysql/bin
7478 elif test -f /usr/include/mysql/mysql.h; then
7479 MYSQL_INCDIR=/usr/include/mysql
7480 MYSQL_LIBDIR=/usr/lib/mysql
7481 MYSQL_BINDIR=/usr/bin
7482 elif test -f /usr/include/mysql.h; then
7483 MYSQL_INCDIR=/usr/include
7484 MYSQL_LIBDIR=/usr/lib
7485 MYSQL_BINDIR=/usr/bin
7486 elif test -f /usr/local/include/mysql/mysql.h; then
7487 MYSQL_INCDIR=/usr/local/include/mysql
7488 MYSQL_LIBDIR=/usr/local/lib/mysql
7489 MYSQL_BINDIR=/usr/local/bin
7490 elif test -f /usr/local/include/mysql.h; then
7491 MYSQL_INCDIR=/usr/local/include
7492 MYSQL_LIBDIR=/usr/local/lib
7493 MYSQL_BINDIR=/usr/local/bin
7495 echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7497 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7498 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7499 { (exit 1); exit 1; }; }
7502 if test -f $withval/include/mysql/mysql.h; then
7503 MYSQL_INCDIR=$withval/include/mysql
7504 MYSQL_LIBDIR=$withval/lib/mysql
7505 MYSQL_BINDIR=$withval/bin
7506 elif test -f $withval/include/mysql.h; then
7507 MYSQL_INCDIR=$withval/include
7508 MYSQL_LIBDIR=$withval/lib
7509 MYSQL_BINDIR=$withval/bin
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7514 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7515 { (exit 1); exit 1; }; }
7518 SQL_INCLUDE=-I$MYSQL_INCDIR
7519 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7520 SQL_BINDIR=$MYSQL_BINDIR
7522 cat >>confdefs.h <<\_ACEOF
7523 #define HAVE_MYSQL 1
7526 cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_EMBEDDED_MYSQL 1
7530 echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7538 echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7554 echo "$as_me:$LINENO: checking for SQLite support" >&5
7555 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7557 # Check whether --with-sqlite or --without-sqlite was given.
7558 if test "${with_sqlite+set}" = set; then
7559 withval="$with_sqlite"
7561 if test "$withval" != "no"; then
7562 if test "$withval" = "yes"; then
7563 if test -f /usr/local/include/sqlite.h; then
7564 SQLITE_INCDIR=/usr/local/include
7565 SQLITE_LIBDIR=/usr/local/lib
7566 SQLITE_BINDIR=/usr/local/bin
7567 elif test -f /usr/include/sqlite.h; then
7568 SQLITE_INCDIR=/usr/include
7569 SQLITE_LIBDIR=/usr/lib
7570 SQLITE_BINDIR=/usr/bin
7572 echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7575 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7576 { (exit 1); exit 1; }; }
7579 if test -f $withval/sqlite.h; then
7580 SQLITE_INCDIR=$withval
7581 SQLITE_LIBDIR=$withval
7582 SQLITE_BINDIR=$withval
7584 echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6
7586 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7587 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7588 { (exit 1); exit 1; }; }
7591 SQL_INCLUDE=-I$SQLITE_INCDIR
7592 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7593 SQL_BINDIR=$SQLITE_BINDIR
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_SQLITE 1
7599 echo "$as_me:$LINENO: result: yes" >&5
7600 echo "${ECHO_T}yes" >&6
7607 echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7626 cat >>confdefs.h <<\_ACEOF
7627 #define PROTOTYPES 1
7631 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7632 if test -z "$CCOPTS"; then
7633 CCOPTS='-g -O2 -Wall'
7641 largefile_support="no"
7643 # Check whether --enable-largefile or --disable-largefile was given.
7644 if test "${enable_largefile+set}" = set; then
7645 enableval="$enable_largefile"
7648 if test "$enable_largefile" != no; then
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7652 echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7654 if test "${ac_cv_prog_GETCONF+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 if test -n "$GETCONF"; then
7658 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 GETCONF=$ac_cv_prog_GETCONF
7677 if test -n "$GETCONF"; then
7678 echo "$as_me:$LINENO: result: $GETCONF" >&5
7679 echo "${ECHO_T}$GETCONF" >&6
7681 echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7686 if test -z "$ac_cv_prog_GETCONF"; then
7687 ac_ct_GETCONF=$GETCONF
7688 # Extract the first word of "getconf", so it can be a program name with args.
7689 set dummy getconf; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 if test -n "$ac_ct_GETCONF"; then
7696 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_ac_ct_GETCONF="getconf"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7715 if test -n "$ac_ct_GETCONF"; then
7716 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7717 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7719 echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7723 GETCONF=$ac_ct_GETCONF
7725 GETCONF="$ac_cv_prog_GETCONF"
7728 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7729 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7730 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7734 ac_cv_sys_largefile_CFLAGS=no
7736 # IRIX 6.2 and later require cc -n32.
7737 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7738 if test "$GCC" != yes; then
7739 ac_cv_sys_largefile_CFLAGS=-n32
7742 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7743 cat >conftest.$ac_ext <<_ACEOF
7744 #line $LINENO "configure"
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -s conftest$ac_exeext'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_sys_largefile_CFLAGS=no
7778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7784 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7785 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7786 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7787 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7791 ac_cv_sys_largefile_LDFLAGS=no
7795 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7796 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7797 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7798 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7799 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7803 ac_cv_sys_largefile_LIBS=no
7807 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7808 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7810 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7813 -D_FILE_OFFSET_BITS=*) ;;
7814 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7815 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7821 '') CPPFLAGS="$ac_flag" ;;
7822 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7830 '') CFLAGS="$ac_flag" ;;
7831 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7836 case "$ac_cv_sys_largefile_LDFLAGS" in
7840 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7841 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7844 case "$ac_cv_sys_largefile_LIBS" in
7848 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7849 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7852 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7853 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7854 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_cv_sys_file_offset_bits=no
7859 # HP-UX 10.20 and later
7860 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7861 ac_cv_sys_file_offset_bits=64 ;;
7863 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7865 -D_FILE_OFFSET_BITS)
7866 ac_cv_sys_file_offset_bits=1 ;;
7867 -D_FILE_OFFSET_BITS=*)
7868 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7873 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7874 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7875 if test "$ac_cv_sys_file_offset_bits" != no; then
7877 cat >>confdefs.h <<_ACEOF
7878 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7882 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7883 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7884 if test "${ac_cv_sys_largefile_source+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 ac_cv_sys_largefile_source=no
7889 # HP-UX 10.20 and later
7890 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7891 ac_cv_sys_largefile_source=1 ;;
7893 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7895 -D_LARGEFILE_SOURCE)
7896 ac_cv_sys_largefile_source=1 ;;
7897 -D_LARGEFILE_SOURCE=*)
7898 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7903 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7904 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7905 if test "$ac_cv_sys_largefile_source" != no; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7912 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7913 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7914 if test "${ac_cv_sys_large_files+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 ac_cv_sys_large_files=no
7920 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7921 ac_cv_sys_large_files=1 ;;
7923 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7926 ac_cv_sys_large_files=1 ;;
7928 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7933 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7934 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7935 if test "$ac_cv_sys_large_files" != no; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define _LARGE_FILES $ac_cv_sys_large_files
7946 echo "$as_me:$LINENO: checking for X" >&5
7947 echo $ECHO_N "checking for X... $ECHO_C" >&6
7950 # Check whether --with-x or --without-x was given.
7951 if test "${with_x+set}" = set; then
7955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7956 if test "x$with_x" = xno; then
7957 # The user explicitly disabled X.
7960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7961 # Both variables are already set.
7964 if test "${ac_cv_have_x+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 # One or both of the vars are not set, and there is no cached value.
7968 ac_x_includes=no ac_x_libraries=no
7970 if mkdir conftest.dir; then
7972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7973 cat >Imakefile <<'_ACEOF'
7975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7981 for ac_extension in a so sl; do
7982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7983 test -f $ac_im_libdir/libX11.$ac_extension; then
7984 ac_im_usrlibdir=$ac_im_libdir; break
7987 # Screen out bogus values from the imake configuration. They are
7988 # bogus both because they are the default anyway, and because
7989 # using them would break gcc on systems where it needs fixed includes.
7990 case $ac_im_incroot in
7992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7994 case $ac_im_usrlibdir in
7996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8003 # Standard set of common directories for X headers.
8004 # Check X11 before X11Rn because it is often a symlink to the current release.
8016 /usr/local/X11/include
8017 /usr/local/X11R6/include
8018 /usr/local/X11R5/include
8019 /usr/local/X11R4/include
8021 /usr/local/include/X11
8022 /usr/local/include/X11R6
8023 /usr/local/include/X11R5
8024 /usr/local/include/X11R4
8028 /usr/XFree86/include/X11
8032 /usr/unsupported/include
8034 /usr/local/x11r5/include
8035 /usr/lpp/Xamples/include
8037 /usr/openwin/include
8038 /usr/openwin/share/include'
8040 if test "$ac_x_includes" = no; then
8041 # Guess where to find include files, by looking for Intrinsic.h.
8042 # First, try using that file with no special directory specified.
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Intrinsic.h>
8052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8055 grep -v '^ *+' conftest.er1 >conftest.err
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } >/dev/null; then
8060 if test -s conftest.err; then
8061 ac_cpp_err=$ac_c_preproc_warn_flag
8068 if test -z "$ac_cpp_err"; then
8069 # We can compile using X headers with no special include directory.
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 for ac_dir in $ac_x_header_dirs; do
8076 if test -r "$ac_dir/X11/Intrinsic.h"; then
8077 ac_x_includes=$ac_dir
8082 rm -f conftest.err conftest.$ac_ext
8083 fi # $ac_x_includes = no
8085 if test "$ac_x_libraries" = no; then
8086 # Check for the libraries.
8087 # See if we find them without any special options.
8088 # Don't add to $LIBS permanently.
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <X11/Intrinsic.h>
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -s conftest$ac_exeext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8120 # We can link X programs with no special library path.
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8127 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8129 # Don't even attempt the hair of trying to link an X program!
8130 for ac_extension in a so sl; do
8131 if test -r $ac_dir/libXt.$ac_extension; then
8132 ac_x_libraries=$ac_dir
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 fi # $ac_x_libraries = no
8141 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8142 # Didn't find X anywhere. Cache the known absence of X.
8143 ac_cv_have_x="have_x=no"
8145 # Record where we found X for the cache.
8146 ac_cv_have_x="have_x=yes \
8147 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8152 eval "$ac_cv_have_x"
8155 if test "$have_x" != yes; then
8156 echo "$as_me:$LINENO: result: $have_x" >&5
8157 echo "${ECHO_T}$have_x" >&6
8160 # If each of the values was on the command line, it overrides each guess.
8161 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8162 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8163 # Update the cache value to reflect the command line values.
8164 ac_cv_have_x="have_x=yes \
8165 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8166 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8167 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8170 if test "$no_x" = yes; then
8171 # Not all programs may use this symbol, but it does not hurt to define it.
8173 cat >>confdefs.h <<\_ACEOF
8174 #define X_DISPLAY_MISSING 1
8177 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8179 if test -n "$x_includes"; then
8180 X_CFLAGS="$X_CFLAGS -I$x_includes"
8183 # It would also be nice to do this for all -L options, not just this one.
8184 if test -n "$x_libraries"; then
8185 X_LIBS="$X_LIBS -L$x_libraries"
8186 # For Solaris; some versions of Sun CC require a space after -R and
8187 # others require no space. Words are not sufficient . . . .
8188 case `(uname -sr) 2>/dev/null` in
8190 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8191 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8192 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8193 cat >conftest.$ac_ext <<_ACEOF
8194 #line $LINENO "configure"
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229 if test $ac_R_nospace = yes; then
8230 echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8232 X_LIBS="$X_LIBS -R$x_libraries"
8234 LIBS="$ac_xsave_LIBS -R $x_libraries"
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271 if test $ac_R_space = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274 X_LIBS="$X_LIBS -R $x_libraries"
8276 echo "$as_me:$LINENO: result: neither works" >&5
8277 echo "${ECHO_T}neither works" >&6
8284 # Check for system-dependent libraries X programs must link with.
8285 # Do this before checking for the system-independent R6 libraries
8286 # (-lICE), since we may need -lsocket or whatever for X linking.
8288 if test "$ISC" = yes; then
8289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8291 # Martyn Johnson says this is needed for Ultrix, if the X
8292 # libraries were built with DECnet support. And Karl Berry says
8293 # the Alpha needs dnet_stub (dnet does not exist).
8294 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8295 cat >conftest.$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8303 /* Override any gcc2 internal prototype to avoid an error. */
8307 /* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8309 char XOpenDisplay ();
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_check_lib_save_LIBS=$LIBS
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_dnet_dnet_ntoa=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_dnet_dnet_ntoa=no
8384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8389 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8390 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8393 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8394 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8395 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8396 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 ac_check_lib_save_LIBS=$LIBS
8400 LIBS="-ldnet_stub $LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8409 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426 (eval $ac_link) 2>&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_lib_dnet_stub_dnet_ntoa=no
8443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8446 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8447 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8448 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8449 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8455 LIBS="$ac_xsave_LIBS"
8457 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8458 # to get the SysV transport functions.
8459 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8461 # The nsl library prevents programs from opening the X display
8462 # on Irix 5.2, according to T.E. Dickey.
8463 # The functions gethostbyname, getservbyname, and inet_addr are
8464 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8465 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8466 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8467 if test "${ac_cv_func_gethostbyname+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char gethostbyname (); below.
8479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8480 <limits.h> exists even on freestanding compilers. */
8482 # include <limits.h>
8484 # include <assert.h>
8486 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8493 char gethostbyname ();
8494 /* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8500 char (*f) () = gethostbyname;
8509 return f != gethostbyname;
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_func_gethostbyname=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_cv_func_gethostbyname=no
8533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8535 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8536 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8538 if test $ac_cv_func_gethostbyname = no; then
8539 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8540 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8541 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_check_lib_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8554 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char gethostbyname ();
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_lib_nsl_gethostbyname=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_lib_nsl_gethostbyname=no
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8592 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8593 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8597 if test $ac_cv_lib_nsl_gethostbyname = no; then
8598 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8599 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8600 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 ac_check_lib_save_LIBS=$LIBS
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8613 /* Override any gcc2 internal prototype to avoid an error. */
8617 /* We use char because int might match the return type of a gcc2
8618 builtin and then its argument prototype would still apply. */
8619 char gethostbyname ();
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_cv_lib_bsd_gethostbyname=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_lib_bsd_gethostbyname=no
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8651 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8652 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8653 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8659 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8660 # socket/setsockopt and other routines are undefined under SCO ODT
8661 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8662 # on later versions), says Simon Leinen: it contains gethostby*
8663 # variants that don't use the name server (or something). -lsocket
8664 # must be given before -lnsl if both are needed. We assume that
8665 # if connect needs -lnsl, so does gethostbyname.
8666 echo "$as_me:$LINENO: checking for connect" >&5
8667 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8668 if test "${ac_cv_func_connect+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char connect (); below.
8680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681 <limits.h> exists even on freestanding compilers. */
8683 # include <limits.h>
8685 # include <assert.h>
8687 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8695 /* The GNU C library defines this for functions which it implements
8696 to always fail with ENOSYS. Some functions are actually named
8697 something starting with __ and the normal name is an alias. */
8698 #if defined (__stub_connect) || defined (__stub___connect)
8701 char (*f) () = connect;
8710 return f != connect;
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -s conftest$ac_exeext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 ac_cv_func_connect=yes
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 ac_cv_func_connect=no
8734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8736 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8737 echo "${ECHO_T}$ac_cv_func_connect" >&6
8739 if test $ac_cv_func_connect = no; then
8740 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8741 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8742 if test "${ac_cv_lib_socket_connect+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8755 /* Override any gcc2 internal prototype to avoid an error. */
8759 /* We use char because int might match the return type of a gcc2
8760 builtin and then its argument prototype would still apply. */
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_lib_socket_connect=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_cv_lib_socket_connect=no
8789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8793 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8794 if test $ac_cv_lib_socket_connect = yes; then
8795 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8800 # Guillermo Gomez says -lposix is necessary on A/UX.
8801 echo "$as_me:$LINENO: checking for remove" >&5
8802 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8803 if test "${ac_cv_func_remove+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 /* System header to define __stub macros and hopefully few prototypes,
8814 which can conflict with char remove (); below.
8815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8816 <limits.h> exists even on freestanding compilers. */
8818 # include <limits.h>
8820 # include <assert.h>
8822 /* Override any gcc2 internal prototype to avoid an error. */
8827 /* We use char because int might match the return type of a gcc2
8828 builtin and then its argument prototype would still apply. */
8830 /* The GNU C library defines this for functions which it implements
8831 to always fail with ENOSYS. Some functions are actually named
8832 something starting with __ and the normal name is an alias. */
8833 #if defined (__stub_remove) || defined (__stub___remove)
8836 char (*f) () = remove;
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_func_remove=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_func_remove=no
8869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8872 echo "${ECHO_T}$ac_cv_func_remove" >&6
8874 if test $ac_cv_func_remove = no; then
8875 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8876 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8877 if test "${ac_cv_lib_posix_remove+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-lposix $LIBS"
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 /* Override any gcc2 internal prototype to avoid an error. */
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_lib_posix_remove=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lib_posix_remove=no
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8928 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8929 if test $ac_cv_lib_posix_remove = yes; then
8930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8935 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8936 echo "$as_me:$LINENO: checking for shmat" >&5
8937 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8938 if test "${ac_cv_func_shmat+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 /* System header to define __stub macros and hopefully few prototypes,
8949 which can conflict with char shmat (); below.
8950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8951 <limits.h> exists even on freestanding compilers. */
8953 # include <limits.h>
8955 # include <assert.h>
8957 /* Override any gcc2 internal prototype to avoid an error. */
8962 /* We use char because int might match the return type of a gcc2
8963 builtin and then its argument prototype would still apply. */
8965 /* The GNU C library defines this for functions which it implements
8966 to always fail with ENOSYS. Some functions are actually named
8967 something starting with __ and the normal name is an alias. */
8968 #if defined (__stub_shmat) || defined (__stub___shmat)
8971 char (*f) () = shmat;
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_func_shmat=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9007 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9009 if test $ac_cv_func_shmat = no; then
9010 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9011 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9012 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 ac_check_lib_save_LIBS=$LIBS
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line $LINENO "configure"
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 /* Override any gcc2 internal prototype to avoid an error. */
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_lib_ipc_shmat=yes
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_cv_lib_ipc_shmat=no
9059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9062 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9063 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9064 if test $ac_cv_lib_ipc_shmat = yes; then
9065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9071 # Check for libraries that X11R6 Xt/Xaw programs need.
9072 ac_save_LDFLAGS=$LDFLAGS
9073 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9074 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9075 # check for ICE first), but we must link in the order -lSM -lICE or
9076 # we get undefined symbols. So assume we have SM if we have ICE.
9077 # These have to be linked with before -lX11, unlike the other
9078 # libraries we check for below, so use a different variable.
9079 # John Interrante, Karl Berry
9080 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9081 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9082 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9095 /* Override any gcc2 internal prototype to avoid an error. */
9099 /* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101 char IceConnectionNumber ();
9105 IceConnectionNumber ();
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112 (eval $ac_link) 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_lib_ICE_IceConnectionNumber=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_cv_lib_ICE_IceConnectionNumber=no
9129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9133 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9134 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9135 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9138 LDFLAGS=$ac_save_LDFLAGS
9198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200 echo "$as_me:$LINENO: checking for $ac_header" >&5
9201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9208 # Is the header compilable?
9209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9211 cat >conftest.$ac_ext <<_ACEOF
9212 #line $LINENO "configure"
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 $ac_includes_default
9219 #include <$ac_header>
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_header_compiler=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_header_compiler=no
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242 echo "${ECHO_T}$ac_header_compiler" >&6
9244 # Is the header present?
9245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 #include <$ac_header>
9256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9259 grep -v '^ *+' conftest.er1 >conftest.err
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } >/dev/null; then
9264 if test -s conftest.err; then
9265 ac_cpp_err=$ac_c_preproc_warn_flag
9272 if test -z "$ac_cpp_err"; then
9273 ac_header_preproc=yes
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_header_preproc=no
9280 rm -f conftest.err conftest.$ac_ext
9281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9282 echo "${ECHO_T}$ac_header_preproc" >&6
9284 # So? What about this header?
9285 case $ac_header_compiler:$ac_header_preproc in
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9293 ## ------------------------------------ ##
9294 ## Report this to bug-autoconf@gnu.org. ##
9295 ## ------------------------------------ ##
9298 sed "s/^/$as_me: WARNING: /" >&2
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9309 ## ------------------------------------ ##
9310 ## Report this to bug-autoconf@gnu.org. ##
9311 ## ------------------------------------ ##
9314 sed "s/^/$as_me: WARNING: /" >&2
9317 echo "$as_me:$LINENO: checking for $ac_header" >&5
9318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 eval "$as_ac_Header=$ac_header_preproc"
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9339 if test "${ac_cv_header_stdc+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_header_stdc=yes
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_cv_header_stdc=no
9381 rm -f conftest.$ac_objext conftest.$ac_ext
9383 if test $ac_cv_header_stdc = yes; then
9384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9396 $EGREP "memchr" >/dev/null 2>&1; then
9399 ac_cv_header_stdc=no
9405 if test $ac_cv_header_stdc = yes; then
9406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9407 cat >conftest.$ac_ext <<_ACEOF
9408 #line $LINENO "configure"
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9418 $EGREP "free" >/dev/null 2>&1; then
9421 ac_cv_header_stdc=no
9427 if test $ac_cv_header_stdc = yes; then
9428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9429 if test "$cross_compiling" = yes; then
9432 cat >conftest.$ac_ext <<_ACEOF
9433 #line $LINENO "configure"
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 #if ((' ' & 0x0FF) == 0x020)
9441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9444 # define ISLOWER(c) \
9445 (('a' <= (c) && (c) <= 'i') \
9446 || ('j' <= (c) && (c) <= 'r') \
9447 || ('s' <= (c) && (c) <= 'z'))
9448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9456 for (i = 0; i < 256; i++)
9457 if (XOR (islower (i), ISLOWER (i))
9458 || toupper (i) != TOUPPER (i))
9463 rm -f conftest$ac_exeext
9464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9465 (eval $ac_link) 2>&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9476 echo "$as_me: program exited with status $ac_status" >&5
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_cv_header_stdc=no
9483 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9489 if test $ac_cv_header_stdc = yes; then
9491 cat >>confdefs.h <<\_ACEOF
9492 #define STDC_HEADERS 1
9497 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9498 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9499 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 cat >conftest.$ac_ext <<_ACEOF
9503 #line $LINENO "configure"
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <sys/types.h>
9513 return makedev(0, 0);
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520 (eval $ac_link) 2>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -s conftest$ac_exeext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_cv_header_sys_types_h_makedev=yes
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_cv_header_sys_types_h_makedev=no
9537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9541 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9543 if test $ac_cv_header_sys_types_h_makedev = no; then
9544 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9545 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9546 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9547 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9551 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9553 # Is the header compilable?
9554 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9555 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9557 #line $LINENO "configure"
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 #include <sys/mkdev.h>
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_header_compiler=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_header_compiler=no
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9591 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 #include <sys/mkdev.h>
9601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } >/dev/null; then
9609 if test -s conftest.err; then
9610 ac_cpp_err=$ac_c_preproc_warn_flag
9617 if test -z "$ac_cpp_err"; then
9618 ac_header_preproc=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_header_preproc=no
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9629 # So? What about this header?
9630 case $ac_header_compiler:$ac_header_preproc in
9632 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9638 ## ------------------------------------ ##
9639 ## Report this to bug-autoconf@gnu.org. ##
9640 ## ------------------------------------ ##
9643 sed "s/^/$as_me: WARNING: /" >&2
9646 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9647 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9649 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9651 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9654 ## ------------------------------------ ##
9655 ## Report this to bug-autoconf@gnu.org. ##
9656 ## ------------------------------------ ##
9659 sed "s/^/$as_me: WARNING: /" >&2
9662 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9663 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9664 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9673 if test $ac_cv_header_sys_mkdev_h = yes; then
9675 cat >>confdefs.h <<\_ACEOF
9676 #define MAJOR_IN_MKDEV 1
9683 if test $ac_cv_header_sys_mkdev_h = no; then
9684 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9685 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9686 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9687 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9691 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9693 # Is the header compilable?
9694 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9695 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 $ac_includes_default
9704 #include <sys/sysmacros.h>
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -s conftest.$ac_objext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_header_compiler=yes
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_header_compiler=no
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9727 echo "${ECHO_T}$ac_header_compiler" >&6
9729 # Is the header present?
9730 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9731 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 #include <sys/sysmacros.h>
9741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } >/dev/null; then
9749 if test -s conftest.err; then
9750 ac_cpp_err=$ac_c_preproc_warn_flag
9757 if test -z "$ac_cpp_err"; then
9758 ac_header_preproc=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_header_preproc=no
9765 rm -f conftest.err conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9767 echo "${ECHO_T}$ac_header_preproc" >&6
9769 # So? What about this header?
9770 case $ac_header_compiler:$ac_header_preproc in
9772 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9775 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9778 ## ------------------------------------ ##
9779 ## Report this to bug-autoconf@gnu.org. ##
9780 ## ------------------------------------ ##
9783 sed "s/^/$as_me: WARNING: /" >&2
9786 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9787 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9789 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9791 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9794 ## ------------------------------------ ##
9795 ## Report this to bug-autoconf@gnu.org. ##
9796 ## ------------------------------------ ##
9799 sed "s/^/$as_me: WARNING: /" >&2
9802 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9803 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9804 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9810 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9813 if test $ac_cv_header_sys_sysmacros_h = yes; then
9815 cat >>confdefs.h <<\_ACEOF
9816 #define MAJOR_IN_SYSMACROS 1
9831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9833 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line $LINENO "configure"
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <sys/types.h>
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 eval "$as_ac_Header=yes"
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 eval "$as_ac_Header=no"
9876 rm -f conftest.$ac_objext conftest.$ac_ext
9878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9881 cat >>confdefs.h <<_ACEOF
9882 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9885 ac_header_dirent=$ac_hdr; break
9889 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9890 if test $ac_header_dirent = dirent.h; then
9891 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9892 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9893 if test "${ac_cv_search_opendir+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 ac_func_search_save_LIBS=$LIBS
9897 ac_cv_search_opendir=no
9898 cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_search_opendir="none required"
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9940 if test "$ac_cv_search_opendir" = no; then
9941 for ac_lib in dir; do
9942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9943 cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9951 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_search_opendir="-l$ac_lib"
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_func_search_save_LIBS
9990 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9991 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9992 if test "$ac_cv_search_opendir" != no; then
9993 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9998 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9999 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10000 if test "${ac_cv_search_opendir+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_func_search_save_LIBS=$LIBS
10004 ac_cv_search_opendir=no
10005 cat >conftest.$ac_ext <<_ACEOF
10006 #line $LINENO "configure"
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10013 /* Override any gcc2 internal prototype to avoid an error. */
10017 /* We use char because int might match the return type of a gcc2
10018 builtin and then its argument prototype would still apply. */
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10040 ac_cv_search_opendir="none required"
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10047 if test "$ac_cv_search_opendir" = no; then
10048 for ac_lib in x; do
10049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10058 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_search_opendir="-l$ac_lib"
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_func_search_save_LIBS
10097 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10098 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10099 if test "$ac_cv_search_opendir" != no; then
10100 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10106 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10107 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10108 if test "${ac_cv_header_stat_broken+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 cat >conftest.$ac_ext <<_ACEOF
10112 #line $LINENO "configure"
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <sys/types.h>
10119 #include <sys/stat.h>
10121 #if defined(S_ISBLK) && defined(S_IFDIR)
10122 # if S_ISBLK (S_IFDIR)
10127 #if defined(S_ISBLK) && defined(S_IFCHR)
10128 # if S_ISBLK (S_IFCHR)
10133 #if defined(S_ISLNK) && defined(S_IFREG)
10134 # if S_ISLNK (S_IFREG)
10139 #if defined(S_ISSOCK) && defined(S_IFREG)
10140 # if S_ISSOCK (S_IFREG)
10146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10147 $EGREP "You lose" >/dev/null 2>&1; then
10148 ac_cv_header_stat_broken=yes
10150 ac_cv_header_stat_broken=no
10155 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10156 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10157 if test $ac_cv_header_stat_broken = yes; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define STAT_MACROS_BROKEN 1
10165 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10166 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10167 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 #include <sys/types.h>
10178 #include <sys/wait.h>
10179 #ifndef WEXITSTATUS
10180 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10183 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_header_sys_wait_h=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_header_sys_wait_h=no
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10218 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10219 if test $ac_cv_header_sys_wait_h = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_SYS_WAIT_H 1
10227 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10228 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10229 if test "${ac_cv_header_time+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 cat >conftest.$ac_ext <<_ACEOF
10233 #line $LINENO "configure"
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 #include <sys/types.h>
10240 #include <sys/time.h>
10246 if ((struct tm *) 0)
10252 rm -f conftest.$ac_objext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -s conftest.$ac_objext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_header_time=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_header_time=no
10271 rm -f conftest.$ac_objext conftest.$ac_ext
10273 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10274 echo "${ECHO_T}$ac_cv_header_time" >&6
10275 if test $ac_cv_header_time = yes; then
10277 cat >>confdefs.h <<\_ACEOF
10278 #define TIME_WITH_SYS_TIME 1
10284 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10285 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10286 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 cat >conftest.$ac_ext <<_ACEOF
10290 #line $LINENO "configure"
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 $ac_includes_default
10300 static struct stat ac_aggr;
10301 if (ac_aggr.st_blksize)
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -s conftest.$ac_objext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_member_struct_stat_st_blksize=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 cat >conftest.$ac_ext <<_ACEOF
10325 #line $LINENO "configure"
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 $ac_includes_default
10335 static struct stat ac_aggr;
10336 if (sizeof ac_aggr.st_blksize)
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -s conftest.$ac_objext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_member_struct_stat_st_blksize=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_cv_member_struct_stat_st_blksize=no
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10363 rm -f conftest.$ac_objext conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10366 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10367 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10374 cat >>confdefs.h <<\_ACEOF
10375 #define HAVE_ST_BLKSIZE 1
10381 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10382 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10383 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393 $ac_includes_default
10397 static struct stat ac_aggr;
10398 if (ac_aggr.st_blocks)
10404 rm -f conftest.$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -s conftest.$ac_objext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
10416 ac_cv_member_struct_stat_st_blocks=yes
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line $LINENO "configure"
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 $ac_includes_default
10432 static struct stat ac_aggr;
10433 if (sizeof ac_aggr.st_blocks)
10439 rm -f conftest.$ac_objext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_cv_member_struct_stat_st_blocks=yes
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_cv_member_struct_stat_st_blocks=no
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10460 rm -f conftest.$ac_objext conftest.$ac_ext
10462 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10464 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_ST_BLOCKS 1
10476 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10480 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10482 if test "${ac_cv_struct_tm+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10486 #line $LINENO "configure"
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 #include <sys/types.h>
10498 struct tm *tp; tp->tm_sec;
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_struct_tm=time.h
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_struct_tm=sys/time.h
10522 rm -f conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10525 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10526 if test $ac_cv_struct_tm = sys/time.h; then
10528 cat >>confdefs.h <<\_ACEOF
10529 #define TM_IN_SYS_TIME 1
10534 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10535 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10536 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10540 #line $LINENO "configure"
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #include <sys/types.h>
10547 #include <$ac_cv_struct_tm>
10553 static struct tm ac_aggr;
10554 if (ac_aggr.tm_zone)
10560 rm -f conftest.$ac_objext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10562 (eval $ac_compile) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -s conftest.$ac_objext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_member_struct_tm_tm_zone=yes
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <sys/types.h>
10585 #include <$ac_cv_struct_tm>
10591 static struct tm ac_aggr;
10592 if (sizeof ac_aggr.tm_zone)
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -s conftest.$ac_objext'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; }; then
10610 ac_cv_member_struct_tm_tm_zone=yes
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10615 ac_cv_member_struct_tm_tm_zone=no
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10622 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10623 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_STRUCT_TM_TM_ZONE 1
10632 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_TM_ZONE 1
10639 echo "$as_me:$LINENO: checking for tzname" >&5
10640 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10641 if test "${ac_cv_var_tzname+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10652 #ifndef tzname /* For SGI. */
10653 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -s conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_var_tzname=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ac_cv_var_tzname=no
10683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10686 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10687 if test $ac_cv_var_tzname = yes; then
10689 cat >>confdefs.h <<\_ACEOF
10690 #define HAVE_TZNAME 1
10697 echo "$as_me:$LINENO: checking for utime.h" >&5
10698 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10699 if test "${ba_cv_header_utime_h+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10703 #line $LINENO "configure"
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10710 #include <sys/types.h>
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ba_cv_header_utime_h=yes
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ba_cv_header_utime_h=no
10739 rm -f conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10742 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10743 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10744 #define HAVE_UTIME_H 1
10748 echo "$as_me:$LINENO: checking for socklen_t" >&5
10749 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10750 if test "${ba_cv_header_socklen_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10754 #line $LINENO "configure"
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10761 #include <sys/types.h>
10762 #include <sys/socket.h>
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ba_cv_header_socklen_t=yes
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ba_cv_header_socklen_t=no
10790 rm -f conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10793 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10794 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_SOCKLEN_T 1
10799 echo "$as_me:$LINENO: checking for bigendian" >&5
10800 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10801 if test "${ba_cv_bigendian+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 if test "$cross_compiling" = yes; then
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10816 rm -f conftest$ac_exeext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ba_cv_bigendian=yes
10829 echo "$as_me: program exited with status $ac_status" >&5
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 ( exit $ac_status )
10836 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10839 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10840 echo "${ECHO_T}$ba_cv_bigendian" >&6
10841 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_BIGENDIAN 1
10847 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10849 if test "${ac_cv_c_const+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10853 #line $LINENO "configure"
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10863 /* FIXME: Include the comments suggested by Paul. */
10864 #ifndef __cplusplus
10865 /* Ultrix mips cc rejects this. */
10866 typedef int charset[2];
10868 /* SunOS 4.1.1 cc rejects this. */
10869 char const *const *ccp;
10871 /* NEC SVR4.0.2 mips cc rejects this. */
10872 struct point {int x, y;};
10873 static struct point const zero = {0,0};
10874 /* AIX XL C 1.02.0.0 rejects this.
10875 It does not let you subtract one const X* pointer from another in
10876 an arm of an if-expression whose if-part is not a constant
10878 const char *g = "string";
10879 ccp = &g + (g ? g-g : 0);
10880 /* HPUX 7.0 cc rejects these. */
10883 ccp = (char const *const *) p;
10884 { /* SCO 3.2v4 cc rejects this. */
10886 char const *s = 0 ? (char *) 0 : (char const *) 0;
10890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10891 int x[] = {25, 17};
10892 const int *foo = &x[0];
10895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10896 typedef const int *iptr;
10900 { /* AIX XL C 1.02.0.0 rejects this saying
10901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10902 struct s { int j; const int *ap[3]; };
10903 struct s *b; b->j = 5;
10905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10906 const int foo = 10;
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916 (eval $ac_compile) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -s conftest.$ac_objext'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10933 rm -f conftest.$ac_objext conftest.$ac_ext
10935 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10936 echo "${ECHO_T}$ac_cv_c_const" >&6
10937 if test $ac_cv_c_const = no; then
10939 cat >>confdefs.h <<\_ACEOF
10947 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10948 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10950 # The order of these tests is important.
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 #include <sys/statvfs.h>
10959 #include <sys/fstyp.h>
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10964 grep -v '^ *+' conftest.er1 >conftest.err
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev/null; then
10969 if test -s conftest.err; then
10970 ac_cpp_err=$ac_c_preproc_warn_flag
10977 if test -z "$ac_cpp_err"; then
10978 cat >>confdefs.h <<\_ACEOF
10979 #define FSTYPE_STATVFS 1
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10988 rm -f conftest.err conftest.$ac_ext
10989 if test $fstype = no; then
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <sys/statfs.h>
10998 #include <sys/fstyp.h>
11000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null; then
11008 if test -s conftest.err; then
11009 ac_cpp_err=$ac_c_preproc_warn_flag
11016 if test -z "$ac_cpp_err"; then
11017 cat >>confdefs.h <<\_ACEOF
11018 #define FSTYPE_USG_STATFS 1
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11027 rm -f conftest.err conftest.$ac_ext
11029 if test $fstype = no; then
11030 cat >conftest.$ac_ext <<_ACEOF
11031 #line $LINENO "configure"
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 #include <sys/statfs.h>
11038 #include <sys/vmount.h>
11040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11043 grep -v '^ *+' conftest.er1 >conftest.err
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } >/dev/null; then
11048 if test -s conftest.err; then
11049 ac_cpp_err=$ac_c_preproc_warn_flag
11056 if test -z "$ac_cpp_err"; then
11057 cat >>confdefs.h <<\_ACEOF
11058 #define FSTYPE_AIX_STATFS 1
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11067 rm -f conftest.err conftest.$ac_ext
11069 if test $fstype = no; then
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #include <mntent.h>
11079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11082 grep -v '^ *+' conftest.er1 >conftest.err
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } >/dev/null; then
11087 if test -s conftest.err; then
11088 ac_cpp_err=$ac_c_preproc_warn_flag
11095 if test -z "$ac_cpp_err"; then
11096 cat >>confdefs.h <<\_ACEOF
11097 #define FSTYPE_MNTENT 1
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11106 rm -f conftest.err conftest.$ac_ext
11108 if test $fstype = no; then
11109 cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 #include <sys/mount.h>
11119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11120 $EGREP "f_type;" >/dev/null 2>&1; then
11121 cat >>confdefs.h <<\_ACEOF
11122 #define FSTYPE_STATFS 1
11129 if test $fstype = no; then
11130 cat >conftest.$ac_ext <<_ACEOF
11131 #line $LINENO "configure"
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <sys/mount.h>
11138 #include <sys/fs_types.h>
11140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } >/dev/null; then
11148 if test -s conftest.err; then
11149 ac_cpp_err=$ac_c_preproc_warn_flag
11156 if test -z "$ac_cpp_err"; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define FSTYPE_GETMNT 1
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11167 rm -f conftest.err conftest.$ac_ext
11169 echo "$as_me:$LINENO: result: $fstype" >&5
11170 echo "${ECHO_T}$fstype" >&6
11172 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11173 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11174 if test "${ac_cv_type_signal+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 cat >conftest.$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 #include <sys/types.h>
11185 #include <signal.h>
11190 extern "C" void (*signal (int, void (*)(int)))(int);
11192 void (*signal ()) ();
11203 rm -f conftest.$ac_objext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 ac_cv_type_signal=void
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 ac_cv_type_signal=int
11222 rm -f conftest.$ac_objext conftest.$ac_ext
11224 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11225 echo "${ECHO_T}$ac_cv_type_signal" >&6
11227 cat >>confdefs.h <<_ACEOF
11228 #define RETSIGTYPE $ac_cv_type_signal
11233 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11234 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11235 if test "${bash_cv_signal_vintage+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <signal.h>
11252 struct sigaction sa;
11253 sigemptyset(&ss); sigsuspend(&ss);
11254 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11255 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263 (eval $ac_link) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -s conftest$ac_exeext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 bash_cv_signal_vintage=posix
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11279 cat >conftest.$ac_ext <<_ACEOF
11280 #line $LINENO "configure"
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 #include <signal.h>
11291 int mask = sigmask(SIGINT);
11292 sigsetmask(mask); sigblock(mask); sigpause(mask);
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 bash_cv_signal_vintage=4.2bsd
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11324 #include <signal.h>
11325 RETSIGTYPE foo() { }
11330 int mask = sigmask(SIGINT);
11331 sigset(SIGINT, foo); sigrelse(SIGINT);
11332 sighold(SIGINT); sigpause(SIGINT);
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11340 (eval $ac_link) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -s conftest$ac_exeext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 bash_cv_signal_vintage=svr3
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 bash_cv_signal_vintage=v7
11358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11369 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11370 if test "$bash_cv_signal_vintage" = posix; then
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_POSIX_SIGNALS 1
11375 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11376 cat >>confdefs.h <<\_ACEOF
11377 #define HAVE_BSD_SIGNALS 1
11380 elif test "$bash_cv_signal_vintage" = svr3; then
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_USG_SIGHOLD 1
11387 echo "$as_me:$LINENO: checking for mode_t" >&5
11388 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11389 if test "${ac_cv_type_mode_t+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 cat >conftest.$ac_ext <<_ACEOF
11393 #line $LINENO "configure"
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 $ac_includes_default
11405 if (sizeof (mode_t))
11411 rm -f conftest.$ac_objext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413 (eval $ac_compile) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -s conftest.$ac_objext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_type_mode_t=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_type_mode_t=no
11430 rm -f conftest.$ac_objext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11433 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11434 if test $ac_cv_type_mode_t = yes; then
11438 cat >>confdefs.h <<_ACEOF
11444 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11445 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11446 if test "${ac_cv_type_uid_t+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 #include <sys/types.h>
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "uid_t" >/dev/null 2>&1; then
11461 ac_cv_type_uid_t=yes
11463 ac_cv_type_uid_t=no
11468 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11469 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11470 if test $ac_cv_type_uid_t = no; then
11472 cat >>confdefs.h <<\_ACEOF
11477 cat >>confdefs.h <<\_ACEOF
11483 echo "$as_me:$LINENO: checking for size_t" >&5
11484 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11485 if test "${ac_cv_type_size_t+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 $ac_includes_default
11501 if (sizeof (size_t))
11507 rm -f conftest.$ac_objext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11509 (eval $ac_compile) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -s conftest.$ac_objext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 ac_cv_type_size_t=yes
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11524 ac_cv_type_size_t=no
11526 rm -f conftest.$ac_objext conftest.$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11529 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11530 if test $ac_cv_type_size_t = yes; then
11534 cat >>confdefs.h <<_ACEOF
11535 #define size_t unsigned
11540 echo "$as_me:$LINENO: checking for pid_t" >&5
11541 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11542 if test "${ac_cv_type_pid_t+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 cat >conftest.$ac_ext <<_ACEOF
11546 #line $LINENO "configure"
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 $ac_includes_default
11558 if (sizeof (pid_t))
11564 rm -f conftest.$ac_objext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_type_pid_t=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_cv_type_pid_t=no
11583 rm -f conftest.$ac_objext conftest.$ac_ext
11585 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11586 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11587 if test $ac_cv_type_pid_t = yes; then
11591 cat >>confdefs.h <<_ACEOF
11597 echo "$as_me:$LINENO: checking for off_t" >&5
11598 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11599 if test "${ac_cv_type_off_t+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 $ac_includes_default
11615 if (sizeof (off_t))
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_type_off_t=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_cv_type_off_t=no
11640 rm -f conftest.$ac_objext conftest.$ac_ext
11642 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11643 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11644 if test $ac_cv_type_off_t = yes; then
11648 cat >>confdefs.h <<_ACEOF
11654 echo "$as_me:$LINENO: checking for ino_t" >&5
11655 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11656 if test "${ac_cv_type_ino_t+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11660 #line $LINENO "configure"
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11672 if (sizeof (ino_t))
11678 rm -f conftest.$ac_objext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680 (eval $ac_compile) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_cv_type_ino_t=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_cv_type_ino_t=no
11697 rm -f conftest.$ac_objext conftest.$ac_ext
11699 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11700 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11701 if test $ac_cv_type_ino_t = yes; then
11705 cat >>confdefs.h <<_ACEOF
11706 #define ino_t unsigned long
11711 echo "$as_me:$LINENO: checking for dev_t" >&5
11712 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11713 if test "${ac_cv_type_dev_t+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 $ac_includes_default
11729 if (sizeof (dev_t))
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_type_dev_t=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_cv_type_dev_t=no
11754 rm -f conftest.$ac_objext conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11757 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11758 if test $ac_cv_type_dev_t = yes; then
11762 cat >>confdefs.h <<_ACEOF
11763 #define dev_t unsigned long
11768 echo "$as_me:$LINENO: checking for daddr_t" >&5
11769 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11770 if test "${ac_cv_type_daddr_t+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 cat >conftest.$ac_ext <<_ACEOF
11774 #line $LINENO "configure"
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11786 if (sizeof (daddr_t))
11792 rm -f conftest.$ac_objext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794 (eval $ac_compile) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_type_daddr_t=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_cv_type_daddr_t=no
11811 rm -f conftest.$ac_objext conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11815 if test $ac_cv_type_daddr_t = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define daddr_t long
11825 echo "$as_me:$LINENO: checking for major_t" >&5
11826 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11827 if test "${ac_cv_type_major_t+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >conftest.$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 $ac_includes_default
11843 if (sizeof (major_t))
11849 rm -f conftest.$ac_objext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851 (eval $ac_compile) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 ac_cv_type_major_t=yes
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_cv_type_major_t=no
11868 rm -f conftest.$ac_objext conftest.$ac_ext
11870 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11871 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11872 if test $ac_cv_type_major_t = yes; then
11876 cat >>confdefs.h <<_ACEOF
11877 #define major_t int
11882 echo "$as_me:$LINENO: checking for minor_t" >&5
11883 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11884 if test "${ac_cv_type_minor_t+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line $LINENO "configure"
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 $ac_includes_default
11900 if (sizeof (minor_t))
11906 rm -f conftest.$ac_objext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908 (eval $ac_compile) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_type_minor_t=yes
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_cv_type_minor_t=no
11925 rm -f conftest.$ac_objext conftest.$ac_ext
11927 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11928 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11929 if test $ac_cv_type_minor_t = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define minor_t int
11939 echo "$as_me:$LINENO: checking for ssize_t" >&5
11940 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11941 if test "${ac_cv_type_ssize_t+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11957 if (sizeof (ssize_t))
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_type_ssize_t=yes
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_cv_type_ssize_t=no
11982 rm -f conftest.$ac_objext conftest.$ac_ext
11984 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11985 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11986 if test $ac_cv_type_ssize_t = yes; then
11990 cat >>confdefs.h <<_ACEOF
11991 #define ssize_t int
11996 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11997 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11998 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 $ac_includes_default
12012 static struct stat ac_aggr;
12013 if (ac_aggr.st_blocks)
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021 (eval $ac_compile) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -s conftest.$ac_objext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_cv_member_struct_stat_st_blocks=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 $ac_includes_default
12047 static struct stat ac_aggr;
12048 if (sizeof ac_aggr.st_blocks)
12054 rm -f conftest.$ac_objext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12056 (eval $ac_compile) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -s conftest.$ac_objext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_member_struct_stat_st_blocks=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_cv_member_struct_stat_st_blocks=no
12073 rm -f conftest.$ac_objext conftest.$ac_ext
12075 rm -f conftest.$ac_objext conftest.$ac_ext
12077 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12078 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12079 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_ST_BLOCKS 1
12091 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12096 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12097 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12098 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 cat >conftest.$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12112 static struct stat ac_aggr;
12113 if (ac_aggr.st_rdev)
12119 rm -f conftest.$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121 (eval $ac_compile) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -s conftest.$ac_objext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_member_struct_stat_st_rdev=yes
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 $ac_includes_default
12147 static struct stat ac_aggr;
12148 if (sizeof ac_aggr.st_rdev)
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_member_struct_stat_st_rdev=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_member_struct_stat_st_rdev=no
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12175 rm -f conftest.$ac_objext conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12178 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12179 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define HAVE_STRUCT_STAT_ST_RDEV 1
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_ST_RDEV 1
12193 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12194 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12195 if test "${ac_cv_struct_tm+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12199 #line $LINENO "configure"
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 #include <sys/types.h>
12211 struct tm *tp; tp->tm_sec;
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218 (eval $ac_compile) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_struct_tm=time.h
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_struct_tm=sys/time.h
12235 rm -f conftest.$ac_objext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12238 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12239 if test $ac_cv_struct_tm = sys/time.h; then
12241 cat >>confdefs.h <<\_ACEOF
12242 #define TM_IN_SYS_TIME 1
12247 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12248 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12249 if test "${ac_cv_c_const+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12263 /* FIXME: Include the comments suggested by Paul. */
12264 #ifndef __cplusplus
12265 /* Ultrix mips cc rejects this. */
12266 typedef int charset[2];
12268 /* SunOS 4.1.1 cc rejects this. */
12269 char const *const *ccp;
12271 /* NEC SVR4.0.2 mips cc rejects this. */
12272 struct point {int x, y;};
12273 static struct point const zero = {0,0};
12274 /* AIX XL C 1.02.0.0 rejects this.
12275 It does not let you subtract one const X* pointer from another in
12276 an arm of an if-expression whose if-part is not a constant
12278 const char *g = "string";
12279 ccp = &g + (g ? g-g : 0);
12280 /* HPUX 7.0 cc rejects these. */
12283 ccp = (char const *const *) p;
12284 { /* SCO 3.2v4 cc rejects this. */
12286 char const *s = 0 ? (char *) 0 : (char const *) 0;
12290 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12291 int x[] = {25, 17};
12292 const int *foo = &x[0];
12295 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12296 typedef const int *iptr;
12300 { /* AIX XL C 1.02.0.0 rejects this saying
12301 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12302 struct s { int j; const int *ap[3]; };
12303 struct s *b; b->j = 5;
12305 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12306 const int foo = 10;
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12335 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12336 echo "${ECHO_T}$ac_cv_c_const" >&6
12337 if test $ac_cv_c_const = no; then
12339 cat >>confdefs.h <<\_ACEOF
12347 echo "$as_me:$LINENO: checking for char" >&5
12348 echo $ECHO_N "checking for char... $ECHO_C" >&6
12349 if test "${ac_cv_type_char+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 cat >conftest.$ac_ext <<_ACEOF
12353 #line $LINENO "configure"
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_type_char=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12390 rm -f conftest.$ac_objext conftest.$ac_ext
12392 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12393 echo "${ECHO_T}$ac_cv_type_char" >&6
12395 echo "$as_me:$LINENO: checking size of char" >&5
12396 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12397 if test "${ac_cv_sizeof_char+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 if test "$ac_cv_type_char" = yes; then
12401 # The cast to unsigned long works around a bug in the HP C Compiler
12402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12404 # This bug is HP SR number 8606223364.
12405 if test "$cross_compiling" = yes; then
12406 # Depending upon the size, compute the lo and hi bounds.
12407 cat >conftest.$ac_ext <<_ACEOF
12408 #line $LINENO "configure"
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 $ac_includes_default
12418 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12439 cat >conftest.$ac_ext <<_ACEOF
12440 #line $LINENO "configure"
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 $ac_includes_default
12450 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_hi=$ac_mid; break
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_lo=`expr $ac_mid + 1`
12475 if test $ac_lo -le $ac_mid; then
12479 ac_mid=`expr 2 '*' $ac_mid + 1`
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 $ac_includes_default
12498 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507 (eval $ac_compile) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -s conftest.$ac_objext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 $ac_includes_default
12530 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -s conftest.$ac_objext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_lo=$ac_mid; break
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_hi=`expr '(' $ac_mid ')' - 1`
12555 if test $ac_mid -le $ac_hi; then
12559 ac_mid=`expr 2 '*' $ac_mid`
12561 rm -f conftest.$ac_objext conftest.$ac_ext
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12572 # Binary search between lo and hi bounds.
12573 while test "x$ac_lo" != "x$ac_hi"; do
12574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12575 cat >conftest.$ac_ext <<_ACEOF
12576 #line $LINENO "configure"
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 $ac_includes_default
12586 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12593 rm -f conftest.$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595 (eval $ac_compile) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -s conftest.$ac_objext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_lo=`expr '(' $ac_mid ')' + 1`
12612 rm -f conftest.$ac_objext conftest.$ac_ext
12615 ?*) ac_cv_sizeof_char=$ac_lo;;
12616 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12617 See \`config.log' for more details." >&5
12618 echo "$as_me: error: cannot compute sizeof (char), 77
12619 See \`config.log' for more details." >&2;}
12620 { (exit 1); exit 1; }; } ;;
12623 if test "$cross_compiling" = yes; then
12624 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12625 See \`config.log' for more details." >&5
12626 echo "$as_me: error: cannot run test program while cross compiling
12627 See \`config.log' for more details." >&2;}
12628 { (exit 1); exit 1; }; }
12630 cat >conftest.$ac_ext <<_ACEOF
12631 #line $LINENO "configure"
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 $ac_includes_default
12638 long longval () { return (long) (sizeof (char)); }
12639 unsigned long ulongval () { return (long) (sizeof (char)); }
12641 #include <stdlib.h>
12646 FILE *f = fopen ("conftest.val", "w");
12649 if (((long) (sizeof (char))) < 0)
12651 long i = longval ();
12652 if (i != ((long) (sizeof (char))))
12654 fprintf (f, "%ld\n", i);
12658 unsigned long i = ulongval ();
12659 if (i != ((long) (sizeof (char))))
12661 fprintf (f, "%lu\n", i);
12663 exit (ferror (f) || fclose (f) != 0);
12669 rm -f conftest$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_cv_sizeof_char=`cat conftest.val`
12682 echo "$as_me: program exited with status $ac_status" >&5
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 ( exit $ac_status )
12687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12688 See \`config.log' for more details." >&5
12689 echo "$as_me: error: cannot compute sizeof (char), 77
12690 See \`config.log' for more details." >&2;}
12691 { (exit 1); exit 1; }; }
12693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12698 ac_cv_sizeof_char=0
12701 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12702 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12703 cat >>confdefs.h <<_ACEOF
12704 #define SIZEOF_CHAR $ac_cv_sizeof_char
12708 echo "$as_me:$LINENO: checking for short int" >&5
12709 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12710 if test "${ac_cv_type_short_int+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 $ac_includes_default
12724 if ((short int *) 0)
12726 if (sizeof (short int))
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_type_short_int=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_type_short_int=no
12751 rm -f conftest.$ac_objext conftest.$ac_ext
12753 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12754 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12756 echo "$as_me:$LINENO: checking size of short int" >&5
12757 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12758 if test "${ac_cv_sizeof_short_int+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 if test "$ac_cv_type_short_int" = yes; then
12762 # The cast to unsigned long works around a bug in the HP C Compiler
12763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12765 # This bug is HP SR number 8606223364.
12766 if test "$cross_compiling" = yes; then
12767 # Depending upon the size, compute the lo and hi bounds.
12768 cat >conftest.$ac_ext <<_ACEOF
12769 #line $LINENO "configure"
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775 $ac_includes_default
12779 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -s conftest.$ac_objext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12800 cat >conftest.$ac_ext <<_ACEOF
12801 #line $LINENO "configure"
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 $ac_includes_default
12811 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_hi=$ac_mid; break
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_lo=`expr $ac_mid + 1`
12836 if test $ac_lo -le $ac_mid; then
12840 ac_mid=`expr 2 '*' $ac_mid + 1`
12842 rm -f conftest.$ac_objext conftest.$ac_ext
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 $ac_includes_default
12859 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12866 rm -f conftest.$ac_objext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12868 (eval $ac_compile) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -s conftest.$ac_objext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12880 cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 $ac_includes_default
12891 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -s conftest.$ac_objext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_lo=$ac_mid; break
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_hi=`expr '(' $ac_mid ')' - 1`
12916 if test $ac_mid -le $ac_hi; then
12920 ac_mid=`expr 2 '*' $ac_mid`
12922 rm -f conftest.$ac_objext conftest.$ac_ext
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12930 rm -f conftest.$ac_objext conftest.$ac_ext
12932 rm -f conftest.$ac_objext conftest.$ac_ext
12933 # Binary search between lo and hi bounds.
12934 while test "x$ac_lo" != "x$ac_hi"; do
12935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12947 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ac_lo=`expr '(' $ac_mid ')' + 1`
12973 rm -f conftest.$ac_objext conftest.$ac_ext
12976 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12977 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12978 See \`config.log' for more details." >&5
12979 echo "$as_me: error: cannot compute sizeof (short int), 77
12980 See \`config.log' for more details." >&2;}
12981 { (exit 1); exit 1; }; } ;;
12984 if test "$cross_compiling" = yes; then
12985 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12986 See \`config.log' for more details." >&5
12987 echo "$as_me: error: cannot run test program while cross compiling
12988 See \`config.log' for more details." >&2;}
12989 { (exit 1); exit 1; }; }
12991 cat >conftest.$ac_ext <<_ACEOF
12992 #line $LINENO "configure"
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12998 $ac_includes_default
12999 long longval () { return (long) (sizeof (short int)); }
13000 unsigned long ulongval () { return (long) (sizeof (short int)); }
13002 #include <stdlib.h>
13007 FILE *f = fopen ("conftest.val", "w");
13010 if (((long) (sizeof (short int))) < 0)
13012 long i = longval ();
13013 if (i != ((long) (sizeof (short int))))
13015 fprintf (f, "%ld\n", i);
13019 unsigned long i = ulongval ();
13020 if (i != ((long) (sizeof (short int))))
13022 fprintf (f, "%lu\n", i);
13024 exit (ferror (f) || fclose (f) != 0);
13030 rm -f conftest$ac_exeext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13032 (eval $ac_link) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_sizeof_short_int=`cat conftest.val`
13043 echo "$as_me: program exited with status $ac_status" >&5
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 ( exit $ac_status )
13048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13049 See \`config.log' for more details." >&5
13050 echo "$as_me: error: cannot compute sizeof (short int), 77
13051 See \`config.log' for more details." >&2;}
13052 { (exit 1); exit 1; }; }
13054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13059 ac_cv_sizeof_short_int=0
13062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13063 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13069 echo "$as_me:$LINENO: checking for int" >&5
13070 echo $ECHO_N "checking for int... $ECHO_C" >&6
13071 if test "${ac_cv_type_int+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 $ac_includes_default
13093 rm -f conftest.$ac_objext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13095 (eval $ac_compile) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13112 rm -f conftest.$ac_objext conftest.$ac_ext
13114 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13115 echo "${ECHO_T}$ac_cv_type_int" >&6
13117 echo "$as_me:$LINENO: checking size of int" >&5
13118 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13119 if test "${ac_cv_sizeof_int+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 if test "$ac_cv_type_int" = yes; then
13123 # The cast to unsigned long works around a bug in the HP C Compiler
13124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13126 # This bug is HP SR number 8606223364.
13127 if test "$cross_compiling" = yes; then
13128 # Depending upon the size, compute the lo and hi bounds.
13129 cat >conftest.$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 $ac_includes_default
13140 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13147 rm -f conftest.$ac_objext
13148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149 (eval $ac_compile) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -s conftest.$ac_objext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13161 cat >conftest.$ac_ext <<_ACEOF
13162 #line $LINENO "configure"
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13172 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -s conftest.$ac_objext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_hi=$ac_mid; break
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ac_lo=`expr $ac_mid + 1`
13197 if test $ac_lo -le $ac_mid; then
13201 ac_mid=`expr 2 '*' $ac_mid + 1`
13203 rm -f conftest.$ac_objext conftest.$ac_ext
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 cat >conftest.$ac_ext <<_ACEOF
13210 #line $LINENO "configure"
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 $ac_includes_default
13220 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13227 rm -f conftest.$ac_objext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229 (eval $ac_compile) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13241 cat >conftest.$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13252 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_lo=$ac_mid; break
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_hi=`expr '(' $ac_mid ')' - 1`
13277 if test $ac_mid -le $ac_hi; then
13281 ac_mid=`expr 2 '*' $ac_mid`
13283 rm -f conftest.$ac_objext conftest.$ac_ext
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13291 rm -f conftest.$ac_objext conftest.$ac_ext
13293 rm -f conftest.$ac_objext conftest.$ac_ext
13294 # Binary search between lo and hi bounds.
13295 while test "x$ac_lo" != "x$ac_hi"; do
13296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13297 cat >conftest.$ac_ext <<_ACEOF
13298 #line $LINENO "configure"
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13308 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -s conftest.$ac_objext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 ac_lo=`expr '(' $ac_mid ')' + 1`
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13337 ?*) ac_cv_sizeof_int=$ac_lo;;
13338 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13339 See \`config.log' for more details." >&5
13340 echo "$as_me: error: cannot compute sizeof (int), 77
13341 See \`config.log' for more details." >&2;}
13342 { (exit 1); exit 1; }; } ;;
13345 if test "$cross_compiling" = yes; then
13346 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13347 See \`config.log' for more details." >&5
13348 echo "$as_me: error: cannot run test program while cross compiling
13349 See \`config.log' for more details." >&2;}
13350 { (exit 1); exit 1; }; }
13352 cat >conftest.$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 $ac_includes_default
13360 long longval () { return (long) (sizeof (int)); }
13361 unsigned long ulongval () { return (long) (sizeof (int)); }
13363 #include <stdlib.h>
13368 FILE *f = fopen ("conftest.val", "w");
13371 if (((long) (sizeof (int))) < 0)
13373 long i = longval ();
13374 if (i != ((long) (sizeof (int))))
13376 fprintf (f, "%ld\n", i);
13380 unsigned long i = ulongval ();
13381 if (i != ((long) (sizeof (int))))
13383 fprintf (f, "%lu\n", i);
13385 exit (ferror (f) || fclose (f) != 0);
13391 rm -f conftest$ac_exeext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13393 (eval $ac_link) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_sizeof_int=`cat conftest.val`
13404 echo "$as_me: program exited with status $ac_status" >&5
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13408 ( exit $ac_status )
13409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13410 See \`config.log' for more details." >&5
13411 echo "$as_me: error: cannot compute sizeof (int), 77
13412 See \`config.log' for more details." >&2;}
13413 { (exit 1); exit 1; }; }
13415 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13424 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13425 cat >>confdefs.h <<_ACEOF
13426 #define SIZEOF_INT $ac_cv_sizeof_int
13430 echo "$as_me:$LINENO: checking for long int" >&5
13431 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13432 if test "${ac_cv_type_long_int+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 cat >conftest.$ac_ext <<_ACEOF
13436 #line $LINENO "configure"
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13446 if ((long int *) 0)
13448 if (sizeof (long int))
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_cv_type_long_int=yes
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ac_cv_type_long_int=no
13473 rm -f conftest.$ac_objext conftest.$ac_ext
13475 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13476 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13478 echo "$as_me:$LINENO: checking size of long int" >&5
13479 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13480 if test "${ac_cv_sizeof_long_int+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 if test "$ac_cv_type_long_int" = yes; then
13484 # The cast to unsigned long works around a bug in the HP C Compiler
13485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13487 # This bug is HP SR number 8606223364.
13488 if test "$cross_compiling" = yes; then
13489 # Depending upon the size, compute the lo and hi bounds.
13490 cat >conftest.$ac_ext <<_ACEOF
13491 #line $LINENO "configure"
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13501 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13508 rm -f conftest.$ac_objext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510 (eval $ac_compile) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13522 cat >conftest.$ac_ext <<_ACEOF
13523 #line $LINENO "configure"
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 $ac_includes_default
13533 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13540 rm -f conftest.$ac_objext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542 (eval $ac_compile) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -s conftest.$ac_objext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_hi=$ac_mid; break
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ac_lo=`expr $ac_mid + 1`
13558 if test $ac_lo -le $ac_mid; then
13562 ac_mid=`expr 2 '*' $ac_mid + 1`
13564 rm -f conftest.$ac_objext conftest.$ac_ext
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 $ac_includes_default
13581 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13588 rm -f conftest.$ac_objext
13589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13590 (eval $ac_compile) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13602 cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 $ac_includes_default
13613 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13620 rm -f conftest.$ac_objext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_lo=$ac_mid; break
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_hi=`expr '(' $ac_mid ')' - 1`
13638 if test $ac_mid -le $ac_hi; then
13642 ac_mid=`expr 2 '*' $ac_mid`
13644 rm -f conftest.$ac_objext conftest.$ac_ext
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13652 rm -f conftest.$ac_objext conftest.$ac_ext
13654 rm -f conftest.$ac_objext conftest.$ac_ext
13655 # Binary search between lo and hi bounds.
13656 while test "x$ac_lo" != "x$ac_hi"; do
13657 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13658 cat >conftest.$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 $ac_includes_default
13669 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_lo=`expr '(' $ac_mid ')' + 1`
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13698 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13699 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13700 See \`config.log' for more details." >&5
13701 echo "$as_me: error: cannot compute sizeof (long int), 77
13702 See \`config.log' for more details." >&2;}
13703 { (exit 1); exit 1; }; } ;;
13706 if test "$cross_compiling" = yes; then
13707 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13708 See \`config.log' for more details." >&5
13709 echo "$as_me: error: cannot run test program while cross compiling
13710 See \`config.log' for more details." >&2;}
13711 { (exit 1); exit 1; }; }
13713 cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13721 long longval () { return (long) (sizeof (long int)); }
13722 unsigned long ulongval () { return (long) (sizeof (long int)); }
13724 #include <stdlib.h>
13729 FILE *f = fopen ("conftest.val", "w");
13732 if (((long) (sizeof (long int))) < 0)
13734 long i = longval ();
13735 if (i != ((long) (sizeof (long int))))
13737 fprintf (f, "%ld\n", i);
13741 unsigned long i = ulongval ();
13742 if (i != ((long) (sizeof (long int))))
13744 fprintf (f, "%lu\n", i);
13746 exit (ferror (f) || fclose (f) != 0);
13752 rm -f conftest$ac_exeext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13754 (eval $ac_link) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_sizeof_long_int=`cat conftest.val`
13765 echo "$as_me: program exited with status $ac_status" >&5
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ( exit $ac_status )
13770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13771 See \`config.log' for more details." >&5
13772 echo "$as_me: error: cannot compute sizeof (long int), 77
13773 See \`config.log' for more details." >&2;}
13774 { (exit 1); exit 1; }; }
13776 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13781 ac_cv_sizeof_long_int=0
13784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13785 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13786 cat >>confdefs.h <<_ACEOF
13787 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13791 echo "$as_me:$LINENO: checking for long long int" >&5
13792 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13793 if test "${ac_cv_type_long_long_int+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13797 #line $LINENO "configure"
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 $ac_includes_default
13807 if ((long long int *) 0)
13809 if (sizeof (long long int))
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_type_long_long_int=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_type_long_long_int=no
13834 rm -f conftest.$ac_objext conftest.$ac_ext
13836 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13837 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13839 echo "$as_me:$LINENO: checking size of long long int" >&5
13840 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13841 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 if test "$ac_cv_type_long_long_int" = yes; then
13845 # The cast to unsigned long works around a bug in the HP C Compiler
13846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13848 # This bug is HP SR number 8606223364.
13849 if test "$cross_compiling" = yes; then
13850 # Depending upon the size, compute the lo and hi bounds.
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 $ac_includes_default
13862 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13869 rm -f conftest.$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871 (eval $ac_compile) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -s conftest.$ac_objext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13883 cat >conftest.$ac_ext <<_ACEOF
13884 #line $LINENO "configure"
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13894 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13901 rm -f conftest.$ac_objext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903 (eval $ac_compile) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -s conftest.$ac_objext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_hi=$ac_mid; break
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ac_lo=`expr $ac_mid + 1`
13919 if test $ac_lo -le $ac_mid; then
13923 ac_mid=`expr 2 '*' $ac_mid + 1`
13925 rm -f conftest.$ac_objext conftest.$ac_ext
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 cat >conftest.$ac_ext <<_ACEOF
13932 #line $LINENO "configure"
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 $ac_includes_default
13942 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13949 rm -f conftest.$ac_objext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13951 (eval $ac_compile) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13963 cat >conftest.$ac_ext <<_ACEOF
13964 #line $LINENO "configure"
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 $ac_includes_default
13974 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_lo=$ac_mid; break
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_hi=`expr '(' $ac_mid ')' - 1`
13999 if test $ac_mid -le $ac_hi; then
14003 ac_mid=`expr 2 '*' $ac_mid`
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14015 rm -f conftest.$ac_objext conftest.$ac_ext
14016 # Binary search between lo and hi bounds.
14017 while test "x$ac_lo" != "x$ac_hi"; do
14018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14019 cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 $ac_includes_default
14030 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_lo=`expr '(' $ac_mid ')' + 1`
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14059 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14061 See \`config.log' for more details." >&5
14062 echo "$as_me: error: cannot compute sizeof (long long int), 77
14063 See \`config.log' for more details." >&2;}
14064 { (exit 1); exit 1; }; } ;;
14067 if test "$cross_compiling" = yes; then
14068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14069 See \`config.log' for more details." >&5
14070 echo "$as_me: error: cannot run test program while cross compiling
14071 See \`config.log' for more details." >&2;}
14072 { (exit 1); exit 1; }; }
14074 cat >conftest.$ac_ext <<_ACEOF
14075 #line $LINENO "configure"
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 $ac_includes_default
14082 long longval () { return (long) (sizeof (long long int)); }
14083 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14085 #include <stdlib.h>
14090 FILE *f = fopen ("conftest.val", "w");
14093 if (((long) (sizeof (long long int))) < 0)
14095 long i = longval ();
14096 if (i != ((long) (sizeof (long long int))))
14098 fprintf (f, "%ld\n", i);
14102 unsigned long i = ulongval ();
14103 if (i != ((long) (sizeof (long long int))))
14105 fprintf (f, "%lu\n", i);
14107 exit (ferror (f) || fclose (f) != 0);
14113 rm -f conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115 (eval $ac_link) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_sizeof_long_long_int=`cat conftest.val`
14126 echo "$as_me: program exited with status $ac_status" >&5
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ( exit $ac_status )
14131 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14132 See \`config.log' for more details." >&5
14133 echo "$as_me: error: cannot compute sizeof (long long int), 77
14134 See \`config.log' for more details." >&2;}
14135 { (exit 1); exit 1; }; }
14137 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14142 ac_cv_sizeof_long_long_int=0
14145 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14146 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14147 cat >>confdefs.h <<_ACEOF
14148 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14152 echo "$as_me:$LINENO: checking for int *" >&5
14153 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14154 if test "${ac_cv_type_int_p+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 $ac_includes_default
14170 if (sizeof (int *))
14176 rm -f conftest.$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_type_int_p=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_type_int_p=no
14195 rm -f conftest.$ac_objext conftest.$ac_ext
14197 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14198 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14200 echo "$as_me:$LINENO: checking size of int *" >&5
14201 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14202 if test "${ac_cv_sizeof_int_p+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 if test "$ac_cv_type_int_p" = yes; then
14206 # The cast to unsigned long works around a bug in the HP C Compiler
14207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14209 # This bug is HP SR number 8606223364.
14210 if test "$cross_compiling" = yes; then
14211 # Depending upon the size, compute the lo and hi bounds.
14212 cat >conftest.$ac_ext <<_ACEOF
14213 #line $LINENO "configure"
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 $ac_includes_default
14223 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14244 cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 $ac_includes_default
14255 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 ac_hi=$ac_mid; break
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ac_lo=`expr $ac_mid + 1`
14280 if test $ac_lo -le $ac_mid; then
14284 ac_mid=`expr 2 '*' $ac_mid + 1`
14286 rm -f conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14303 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312 (eval $ac_compile) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -s conftest.$ac_objext'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }; then
14324 cat >conftest.$ac_ext <<_ACEOF
14325 #line $LINENO "configure"
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 $ac_includes_default
14335 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_lo=$ac_mid; break
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_hi=`expr '(' $ac_mid ')' - 1`
14360 if test $ac_mid -le $ac_hi; then
14364 ac_mid=`expr 2 '*' $ac_mid`
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14374 rm -f conftest.$ac_objext conftest.$ac_ext
14376 rm -f conftest.$ac_objext conftest.$ac_ext
14377 # Binary search between lo and hi bounds.
14378 while test "x$ac_lo" != "x$ac_hi"; do
14379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 $ac_includes_default
14391 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400 (eval $ac_compile) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -s conftest.$ac_objext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_lo=`expr '(' $ac_mid ')' + 1`
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14420 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14422 See \`config.log' for more details." >&5
14423 echo "$as_me: error: cannot compute sizeof (int *), 77
14424 See \`config.log' for more details." >&2;}
14425 { (exit 1); exit 1; }; } ;;
14428 if test "$cross_compiling" = yes; then
14429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14430 See \`config.log' for more details." >&5
14431 echo "$as_me: error: cannot run test program while cross compiling
14432 See \`config.log' for more details." >&2;}
14433 { (exit 1); exit 1; }; }
14435 cat >conftest.$ac_ext <<_ACEOF
14436 #line $LINENO "configure"
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 $ac_includes_default
14443 long longval () { return (long) (sizeof (int *)); }
14444 unsigned long ulongval () { return (long) (sizeof (int *)); }
14446 #include <stdlib.h>
14451 FILE *f = fopen ("conftest.val", "w");
14454 if (((long) (sizeof (int *))) < 0)
14456 long i = longval ();
14457 if (i != ((long) (sizeof (int *))))
14459 fprintf (f, "%ld\n", i);
14463 unsigned long i = ulongval ();
14464 if (i != ((long) (sizeof (int *))))
14466 fprintf (f, "%lu\n", i);
14468 exit (ferror (f) || fclose (f) != 0);
14474 rm -f conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_sizeof_int_p=`cat conftest.val`
14487 echo "$as_me: program exited with status $ac_status" >&5
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ( exit $ac_status )
14492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14493 See \`config.log' for more details." >&5
14494 echo "$as_me: error: cannot compute sizeof (int *), 77
14495 See \`config.log' for more details." >&2;}
14496 { (exit 1); exit 1; }; }
14498 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14503 ac_cv_sizeof_int_p=0
14506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14507 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14508 cat >>confdefs.h <<_ACEOF
14509 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14514 # Check for sys/types.h types
14515 echo "$as_me:$LINENO: checking for u_int type" >&5
14516 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14517 if test "${ac_cv_have_u_int+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 cat >conftest.$ac_ext <<_ACEOF
14522 #line $LINENO "configure"
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <sys/types.h>
14537 rm -f conftest.$ac_objext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_have_u_int="yes"
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ac_cv_have_u_int="no"
14557 rm -f conftest.$ac_objext conftest.$ac_ext
14560 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14561 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14562 if test "x$ac_cv_have_u_int" = "xyes" ; then
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_U_INT 1
14570 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14571 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14572 if test "${ac_cv_have_intmax_t+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 #include <sys/types.h>
14592 rm -f conftest.$ac_objext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_have_intmax_t="yes"
14606 echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 #include <stdint.h>
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628 (eval $ac_compile) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_have_intmax_t="yes"
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_cv_have_intmax_t="no"
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14650 rm -f conftest.$ac_objext conftest.$ac_ext
14654 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14655 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14656 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_INTMAX_T 1
14665 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14666 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14667 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 cat >conftest.$ac_ext <<_ACEOF
14672 #line $LINENO "configure"
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <sys/types.h>
14682 u_intmax_t a; a = 1;
14687 rm -f conftest.$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689 (eval $ac_compile) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -s conftest.$ac_objext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14699 ac_cv_have_u_intmax_t="yes"
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <stdint.h>
14716 u_intmax_t a; a = 1;
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -s conftest.$ac_objext'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14733 ac_cv_have_u_intmax_t="yes"
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 ac_cv_have_u_intmax_t="no"
14741 rm -f conftest.$ac_objext conftest.$ac_ext
14745 rm -f conftest.$ac_objext conftest.$ac_ext
14748 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14749 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14750 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14751 cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_U_INTMAX_T 1
14759 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14760 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14761 if test "${ac_cv_have_intxx_t+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 cat >conftest.$ac_ext <<_ACEOF
14766 #line $LINENO "configure"
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 #include <sys/types.h>
14776 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783 (eval $ac_compile) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_cv_have_intxx_t="yes"
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 ac_cv_have_intxx_t="no"
14801 rm -f conftest.$ac_objext conftest.$ac_ext
14804 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14805 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14806 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14807 cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_INTXX_T 1
14814 echo "$as_me:$LINENO: checking for int64_t type" >&5
14815 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14816 if test "${ac_cv_have_int64_t+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14821 #line $LINENO "configure"
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <sys/types.h>
14836 rm -f conftest.$ac_objext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14838 (eval $ac_compile) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -s conftest.$ac_objext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_cv_have_int64_t="yes"
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_cv_have_int64_t="no"
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14859 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14860 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14861 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14862 cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_INT64_T 1
14869 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14870 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14871 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 cat >conftest.$ac_ext <<_ACEOF
14876 #line $LINENO "configure"
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <sys/types.h>
14886 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893 (eval $ac_compile) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_have_u_intxx_t="yes"
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ac_cv_have_u_intxx_t="no"
14911 rm -f conftest.$ac_objext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14915 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14916 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_U_INTXX_T 1
14924 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14925 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14926 if test "${ac_cv_have_u_int64_t+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <sys/types.h>
14941 u_int64_t a; a = 1;
14946 rm -f conftest.$ac_objext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948 (eval $ac_compile) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_have_u_int64_t="yes"
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_cv_have_u_int64_t="no"
14966 rm -f conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14970 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14971 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14972 cat >>confdefs.h <<\_ACEOF
14973 #define HAVE_U_INT64_T 1
14979 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14980 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14982 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14983 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 #include <sys/bitypes.h>
14995 int8_t a; int16_t b; int32_t c;
14996 u_int8_t e; u_int16_t f; u_int32_t g;
14997 a = b = c = e = f = g = 1;
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_U_INTXX_T 1
15018 cat >>confdefs.h <<\_ACEOF
15019 #define HAVE_INTXX_T 1
15022 cat >>confdefs.h <<\_ACEOF
15023 #define HAVE_SYS_BITYPES_H 1
15026 echo "$as_me:$LINENO: result: yes" >&5
15027 echo "${ECHO_T}yes" >&6
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 echo "$as_me:$LINENO: result: no" >&5
15033 echo "${ECHO_T}no" >&6
15036 rm -f conftest.$ac_objext conftest.$ac_ext
15039 if test -z "$have_u_intxx_t" ; then
15040 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15041 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15042 if test "${ac_cv_have_uintxx_t+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 cat >conftest.$ac_ext <<_ACEOF
15047 #line $LINENO "configure"
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 #include <sys/types.h>
15057 uint8_t a; uint16_t b;
15058 uint32_t c; a = b = c = 1;
15063 rm -f conftest.$ac_objext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -s conftest.$ac_objext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_cv_have_uintxx_t="yes"
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_cv_have_uintxx_t="no"
15083 rm -f conftest.$ac_objext conftest.$ac_ext
15086 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15087 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15088 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_UINTXX_T 1
15096 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15097 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15099 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15100 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #include <sys/bitypes.h>
15112 int64_t a; u_int64_t b;
15118 rm -f conftest.$ac_objext
15119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15120 (eval $ac_compile) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 cat >>confdefs.h <<\_ACEOF
15131 #define HAVE_U_INT64_T 1
15134 cat >>confdefs.h <<\_ACEOF
15135 #define HAVE_INT64_T 1
15138 echo "$as_me:$LINENO: result: yes" >&5
15139 echo "${ECHO_T}yes" >&6
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15144 echo "$as_me:$LINENO: result: no" >&5
15145 echo "${ECHO_T}no" >&6
15148 rm -f conftest.$ac_objext conftest.$ac_ext
15151 if (test -z "$have_uintxx_t" && \
15152 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15154 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15155 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15157 #line $LINENO "configure"
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 #include <sys/bitypes.h>
15167 uint8_t a; uint16_t b;
15168 uint32_t c; a = b = c = 1;
15173 rm -f conftest.$ac_objext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175 (eval $ac_compile) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_UINTXX_T 1
15189 echo "$as_me:$LINENO: result: yes" >&5
15190 echo "${ECHO_T}yes" >&6
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 echo "$as_me:$LINENO: result: no" >&5
15196 echo "${ECHO_T}no" >&6
15199 rm -f conftest.$ac_objext conftest.$ac_ext
15235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15236 echo "$as_me:$LINENO: checking for $ac_func" >&5
15237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_var+set}\" = set"; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.$ac_ext <<_ACEOF
15242 #line $LINENO "configure"
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 /* System header to define __stub macros and hopefully few prototypes,
15249 which can conflict with char $ac_func (); below.
15250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15251 <limits.h> exists even on freestanding compilers. */
15253 # include <limits.h>
15255 # include <assert.h>
15257 /* Override any gcc2 internal prototype to avoid an error. */
15262 /* We use char because int might match the return type of a gcc2
15263 builtin and then its argument prototype would still apply. */
15265 /* The GNU C library defines this for functions which it implements
15266 to always fail with ENOSYS. Some functions are actually named
15267 something starting with __ and the normal name is an alias. */
15268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15271 char (*f) () = $ac_func;
15280 return f != $ac_func;
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287 (eval $ac_link) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -s conftest$ac_exeext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 eval "$as_ac_var=yes"
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 eval "$as_ac_var=no"
15304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15308 if test `eval echo '${'$as_ac_var'}'` = yes; then
15309 cat >>confdefs.h <<_ACEOF
15310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15314 echo 'configure: cannot find needed function.'; exit 1
15321 for ac_func in fchdir
15323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15324 echo "$as_me:$LINENO: checking for $ac_func" >&5
15325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15326 if eval "test \"\${$as_ac_var+set}\" = set"; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 cat >conftest.$ac_ext <<_ACEOF
15330 #line $LINENO "configure"
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 /* System header to define __stub macros and hopefully few prototypes,
15337 which can conflict with char $ac_func (); below.
15338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15339 <limits.h> exists even on freestanding compilers. */
15341 # include <limits.h>
15343 # include <assert.h>
15345 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15359 char (*f) () = $ac_func;
15368 return f != $ac_func;
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 eval "$as_ac_var=yes"
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 eval "$as_ac_var=no"
15392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15400 cat >>confdefs.h <<\_ACEOF
15401 #define HAVE_FCHDIR 1
15408 for ac_func in strtoll
15410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411 echo "$as_me:$LINENO: checking for $ac_func" >&5
15412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_var+set}\" = set"; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15428 # include <limits.h>
15430 # include <assert.h>
15432 /* Override any gcc2 internal prototype to avoid an error. */
15437 /* We use char because int might match the return type of a gcc2
15438 builtin and then its argument prototype would still apply. */
15440 /* The GNU C library defines this for functions which it implements
15441 to always fail with ENOSYS. Some functions are actually named
15442 something starting with __ and the normal name is an alias. */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15446 char (*f) () = $ac_func;
15455 return f != $ac_func;
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462 (eval $ac_link) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 eval "$as_ac_var=yes"
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 eval "$as_ac_var=no"
15479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483 if test `eval echo '${'$as_ac_var'}'` = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_STRTOLL 1
15496 for ac_func in chflags
15498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15499 echo "$as_me:$LINENO: checking for $ac_func" >&5
15500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15501 if eval "test \"\${$as_ac_var+set}\" = set"; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 cat >conftest.$ac_ext <<_ACEOF
15505 #line $LINENO "configure"
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 /* System header to define __stub macros and hopefully few prototypes,
15512 which can conflict with char $ac_func (); below.
15513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15514 <limits.h> exists even on freestanding compilers. */
15516 # include <limits.h>
15518 # include <assert.h>
15520 /* Override any gcc2 internal prototype to avoid an error. */
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15528 /* The GNU C library defines this for functions which it implements
15529 to always fail with ENOSYS. Some functions are actually named
15530 something starting with __ and the normal name is an alias. */
15531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15534 char (*f) () = $ac_func;
15543 return f != $ac_func;
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -s conftest$ac_exeext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 eval "$as_ac_var=yes"
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 eval "$as_ac_var=no"
15567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15571 if test `eval echo '${'$as_ac_var'}'` = yes; then
15572 cat >>confdefs.h <<_ACEOF
15573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15584 for ac_func in snprintf vsnprintf gethostid getdomainname
15586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15587 echo "$as_me:$LINENO: checking for $ac_func" >&5
15588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15589 if eval "test \"\${$as_ac_var+set}\" = set"; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 /* System header to define __stub macros and hopefully few prototypes,
15600 which can conflict with char $ac_func (); below.
15601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15602 <limits.h> exists even on freestanding compilers. */
15604 # include <limits.h>
15606 # include <assert.h>
15608 /* Override any gcc2 internal prototype to avoid an error. */
15613 /* We use char because int might match the return type of a gcc2
15614 builtin and then its argument prototype would still apply. */
15616 /* The GNU C library defines this for functions which it implements
15617 to always fail with ENOSYS. Some functions are actually named
15618 something starting with __ and the normal name is an alias. */
15619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15622 char (*f) () = $ac_func;
15631 return f != $ac_func;
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -s conftest$ac_exeext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 eval "$as_ac_var=yes"
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 eval "$as_ac_var=no"
15655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15659 if test `eval echo '${'$as_ac_var'}'` = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15672 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15675 echo "$as_me:$LINENO: checking for $ac_func" >&5
15676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15677 if eval "test \"\${$as_ac_var+set}\" = set"; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 cat >conftest.$ac_ext <<_ACEOF
15681 #line $LINENO "configure"
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 /* System header to define __stub macros and hopefully few prototypes,
15688 which can conflict with char $ac_func (); below.
15689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15690 <limits.h> exists even on freestanding compilers. */
15692 # include <limits.h>
15694 # include <assert.h>
15696 /* Override any gcc2 internal prototype to avoid an error. */
15701 /* We use char because int might match the return type of a gcc2
15702 builtin and then its argument prototype would still apply. */
15704 /* The GNU C library defines this for functions which it implements
15705 to always fail with ENOSYS. Some functions are actually named
15706 something starting with __ and the normal name is an alias. */
15707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15710 char (*f) () = $ac_func;
15719 return f != $ac_func;
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15726 (eval $ac_link) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -s conftest$ac_exeext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 eval "$as_ac_var=yes"
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 eval "$as_ac_var=no"
15743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15747 if test `eval echo '${'$as_ac_var'}'` = yes; then
15748 cat >>confdefs.h <<_ACEOF
15749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15756 # If resolver functions are not in libc check for -lnsl or -lresolv.
15757 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15758 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15759 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 cat >conftest.$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 /* System header to define __stub macros and hopefully few prototypes,
15770 which can conflict with char gethostbyname_r (); below.
15771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15772 <limits.h> exists even on freestanding compilers. */
15774 # include <limits.h>
15776 # include <assert.h>
15778 /* Override any gcc2 internal prototype to avoid an error. */
15783 /* We use char because int might match the return type of a gcc2
15784 builtin and then its argument prototype would still apply. */
15785 char gethostbyname_r ();
15786 /* The GNU C library defines this for functions which it implements
15787 to always fail with ENOSYS. Some functions are actually named
15788 something starting with __ and the normal name is an alias. */
15789 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15792 char (*f) () = gethostbyname_r;
15801 return f != gethostbyname_r;
15806 rm -f conftest.$ac_objext conftest$ac_exeext
15807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15808 (eval $ac_link) 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -s conftest$ac_exeext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 ac_cv_func_gethostbyname_r=yes
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_cv_func_gethostbyname_r=no
15825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15828 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15829 if test $ac_cv_func_gethostbyname_r = yes; then
15830 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15831 echo "${ECHO_T}using libc's resolver" >&6
15834 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15835 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15836 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 ac_check_lib_save_LIBS=$LIBS
15841 cat >conftest.$ac_ext <<_ACEOF
15842 #line $LINENO "configure"
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15849 /* Override any gcc2 internal prototype to avoid an error. */
15853 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15855 char gethostbyname_r ();
15859 gethostbyname_r ();
15864 rm -f conftest.$ac_objext conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -s conftest$ac_exeext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_cv_lib_nsl_gethostbyname_r=yes
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15881 ac_cv_lib_nsl_gethostbyname_r=no
15883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15884 LIBS=$ac_check_lib_save_LIBS
15886 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15887 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15888 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_LIBNSL 1
15898 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15899 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15900 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 ac_check_lib_save_LIBS=$LIBS
15904 LIBS="-lresolv $LIBS"
15905 cat >conftest.$ac_ext <<_ACEOF
15906 #line $LINENO "configure"
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15913 /* Override any gcc2 internal prototype to avoid an error. */
15917 /* We use char because int might match the return type of a gcc2
15918 builtin and then its argument prototype would still apply. */
15919 char gethostbyname_r ();
15923 gethostbyname_r ();
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest$ac_exeext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_cv_lib_resolv_gethostbyname_r=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_cv_lib_resolv_gethostbyname_r=no
15947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15950 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15951 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15952 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15953 cat >>confdefs.h <<_ACEOF
15954 #define HAVE_LIBRESOLV 1
15957 LIBS="-lresolv $LIBS"
15965 # Find where sockets are (especially for Solaris)
15966 echo "$as_me:$LINENO: checking for socket" >&5
15967 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15968 if test "${ac_cv_func_socket+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 cat >conftest.$ac_ext <<_ACEOF
15972 #line $LINENO "configure"
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 /* System header to define __stub macros and hopefully few prototypes,
15979 which can conflict with char socket (); below.
15980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15981 <limits.h> exists even on freestanding compilers. */
15983 # include <limits.h>
15985 # include <assert.h>
15987 /* Override any gcc2 internal prototype to avoid an error. */
15992 /* We use char because int might match the return type of a gcc2
15993 builtin and then its argument prototype would still apply. */
15995 /* The GNU C library defines this for functions which it implements
15996 to always fail with ENOSYS. Some functions are actually named
15997 something starting with __ and the normal name is an alias. */
15998 #if defined (__stub_socket) || defined (__stub___socket)
16001 char (*f) () = socket;
16010 return f != socket;
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16017 (eval $ac_link) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -s conftest$ac_exeext'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_cv_func_socket=yes
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 ac_cv_func_socket=no
16034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16036 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16037 echo "${ECHO_T}$ac_cv_func_socket" >&6
16038 if test $ac_cv_func_socket = yes; then
16039 echo "$as_me:$LINENO: result: using libc's socket" >&5
16040 echo "${ECHO_T}using libc's socket" >&6
16043 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16044 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16045 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_check_lib_save_LIBS=$LIBS
16049 LIBS="-lxnet $LIBS"
16050 cat >conftest.$ac_ext <<_ACEOF
16051 #line $LINENO "configure"
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16058 /* Override any gcc2 internal prototype to avoid an error. */
16062 /* We use char because int might match the return type of a gcc2
16063 builtin and then its argument prototype would still apply. */
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075 (eval $ac_link) 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -s conftest$ac_exeext'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_cv_lib_xnet_socket=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_cv_lib_xnet_socket=no
16092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16095 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16096 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16097 if test $ac_cv_lib_xnet_socket = yes; then
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_LIBXNET 1
16102 LIBS="-lxnet $LIBS"
16107 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16108 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16109 if test "${ac_cv_lib_socket_socket+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 ac_check_lib_save_LIBS=$LIBS
16113 LIBS="-lsocket $LIBS"
16114 cat >conftest.$ac_ext <<_ACEOF
16115 #line $LINENO "configure"
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16122 /* Override any gcc2 internal prototype to avoid an error. */
16126 /* We use char because int might match the return type of a gcc2
16127 builtin and then its argument prototype would still apply. */
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -s conftest$ac_exeext'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16149 ac_cv_lib_socket_socket=yes
16151 echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154 ac_cv_lib_socket_socket=no
16156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16157 LIBS=$ac_check_lib_save_LIBS
16159 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16160 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16161 if test $ac_cv_lib_socket_socket = yes; then
16162 cat >>confdefs.h <<_ACEOF
16163 #define HAVE_LIBSOCKET 1
16166 LIBS="-lsocket $LIBS"
16171 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16172 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16173 if test "${ac_cv_lib_inet_socket+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 ac_check_lib_save_LIBS=$LIBS
16177 LIBS="-linet $LIBS"
16178 cat >conftest.$ac_ext <<_ACEOF
16179 #line $LINENO "configure"
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16186 /* Override any gcc2 internal prototype to avoid an error. */
16190 /* We use char because int might match the return type of a gcc2
16191 builtin and then its argument prototype would still apply. */
16201 rm -f conftest.$ac_objext conftest$ac_exeext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16203 (eval $ac_link) 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_lib_inet_socket=yes
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_cv_lib_inet_socket=no
16220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16223 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16224 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16225 if test $ac_cv_lib_inet_socket = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_LIBINET 1
16230 LIBS="-linet $LIBS"
16238 for ac_func in inet_pton
16240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241 echo "$as_me:$LINENO: checking for $ac_func" >&5
16242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16243 if eval "test \"\${$as_ac_var+set}\" = set"; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 /* System header to define __stub macros and hopefully few prototypes,
16254 which can conflict with char $ac_func (); below.
16255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16256 <limits.h> exists even on freestanding compilers. */
16258 # include <limits.h>
16260 # include <assert.h>
16262 /* Override any gcc2 internal prototype to avoid an error. */
16267 /* We use char because int might match the return type of a gcc2
16268 builtin and then its argument prototype would still apply. */
16270 /* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16276 char (*f) () = $ac_func;
16285 return f != $ac_func;
16290 rm -f conftest.$ac_objext conftest$ac_exeext
16291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292 (eval $ac_link) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 eval "$as_ac_var=yes"
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 eval "$as_ac_var=no"
16309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16313 if test `eval echo '${'$as_ac_var'}'` = yes; then
16314 cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16317 cat >>confdefs.h <<\_ACEOF
16318 #define HAVE_INET_PTON 1
16325 for ac_func in inet_ntop
16327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16328 echo "$as_me:$LINENO: checking for $ac_func" >&5
16329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_var+set}\" = set"; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 /* System header to define __stub macros and hopefully few prototypes,
16341 which can conflict with char $ac_func (); below.
16342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16343 <limits.h> exists even on freestanding compilers. */
16345 # include <limits.h>
16347 # include <assert.h>
16349 /* Override any gcc2 internal prototype to avoid an error. */
16354 /* We use char because int might match the return type of a gcc2
16355 builtin and then its argument prototype would still apply. */
16357 /* The GNU C library defines this for functions which it implements
16358 to always fail with ENOSYS. Some functions are actually named
16359 something starting with __ and the normal name is an alias. */
16360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16363 char (*f) () = $ac_func;
16372 return f != $ac_func;
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16379 (eval $ac_link) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -s conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 eval "$as_ac_var=yes"
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 eval "$as_ac_var=no"
16396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16400 if test `eval echo '${'$as_ac_var'}'` = yes; then
16401 cat >>confdefs.h <<_ACEOF
16402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE_INET_NTOP 1
16412 for ac_func in gethostbyname2
16414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16415 echo "$as_me:$LINENO: checking for $ac_func" >&5
16416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16417 if eval "test \"\${$as_ac_var+set}\" = set"; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 cat >conftest.$ac_ext <<_ACEOF
16421 #line $LINENO "configure"
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 /* System header to define __stub macros and hopefully few prototypes,
16428 which can conflict with char $ac_func (); below.
16429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430 <limits.h> exists even on freestanding compilers. */
16432 # include <limits.h>
16434 # include <assert.h>
16436 /* Override any gcc2 internal prototype to avoid an error. */
16441 /* We use char because int might match the return type of a gcc2
16442 builtin and then its argument prototype would still apply. */
16444 /* The GNU C library defines this for functions which it implements
16445 to always fail with ENOSYS. Some functions are actually named
16446 something starting with __ and the normal name is an alias. */
16447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450 char (*f) () = $ac_func;
16459 return f != $ac_func;
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466 (eval $ac_link) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -s conftest$ac_exeext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 eval "$as_ac_var=yes"
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 eval "$as_ac_var=no"
16483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16487 if test `eval echo '${'$as_ac_var'}'` = yes; then
16488 cat >>confdefs.h <<_ACEOF
16489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16491 cat >>confdefs.h <<\_ACEOF
16492 #define HAVE_GETHOSTBYNAME2 1
16499 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16500 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16501 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 cat >conftest.$ac_ext <<_ACEOF
16505 #line $LINENO "configure"
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 #include <sys/socket.h>
16515 struct sockaddr s; s.sa_len;
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_struct_sockaddr_sa_len=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_struct_sockaddr_sa_len=no
16539 rm -f conftest.$ac_objext conftest.$ac_ext
16541 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16542 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16544 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE_SA_LEN 1
16553 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16554 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16555 if test "${ac_cv_ipv6_support+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 cat >conftest.$ac_ext <<_ACEOF
16559 #line $LINENO "configure"
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 #include <sys/types.h>
16566 #include <sys/socket.h>
16567 #include <netinet/in.h>
16571 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -s conftest$ac_exeext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_ipv6_support=yes
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ac_cv_ipv6_support=no
16596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16598 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16599 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16601 if test "$ac_cv_ipv6_support" = yes; then
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_IPV6 1
16612 for ac_func in strftime
16614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 echo "$as_me:$LINENO: checking for $ac_func" >&5
16616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16617 if eval "test \"\${$as_ac_var+set}\" = set"; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 /* System header to define __stub macros and hopefully few prototypes,
16628 which can conflict with char $ac_func (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
16632 # include <limits.h>
16634 # include <assert.h>
16636 /* Override any gcc2 internal prototype to avoid an error. */
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16650 char (*f) () = $ac_func;
16659 return f != $ac_func;
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666 (eval $ac_link) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 eval "$as_ac_var=yes"
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 eval "$as_ac_var=no"
16683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16693 # strftime is in -lintl on SCO UNIX.
16694 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16695 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16696 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 ac_check_lib_save_LIBS=$LIBS
16700 LIBS="-lintl $LIBS"
16701 cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 /* Override any gcc2 internal prototype to avoid an error. */
16713 /* We use char because int might match the return type of a gcc2
16714 builtin and then its argument prototype would still apply. */
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -s conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_intl_strftime=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_lib_intl_strftime=no
16743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16746 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16747 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16748 if test $ac_cv_lib_intl_strftime = yes; then
16749 cat >>confdefs.h <<\_ACEOF
16750 #define HAVE_STRFTIME 1
16753 LIBS="-lintl $LIBS"
16760 for ac_func in vprintf
16762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16763 echo "$as_me:$LINENO: checking for $ac_func" >&5
16764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16765 if eval "test \"\${$as_ac_var+set}\" = set"; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 /* System header to define __stub macros and hopefully few prototypes,
16776 which can conflict with char $ac_func (); below.
16777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778 <limits.h> exists even on freestanding compilers. */
16780 # include <limits.h>
16782 # include <assert.h>
16784 /* Override any gcc2 internal prototype to avoid an error. */
16789 /* We use char because int might match the return type of a gcc2
16790 builtin and then its argument prototype would still apply. */
16792 /* The GNU C library defines this for functions which it implements
16793 to always fail with ENOSYS. Some functions are actually named
16794 something starting with __ and the normal name is an alias. */
16795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16798 char (*f) () = $ac_func;
16807 return f != $ac_func;
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814 (eval $ac_link) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -s conftest$ac_exeext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 eval "$as_ac_var=yes"
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 eval "$as_ac_var=no"
16831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16835 if test `eval echo '${'$as_ac_var'}'` = yes; then
16836 cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16840 echo "$as_me:$LINENO: checking for _doprnt" >&5
16841 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16842 if test "${ac_cv_func__doprnt+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 cat >conftest.$ac_ext <<_ACEOF
16846 #line $LINENO "configure"
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 /* System header to define __stub macros and hopefully few prototypes,
16853 which can conflict with char _doprnt (); below.
16854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855 <limits.h> exists even on freestanding compilers. */
16857 # include <limits.h>
16859 # include <assert.h>
16861 /* Override any gcc2 internal prototype to avoid an error. */
16866 /* We use char because int might match the return type of a gcc2
16867 builtin and then its argument prototype would still apply. */
16869 /* The GNU C library defines this for functions which it implements
16870 to always fail with ENOSYS. Some functions are actually named
16871 something starting with __ and the normal name is an alias. */
16872 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16875 char (*f) () = _doprnt;
16884 return f != _doprnt;
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891 (eval $ac_link) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -s conftest$ac_exeext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_func__doprnt=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_cv_func__doprnt=no
16908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16910 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16911 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16912 if test $ac_cv_func__doprnt = yes; then
16914 cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_DOPRNT 1
16924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16925 # for constant arguments. Useless!
16926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16928 if test "${ac_cv_working_alloca_h+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 cat >conftest.$ac_ext <<_ACEOF
16932 #line $LINENO "configure"
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 #include <alloca.h>
16942 char *p = (char *) alloca (2 * sizeof (int));
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949 (eval $ac_link) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_working_alloca_h=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_working_alloca_h=no
16966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16968 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16969 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16970 if test $ac_cv_working_alloca_h = yes; then
16972 cat >>confdefs.h <<\_ACEOF
16973 #define HAVE_ALLOCA_H 1
16978 echo "$as_me:$LINENO: checking for alloca" >&5
16979 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16980 if test "${ac_cv_func_alloca_works+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16984 #line $LINENO "configure"
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 # define alloca __builtin_alloca
16994 # include <malloc.h>
16995 # define alloca _alloca
16998 # include <alloca.h>
17003 # ifndef alloca /* predefined by HP cc +Olibcalls */
17014 char *p = (char *) alloca (1);
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021 (eval $ac_link) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_func_alloca_works=yes
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 ac_cv_func_alloca_works=no
17038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17040 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17041 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17043 if test $ac_cv_func_alloca_works = yes; then
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_ALLOCA 1
17050 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17051 # that cause trouble. Some versions do not even contain alloca or
17052 # contain a buggy version. If you still want to use their alloca,
17053 # use ar to extract alloca.o from them instead of compiling alloca.c.
17055 ALLOCA=alloca.$ac_objext
17057 cat >>confdefs.h <<\_ACEOF
17062 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17063 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17064 if test "${ac_cv_os_cray+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 cat >conftest.$ac_ext <<_ACEOF
17068 #line $LINENO "configure"
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 #if defined(CRAY) && ! defined(CRAY2)
17081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17082 $EGREP "webecray" >/dev/null 2>&1; then
17090 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17091 echo "${ECHO_T}$ac_cv_os_cray" >&6
17092 if test $ac_cv_os_cray = yes; then
17093 for ac_func in _getb67 GETB67 getb67; do
17094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17095 echo "$as_me:$LINENO: checking for $ac_func" >&5
17096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17097 if eval "test \"\${$as_ac_var+set}\" = set"; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 cat >conftest.$ac_ext <<_ACEOF
17101 #line $LINENO "configure"
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 /* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char $ac_func (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
17112 # include <limits.h>
17114 # include <assert.h>
17116 /* Override any gcc2 internal prototype to avoid an error. */
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17124 /* The GNU C library defines this for functions which it implements
17125 to always fail with ENOSYS. Some functions are actually named
17126 something starting with __ and the normal name is an alias. */
17127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17130 char (*f) () = $ac_func;
17139 return f != $ac_func;
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146 (eval $ac_link) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -s conftest$ac_exeext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 eval "$as_ac_var=yes"
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 eval "$as_ac_var=no"
17163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17167 if test `eval echo '${'$as_ac_var'}'` = yes; then
17169 cat >>confdefs.h <<_ACEOF
17170 #define CRAY_STACKSEG_END $ac_func
17179 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17180 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17181 if test "${ac_cv_c_stack_direction+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 if test "$cross_compiling" = yes; then
17185 ac_cv_c_stack_direction=0
17187 cat >conftest.$ac_ext <<_ACEOF
17188 #line $LINENO "configure"
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17195 find_stack_direction ()
17197 static char *addr = 0;
17202 return find_stack_direction ();
17205 return (&dummy > addr) ? 1 : -1;
17211 exit (find_stack_direction () < 0);
17214 rm -f conftest$ac_exeext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216 (eval $ac_link) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_c_stack_direction=1
17227 echo "$as_me: program exited with status $ac_status" >&5
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ( exit $ac_status )
17232 ac_cv_c_stack_direction=-1
17234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17237 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17238 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17240 cat >>confdefs.h <<_ACEOF
17241 #define STACK_DIRECTION $ac_cv_c_stack_direction
17247 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17248 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17249 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17250 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 ac_check_lib_save_LIBS=$LIBS
17255 cat >conftest.$ac_ext <<_ACEOF
17256 #line $LINENO "configure"
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17263 /* Override any gcc2 internal prototype to avoid an error. */
17267 /* We use char because int might match the return type of a gcc2
17268 builtin and then its argument prototype would still apply. */
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17280 (eval $ac_link) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 ac_cv_lib_sun_getmntent=yes
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 ac_cv_lib_sun_getmntent=no
17297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17300 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17301 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17302 if test $ac_cv_lib_sun_getmntent = yes; then
17305 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17306 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17307 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17310 ac_check_lib_save_LIBS=$LIBS
17312 cat >conftest.$ac_ext <<_ACEOF
17313 #line $LINENO "configure"
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17320 /* Override any gcc2 internal prototype to avoid an error. */
17324 /* We use char because int might match the return type of a gcc2
17325 builtin and then its argument prototype would still apply. */
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337 (eval $ac_link) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -s conftest$ac_exeext'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17347 ac_cv_lib_seq_getmntent=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 ac_cv_lib_seq_getmntent=no
17354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17355 LIBS=$ac_check_lib_save_LIBS
17357 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17358 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17359 if test $ac_cv_lib_seq_getmntent = yes; then
17362 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17363 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17364 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 ac_check_lib_save_LIBS=$LIBS
17369 cat >conftest.$ac_ext <<_ACEOF
17370 #line $LINENO "configure"
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 /* Override any gcc2 internal prototype to avoid an error. */
17381 /* We use char because int might match the return type of a gcc2
17382 builtin and then its argument prototype would still apply. */
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394 (eval $ac_link) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -s conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_lib_gen_getmntent=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_cv_lib_gen_getmntent=no
17411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17414 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17415 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17416 if test $ac_cv_lib_gen_getmntent = yes; then
17425 for ac_func in getmntent
17427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17428 echo "$as_me:$LINENO: checking for $ac_func" >&5
17429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17430 if eval "test \"\${$as_ac_var+set}\" = set"; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17434 #line $LINENO "configure"
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 /* System header to define __stub macros and hopefully few prototypes,
17441 which can conflict with char $ac_func (); below.
17442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17449 /* Override any gcc2 internal prototype to avoid an error. */
17454 /* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17463 char (*f) () = $ac_func;
17472 return f != $ac_func;
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479 (eval $ac_link) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 eval "$as_ac_var=yes"
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 eval "$as_ac_var=no"
17496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17500 if test `eval echo '${'$as_ac_var'}'` = yes; then
17501 cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17510 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17511 if test "${ac_cv_func_closedir_void+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 if test "$cross_compiling" = yes; then
17515 ac_cv_func_closedir_void=yes
17517 cat >conftest.$ac_ext <<_ACEOF
17518 #line $LINENO "configure"
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524 $ac_includes_default
17525 #include <$ac_header_dirent>
17526 #ifndef __cplusplus
17533 exit (closedir (opendir (".")) != 0);
17538 rm -f conftest$ac_exeext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17540 (eval $ac_link) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_func_closedir_void=no
17551 echo "$as_me: program exited with status $ac_status" >&5
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ( exit $ac_status )
17556 ac_cv_func_closedir_void=yes
17558 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17561 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17562 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17563 if test $ac_cv_func_closedir_void = yes; then
17565 cat >>confdefs.h <<\_ACEOF
17566 #define CLOSEDIR_VOID 1
17571 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17572 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17573 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 if test "$cross_compiling" = yes; then
17577 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17578 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17579 { (exit 1); exit 1; }; }
17581 cat >conftest.$ac_ext <<_ACEOF
17582 #line $LINENO "configure"
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17589 # include <unistd.h>
17595 /* If this system has a BSD-style setpgrp which takes arguments,
17596 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17597 exit successfully. */
17598 exit (setpgrp (1,1) == -1 ? 0 : 1);
17603 rm -f conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605 (eval $ac_link) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_func_setpgrp_void=no
17616 echo "$as_me: program exited with status $ac_status" >&5
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ( exit $ac_status )
17621 ac_cv_func_setpgrp_void=yes
17623 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17626 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17627 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17628 if test $ac_cv_func_setpgrp_void = yes; then
17630 cat >>confdefs.h <<\_ACEOF
17631 #define SETPGRP_VOID 1
17635 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17636 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17637 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 # Some versions of Solaris, SCO, and the GNU C Library
17641 # have a broken or incompatible fnmatch.
17642 # So we run a test program. If we are cross-compiling, take no chance.
17643 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17644 if test "$cross_compiling" = yes; then
17645 ac_cv_func_fnmatch_works=cross
17647 cat >conftest.$ac_ext <<_ACEOF
17648 #line $LINENO "configure"
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17654 #include <fnmatch.h>
17655 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17656 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17662 (!(y ("a*", "abc", 0)
17663 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17664 && y ("a\\\\bc", "abc", 0)
17665 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17666 && y ("*x", ".x", 0)
17667 && n ("*x", ".x", FNM_PERIOD)
17673 rm -f conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_func_fnmatch_works=yes
17686 echo "$as_me: program exited with status $ac_status" >&5
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ( exit $ac_status )
17691 ac_cv_func_fnmatch_works=no
17693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17696 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17697 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17698 if test $ac_cv_func_fnmatch_works = yes; then
17700 cat >>confdefs.h <<\_ACEOF
17701 #define HAVE_FNMATCH 1
17710 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17711 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17712 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 ac_check_lib_save_LIBS=$LIBS
17716 LIBS="-lxpg4 $LIBS"
17717 cat >conftest.$ac_ext <<_ACEOF
17718 #line $LINENO "configure"
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17725 /* Override any gcc2 internal prototype to avoid an error. */
17729 /* We use char because int might match the return type of a gcc2
17730 builtin and then its argument prototype would still apply. */
17740 rm -f conftest.$ac_objext conftest$ac_exeext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17742 (eval $ac_link) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -s conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_lib_xpg4_setlocale=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_lib_xpg4_setlocale=no
17759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17760 LIBS=$ac_check_lib_save_LIBS
17762 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17763 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17764 if test $ac_cv_lib_xpg4_setlocale = yes; then
17765 LIBS="$LIBS -lxpg4"
17771 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17772 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17773 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 ac_check_lib_save_LIBS=$LIBS
17778 cat >conftest.$ac_ext <<_ACEOF
17779 #line $LINENO "configure"
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17786 /* Override any gcc2 internal prototype to avoid an error. */
17790 /* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -s conftest$ac_exeext'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813 ac_cv_lib_sun_getpwnam=yes
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 ac_cv_lib_sun_getpwnam=no
17820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17821 LIBS=$ac_check_lib_save_LIBS
17823 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17824 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17825 if test $ac_cv_lib_sun_getpwnam = yes; then
17826 cat >>confdefs.h <<_ACEOF
17827 #define HAVE_LIBSUN 1
17836 for ac_header in zlib.h
17838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17840 echo "$as_me:$LINENO: checking for $ac_header" >&5
17841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17848 # Is the header compilable?
17849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17851 cat >conftest.$ac_ext <<_ACEOF
17852 #line $LINENO "configure"
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17858 $ac_includes_default
17859 #include <$ac_header>
17861 rm -f conftest.$ac_objext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17863 (eval $ac_compile) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
17867 { ac_try='test -s conftest.$ac_objext'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_header_compiler=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_header_compiler=no
17880 rm -f conftest.$ac_objext conftest.$ac_ext
17881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17882 echo "${ECHO_T}$ac_header_compiler" >&6
17884 # Is the header present?
17885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17887 cat >conftest.$ac_ext <<_ACEOF
17888 #line $LINENO "configure"
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17894 #include <$ac_header>
17896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } >/dev/null; then
17904 if test -s conftest.err; then
17905 ac_cpp_err=$ac_c_preproc_warn_flag
17912 if test -z "$ac_cpp_err"; then
17913 ac_header_preproc=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_header_preproc=no
17920 rm -f conftest.err conftest.$ac_ext
17921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17922 echo "${ECHO_T}$ac_header_preproc" >&6
17924 # So? What about this header?
17925 case $ac_header_compiler:$ac_header_preproc in
17927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17933 ## ------------------------------------ ##
17934 ## Report this to bug-autoconf@gnu.org. ##
17935 ## ------------------------------------ ##
17938 sed "s/^/$as_me: WARNING: /" >&2
17941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17949 ## ------------------------------------ ##
17950 ## Report this to bug-autoconf@gnu.org. ##
17951 ## ------------------------------------ ##
17954 sed "s/^/$as_me: WARNING: /" >&2
17957 echo "$as_me:$LINENO: checking for $ac_header" >&5
17958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 eval "$as_ac_Header=$ac_header_preproc"
17964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17969 cat >>confdefs.h <<_ACEOF
17970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17977 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17978 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17979 if test "${ac_cv_lib_z_deflate+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 ac_check_lib_save_LIBS=$LIBS
17984 cat >conftest.$ac_ext <<_ACEOF
17985 #line $LINENO "configure"
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17992 /* Override any gcc2 internal prototype to avoid an error. */
17996 /* We use char because int might match the return type of a gcc2
17997 builtin and then its argument prototype would still apply. */
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009 (eval $ac_link) 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
18013 { ac_try='test -s conftest$ac_exeext'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18019 ac_cv_lib_z_deflate=yes
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 ac_cv_lib_z_deflate=no
18026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_check_lib_save_LIBS
18029 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18030 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18031 if test $ac_cv_lib_z_deflate = yes; then
18036 if test x$FDLIBS = x-lz; then
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_LIBZ 1
18044 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18045 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18046 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18047 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18051 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18053 # Is the header compilable?
18054 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18055 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18056 cat >conftest.$ac_ext <<_ACEOF
18057 #line $LINENO "configure"
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 $ac_includes_default
18064 #include <sys/acl.h>
18066 rm -f conftest.$ac_objext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18068 (eval $ac_compile) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
18072 { ac_try='test -s conftest.$ac_objext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 ac_header_compiler=yes
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_compiler=no
18085 rm -f conftest.$ac_objext conftest.$ac_ext
18086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18087 echo "${ECHO_T}$ac_header_compiler" >&6
18089 # Is the header present?
18090 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18091 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18092 cat >conftest.$ac_ext <<_ACEOF
18093 #line $LINENO "configure"
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 #include <sys/acl.h>
18101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18104 grep -v '^ *+' conftest.er1 >conftest.err
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } >/dev/null; then
18109 if test -s conftest.err; then
18110 ac_cpp_err=$ac_c_preproc_warn_flag
18117 if test -z "$ac_cpp_err"; then
18118 ac_header_preproc=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ac_header_preproc=no
18125 rm -f conftest.err conftest.$ac_ext
18126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18127 echo "${ECHO_T}$ac_header_preproc" >&6
18129 # So? What about this header?
18130 case $ac_header_compiler:$ac_header_preproc in
18132 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18133 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18135 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18138 ## ------------------------------------ ##
18139 ## Report this to bug-autoconf@gnu.org. ##
18140 ## ------------------------------------ ##
18143 sed "s/^/$as_me: WARNING: /" >&2
18146 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18147 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18149 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18151 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18154 ## ------------------------------------ ##
18155 ## Report this to bug-autoconf@gnu.org. ##
18156 ## ------------------------------------ ##
18159 sed "s/^/$as_me: WARNING: /" >&2
18162 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18163 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18164 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 ac_cv_header_sys_acl_h=$ac_header_preproc
18169 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18170 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18175 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18176 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18177 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 ac_check_lib_save_LIBS=$LIBS
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line $LINENO "configure"
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18190 /* Override any gcc2 internal prototype to avoid an error. */
18194 /* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18196 char acl_get_file ();
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_cv_lib_acl_acl_get_file=yes
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18222 ac_cv_lib_acl_acl_get_file=no
18224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18227 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18228 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18229 if test $ac_cv_lib_acl_acl_get_file = yes; then
18230 FDLIBS="-lacl $FDLIBS"
18234 if test $ac_cv_lib_acl_acl_get_file = yes; then
18235 cat >>confdefs.h <<\_ACEOF
18243 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18244 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18245 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lpthread $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18251 #line $LINENO "configure"
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 /* Override any gcc2 internal prototype to avoid an error. */
18262 /* We use char because int might match the return type of a gcc2
18263 builtin and then its argument prototype would still apply. */
18264 char pthread_create ();
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18275 (eval $ac_link) 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -s conftest$ac_exeext'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 ac_cv_lib_pthread_pthread_create=yes
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_cv_lib_pthread_pthread_create=no
18292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18295 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18296 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18297 if test $ac_cv_lib_pthread_pthread_create = yes; then
18298 PTHREAD_LIB="-lpthread"
18300 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18301 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18302 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-lpthreads $LIBS"
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line $LINENO "configure"
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18315 /* Override any gcc2 internal prototype to avoid an error. */
18319 /* We use char because int might match the return type of a gcc2
18320 builtin and then its argument prototype would still apply. */
18321 char pthread_create ();
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332 (eval $ac_link) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -s conftest$ac_exeext'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_lib_pthreads_pthread_create=yes
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_cv_lib_pthreads_pthread_create=no
18349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18353 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18354 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18355 PTHREAD_LIB="-lpthreads"
18357 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18358 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18359 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_check_lib_save_LIBS=$LIBS
18364 cat >conftest.$ac_ext <<_ACEOF
18365 #line $LINENO "configure"
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 /* Override any gcc2 internal prototype to avoid an error. */
18376 /* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18378 char pthread_create ();
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
18393 { ac_try='test -s conftest$ac_exeext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_lib_c_r_pthread_create=yes
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 ac_cv_lib_c_r_pthread_create=no
18406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18407 LIBS=$ac_check_lib_save_LIBS
18409 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18410 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18411 if test $ac_cv_lib_c_r_pthread_create = yes; then
18412 PTHREAD_LIB="-lc_r"
18414 echo "$as_me:$LINENO: checking for pthread_create" >&5
18415 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18416 if test "${ac_cv_func_pthread_create+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18419 cat >conftest.$ac_ext <<_ACEOF
18420 #line $LINENO "configure"
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char pthread_create (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18431 # include <limits.h>
18433 # include <assert.h>
18435 /* Override any gcc2 internal prototype to avoid an error. */
18440 /* We use char because int might match the return type of a gcc2
18441 builtin and then its argument prototype would still apply. */
18442 char pthread_create ();
18443 /* The GNU C library defines this for functions which it implements
18444 to always fail with ENOSYS. Some functions are actually named
18445 something starting with __ and the normal name is an alias. */
18446 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18449 char (*f) () = pthread_create;
18458 return f != pthread_create;
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465 (eval $ac_link) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_func_pthread_create=yes
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 ac_cv_func_pthread_create=no
18482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18484 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18485 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18498 cat >>confdefs.h <<\_ACEOF
18504 CFLAGS=${CFLAGS--O}
18505 LDFLAGS=${LDFLAGS--O}
18506 DB_LIBS="${SQL_LFLAGS}"
18508 CPPFLAGS="$CPPFLAGS"
18533 # Finally we set appropriate distribution specific
18534 # variables and defaults
18536 # PFILES are platform specific files
18537 PFILES="platforms/Makefile"
18541 hostname=`uname -n | cut -d '.' -f 1`
18542 case "$DISTNAME" in
18545 PSCMD="ps -e -o pid,comm"
18546 PFILES="${PFILES} \
18547 platforms/aix/Makefile"
18548 TAPEDRIVE="/dev/rmt0.1"
18552 PTHREAD_LIB="-lpthread -lexc"
18553 if test "${CC}" = "gcc" ; then
18560 TAPEDRIVE="/dev/nrmt0"
18563 DISTVER=`uname -a |awk '{print $3}'`
18564 TAPEDRIVE="/dev/nrmt0"
18565 PTHREAD_LIB="-pthread"
18566 CFLAGS="${CFLAGS} -pthread"
18567 PSCMD="ps -x -o pid,command"
18570 PFILES="${PFILES} \
18571 platforms/bsdi/Makefile \
18572 platforms/bsdi/bacula-fd \
18573 platforms/bsdi/bacula-sd \
18574 platforms/bsdi/bacula-dir"
18575 largefile_support="yes"
18578 DISTVER=`uname -a |awk '{print $3}'`
18579 TAPEDRIVE="/dev/nrst0"
18581 WCFLAGS="-mwindows"
18582 WLDFLAGS="-mwindows"
18586 TAPEDRIVE="/dev/nst0"
18587 PSCMD="ps -e -o pid,command"
18589 PFILES="${PFILES} \
18590 platforms/darwin/Makefile"
18593 DISTVER=`cat /etc/debian_version`
18594 TAPEDRIVE="/dev/nrst0"
18595 PSCMD="ps -e -o pid,command"
18598 DISTVER=`uname -a |awk '{print $3}'`
18599 VER=`echo $DISTVER | cut -c 1`
18600 if test x$VER = x4 ; then
18601 PTHREAD_LIB="-pthread"
18602 CFLAGS="${CFLAGS} -pthread"
18606 TAPEDRIVE="/dev/nrsa0"
18607 PSCMD="ps -x -o pid,command"
18608 PFILES="${PFILES} \
18609 platforms/freebsd/Makefile \
18610 platforms/freebsd/bacula-fd \
18611 platforms/freebsd/bacula-sd \
18612 platforms/freebsd/bacula-dir"
18613 largefile_support="yes"
18616 PSCMD="UNIX95=1 ps -e -o pid,comm"
18617 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18619 TAPEDRIVE="/dev/rmt/0hnb"
18623 TAPEDRIVE="/dev/rmt/0cbn"
18624 PSCMD="ps -e -o pid,comm"
18625 PFILES="${PFILES} \
18626 platforms/irix/Makefile \
18627 platforms/irix/bacula-fd \
18628 platforms/irix/bacula-sd \
18629 platforms/irix/bacula-dir"
18632 DISTVER=`uname -a |awk '{print $3}'`
18635 TAPEDRIVE="/dev/nrst0"
18636 PSCMD="ps -a -o pid,command"
18637 PTHREAD_LIB="-pthread"
18638 CFLAGS="${CFLAGS} -pthread"
18641 DISTVER=`uname -a |awk '{print $3}'`
18644 TAPEDRIVE="/dev/nrst0"
18645 PSCMD="ps -a -o pid,command"
18646 PTHREAD_LIB="-pthread"
18647 CFLAGS="${CFLAGS} -pthread"
18648 PFILES="${PFILES} \
18649 platforms/openbsd/Makefile \
18650 platforms/openbsd/bacula-fd \
18651 platforms/openbsd/bacula-sd \
18652 platforms/openbsd/bacula-dir"
18655 if test -f /etc/whitebox-release ; then
18656 f=/etc/whitebox-release
18658 f=/etc/redhat-release
18660 if test `cat $f | grep release |\
18661 cut -f 3 -d ' '`x = "Enterprise"x ; then
18662 DISTVER="Enterprise "`cat $f | grep release |\
18665 DISTVER=`cat /etc/redhat-release | grep release |\
18668 TAPEDRIVE="/dev/nst0"
18669 PSCMD="ps -e -o pid,command"
18670 PFILES="${PFILES} \
18671 platforms/redhat/Makefile \
18672 platforms/redhat/bacula-fd \
18673 platforms/redhat/bacula-sd \
18674 platforms/redhat/bacula-dir \
18675 platforms/redhat/bacula.spec \
18677 hostname=`hostname -s`
18680 DISTVER=`cat /etc/mandrake-release | grep release |\
18682 TAPEDRIVE="/dev/nst0"
18683 PSCMD="ps -e -o pid,command"
18684 PFILES="${PFILES} \
18685 platforms/mandrake/Makefile \
18686 platforms/mandrake/bacula-fd \
18687 platforms/mandrake/bacula-sd \
18688 platforms/mandrake/bacula-dir \
18689 platforms/mandrake/bacula.spec \
18693 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18694 TAPEDRIVE="/dev/nst0"
18695 PSCMD="ps -e -o pid,command"
18696 PFILES="${PFILES} \
18697 platforms/gentoo/Makefile \
18698 platforms/gentoo/bacula-fd \
18699 platforms/gentoo/bacula-sd \
18700 platforms/gentoo/bacula-dir"
18703 DISTVER=`cat /etc/slackware-version`
18704 TAPEDRIVE="/dev/nst0"
18705 PSCMD="ps -e -o pid,command"
18706 PFILES="${PFILES} \
18707 platforms/slackware/Makefile \
18708 platforms/slackware/rc.bacula-fd \
18709 platforms/slackware/rc.bacula-sd \
18710 platforms/slackware/rc.bacula-dir\
18711 platforms/slackware/functions.bacula"
18715 TAPEDRIVE="/dev/rmt/0cbn"
18716 PSCMD="ps -e -o pid,comm"
18717 PFILES="${PFILES} \
18718 platforms/solaris/Makefile \
18719 platforms/solaris/bacula-fd \
18720 platforms/solaris/bacula-sd \
18721 platforms/solaris/bacula-dir"
18722 if test x$DISTVER = x5.6 ; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_OLD_SOCKOPT 1
18730 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18732 TAPEDRIVE="/dev/nst0"
18733 PSCMD="ps -e -o pid,command"
18734 PFILES="${PFILES} \
18735 platforms/suse/Makefile \
18736 platforms/suse/bacula-fd \
18737 platforms/suse/bacula-sd \
18738 platforms/suse/bacula-dir \
18739 platforms/suse/bacula \
18740 platforms/suse/bacula.spec"
18745 TAPEDRIVE="/dev/nst0"
18746 PSCMD="ps -e -o pid,command"
18747 PFILES="${PFILES} \
18748 platforms/suse/Makefile \
18749 platforms/suse/bacula-fd \
18750 platforms/suse/bacula-sd \
18751 platforms/suse/bacula-dir"
18755 TAPEDRIVE="/dev/nst0"
18758 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18764 LIBS="$PTHREAD_LIB $LIBS"
18766 cat >>confdefs.h <<_ACEOF
18770 cat >>confdefs.h <<_ACEOF
18781 MCOMMON=./autoconf/Make.common
18784 if test "x${subsysdir}" = "x${sbindir}" ; then
18787 echo "You have set both --sbindir and --with-subsys-dir"
18788 echo " equal to: ${subsysdir} "
18789 echo "This is not permitted. Please reconfigure."
18791 echo "Aborting configuration ..."
18797 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/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/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/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"
18798 ac_config_commands="$ac_config_commands default"
18799 cat >confcache <<\_ACEOF
18800 # This file is a shell script that caches the results of configure
18801 # tests run on this system so they can be shared between configure
18802 # scripts and configure runs, see configure's option --config-cache.
18803 # It is not useful on other systems. If it contains results you don't
18804 # want to keep, you may remove or edit it.
18806 # config.status only pays attention to the cache file if you give it
18807 # the --recheck option to rerun configure.
18809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18811 # following values.
18815 # The following way of writing the cache mishandles newlines in values,
18816 # but we know of no workaround that is simple, portable, and efficient.
18817 # So, don't put newlines in cache variables' values.
18818 # Ultrix sh set writes to stderr and can't be redirected directly,
18819 # and sets the high bit in the cache file unless we assign to the vars.
18822 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18824 # `set' does not quote correctly, so add quotes (double-quote
18825 # substitution turns \\\\ into \\, and sed turns \\ into \).
18828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18831 # `set' quotes correctly as required by POSIX, so do not add quotes.
18833 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18842 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18844 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18845 if test -w $cache_file; then
18846 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18847 cat confcache >$cache_file
18849 echo "not updating unwritable cache $cache_file"
18854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18855 # Let make expand exec_prefix.
18856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18860 # trailing colons and then remove the whole line if VPATH becomes empty
18861 # (actually we leave an empty line to preserve line numbers).
18862 if test "x$srcdir" = x.; then
18863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18864 s/:*\$(srcdir):*/:/;
18865 s/:*\${srcdir}:*/:/;
18867 s/^\([^=]*=[ ]*\):*/\1/;
18873 DEFS=-DHAVE_CONFIG_H
18877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18878 # 1. Remove the extension, and $U if already installed.
18879 ac_i=`echo "$ac_i" |
18880 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18882 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18883 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18885 LIBOBJS=$ac_libobjs
18887 LTLIBOBJS=$ac_ltlibobjs
18891 : ${CONFIG_STATUS=./config.status}
18892 ac_clean_files_save=$ac_clean_files
18893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18894 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18895 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18896 cat >$CONFIG_STATUS <<_ACEOF
18898 # Generated by $as_me.
18899 # Run this file to recreate the current configuration.
18900 # Compiler output produced by configure, useful for debugging
18901 # configure, is in config.log if it exists.
18904 ac_cs_recheck=false
18906 SHELL=\${CONFIG_SHELL-$SHELL}
18909 cat >>$CONFIG_STATUS <<\_ACEOF
18910 ## --------------------- ##
18911 ## M4sh Initialization. ##
18912 ## --------------------- ##
18914 # Be Bourne compatible
18915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18919 # is contrary to our usage. Disable this feature.
18920 alias -g '${1+"$@"}'='"$@"'
18921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18925 # Support unset when possible.
18926 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18933 # Work around bugs in pre-3.0 UWIN ksh.
18934 $as_unset ENV MAIL MAILPATH
18941 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18942 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18943 LC_TELEPHONE LC_TIME
18945 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18946 eval $as_var=C; export $as_var
18952 # Required to use basename.
18953 if expr a : '\(a\)' >/dev/null 2>&1; then
18959 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18960 as_basename=basename
18966 # Name of the executable.
18967 as_me=`$as_basename "$0" ||
18968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18969 X"$0" : 'X\(//\)$' \| \
18970 X"$0" : 'X\(/\)$' \| \
18971 . : '\(.\)' 2>/dev/null ||
18973 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18974 /^X\/\(\/\/\)$/{ s//\1/; q; }
18975 /^X\/\(\/\).*/{ s//\1/; q; }
18979 # PATH needs CR, and LINENO needs CR and PATH.
18980 # Avoid depending upon Character Ranges.
18981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18984 as_cr_digits='0123456789'
18985 as_cr_alnum=$as_cr_Letters$as_cr_digits
18987 # The user is always right.
18988 if test "${PATH_SEPARATOR+set}" != set; then
18989 echo "#! /bin/sh" >conf$$.sh
18990 echo "exit 0" >>conf$$.sh
18992 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19001 as_lineno_1=$LINENO
19002 as_lineno_2=$LINENO
19003 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19004 test "x$as_lineno_1" != "x$as_lineno_2" &&
19005 test "x$as_lineno_3" = "x$as_lineno_2" || {
19006 # Find who we are. Look in the path if we contain no path at all
19009 *[\\/]* ) as_myself=$0 ;;
19010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19011 for as_dir in $PATH
19014 test -z "$as_dir" && as_dir=.
19015 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19020 # We did not find ourselves, most probably we were run as `sh COMMAND'
19021 # in which case we are not to be found in the path.
19022 if test "x$as_myself" = x; then
19025 if test ! -f "$as_myself"; then
19026 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19027 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19028 { (exit 1); exit 1; }; }
19030 case $CONFIG_SHELL in
19032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19036 test -z "$as_dir" && as_dir=.
19037 for as_base in sh bash ksh sh5; do
19040 if ("$as_dir/$as_base" -c '
19041 as_lineno_1=$LINENO
19042 as_lineno_2=$LINENO
19043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19044 test "x$as_lineno_1" != "x$as_lineno_2" &&
19045 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19046 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19047 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19048 CONFIG_SHELL=$as_dir/$as_base
19049 export CONFIG_SHELL
19050 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19058 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19059 # uniformly replaced by the line number. The first 'sed' inserts a
19060 # line-number line before each line; the second 'sed' does the real
19061 # work. The second script uses 'N' to pair each line-number line
19062 # with the numbered line, and appends trailing '-' during
19063 # substitution so that $LINENO is not a special case at line end.
19064 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19065 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19066 sed '=' <$as_myself |
19071 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19074 s,^['$as_cr_digits']*\n,,
19075 ' >$as_me.lineno &&
19076 chmod +x $as_me.lineno ||
19077 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19078 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19079 { (exit 1); exit 1; }; }
19081 # Don't try to exec as it changes $[0], causing all sort of problems
19082 # (the dirname of $[0] is not the place where we might find the
19083 # original and so on. Autoconf is especially sensible to this).
19085 # Exit status is that of the last command.
19090 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19091 *c*,-n*) ECHO_N= ECHO_C='
19093 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19094 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19097 if expr a : '\(a\)' >/dev/null 2>&1; then
19103 rm -f conf$$ conf$$.exe conf$$.file
19105 if ln -s conf$$.file conf$$ 2>/dev/null; then
19106 # We could just check for DJGPP; but this test a) works b) is more generic
19107 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19108 if test -f conf$$.exe; then
19109 # Don't use ln at all; we don't have any links
19114 elif ln conf$$.file conf$$ 2>/dev/null; then
19119 rm -f conf$$ conf$$.exe conf$$.file
19121 if mkdir -p . 2>/dev/null; then
19127 as_executable_p="test -f"
19129 # Sed expression to map a string onto a valid CPP name.
19130 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19132 # Sed expression to map a string onto a valid variable name.
19133 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19137 # We need space, tab and new line, in precisely that order.
19147 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19148 # report actual input values of CONFIG_FILES etc. instead of their
19149 # values after options handling. Logging --version etc. is OK.
19153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19154 ## Running $as_me. ##
19159 This file was extended by $as_me, which was
19160 generated by GNU Autoconf 2.57. Invocation command line was
19162 CONFIG_FILES = $CONFIG_FILES
19163 CONFIG_HEADERS = $CONFIG_HEADERS
19164 CONFIG_LINKS = $CONFIG_LINKS
19165 CONFIG_COMMANDS = $CONFIG_COMMANDS
19169 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19173 # Files that config.status was made for.
19174 if test -n "$ac_config_files"; then
19175 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19178 if test -n "$ac_config_headers"; then
19179 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19182 if test -n "$ac_config_links"; then
19183 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19186 if test -n "$ac_config_commands"; then
19187 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19190 cat >>$CONFIG_STATUS <<\_ACEOF
19193 \`$as_me' instantiates files from templates according to the
19194 current configuration.
19196 Usage: $0 [OPTIONS] [FILE]...
19198 -h, --help print this help, then exit
19199 -V, --version print version number, then exit
19200 -q, --quiet do not print progress messages
19201 -d, --debug don't remove temporary files
19202 --recheck update $as_me by reconfiguring in the same conditions
19203 --file=FILE[:TEMPLATE]
19204 instantiate the configuration file FILE
19205 --header=FILE[:TEMPLATE]
19206 instantiate the configuration header FILE
19208 Configuration files:
19211 Configuration headers:
19214 Configuration commands:
19217 Report bugs to <bug-autoconf@gnu.org>."
19220 cat >>$CONFIG_STATUS <<_ACEOF
19223 configured by $0, generated by GNU Autoconf 2.57,
19224 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19226 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19227 Free Software Foundation, Inc.
19228 This config.status script is free software; the Free Software Foundation
19229 gives unlimited permission to copy, distribute and modify it."
19234 cat >>$CONFIG_STATUS <<\_ACEOF
19235 # If no file are specified by the user, then we need to provide default
19236 # value. By we need to know if files were specified by the user.
19242 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19243 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19251 *) # This is not an option, so the user has probably given explicit
19254 ac_need_defaults=false;;
19258 # Handling of the options.
19260 cat >>$CONFIG_STATUS <<\_ACEOF
19261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19263 --version | --vers* | -V )
19264 echo "$ac_cs_version"; exit 0 ;;
19266 # Conflict between --help and --header
19267 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19268 Try \`$0 --help' for more information." >&5
19269 echo "$as_me: error: ambiguous option: $1
19270 Try \`$0 --help' for more information." >&2;}
19271 { (exit 1); exit 1; }; };;
19272 --help | --hel | -h )
19273 echo "$ac_cs_usage"; exit 0 ;;
19274 --debug | --d* | -d )
19276 --file | --fil | --fi | --f )
19278 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19279 ac_need_defaults=false;;
19280 --header | --heade | --head | --hea )
19282 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19283 ac_need_defaults=false;;
19284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19288 # This is an error.
19289 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19290 Try \`$0 --help' for more information." >&5
19291 echo "$as_me: error: unrecognized option: $1
19292 Try \`$0 --help' for more information." >&2;}
19293 { (exit 1); exit 1; }; } ;;
19295 *) ac_config_targets="$ac_config_targets $1" ;;
19301 ac_configure_extra_args=
19303 if $ac_cs_silent; then
19305 ac_configure_extra_args="$ac_configure_extra_args --silent"
19309 cat >>$CONFIG_STATUS <<_ACEOF
19310 if \$ac_cs_recheck; then
19311 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19312 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19321 cat >>$CONFIG_STATUS <<\_ACEOF
19322 for ac_config_target in $ac_config_targets
19324 case "$ac_config_target" in
19325 # Handling of arguments.
19326 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19327 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19328 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19329 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19330 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19331 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19332 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19333 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19334 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19335 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19336 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19337 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19338 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19339 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19340 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19341 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19342 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19343 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19344 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19345 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19346 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19347 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19348 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19349 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19350 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19351 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19352 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19353 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19354 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19355 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19356 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19357 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19358 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19359 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19360 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19361 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19362 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19363 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19364 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19365 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19366 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19367 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19368 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19369 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19370 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19371 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19372 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19373 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19374 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19375 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19376 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19377 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19378 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19379 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19380 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19381 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19382 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19383 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19384 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19385 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19386 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19387 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19388 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19389 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19390 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19391 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19392 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19393 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19394 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19395 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19396 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19397 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19398 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19399 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19400 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19401 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19402 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19403 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19404 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19405 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19406 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19407 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19408 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19409 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19410 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19411 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19412 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19413 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19414 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19415 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19416 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19417 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19418 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19419 { (exit 1); exit 1; }; };;
19423 # If the user did not use the arguments to specify the items to instantiate,
19424 # then the envvar interface is used. Set only those that are not.
19425 # We use the long form for the default assignment because of an extremely
19426 # bizarre bug on SunOS 4.1.3.
19427 if $ac_need_defaults; then
19428 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19429 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19430 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19433 # Have a temporary directory for convenience. Make it in the build tree
19434 # simply because there is no reason to put it here, and in addition,
19435 # creating and moving files from /tmp can sometimes cause problems.
19436 # Create a temporary directory, and hook for its removal unless debugging.
19439 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19440 trap '{ (exit 1); exit 1; }' 1 2 13 15
19443 # Create a (secure) tmp directory for tmp files.
19446 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19447 test -n "$tmp" && test -d "$tmp"
19450 tmp=./confstat$$-$RANDOM
19451 (umask 077 && mkdir $tmp)
19454 echo "$me: cannot create a temporary directory in ." >&2
19455 { (exit 1); exit 1; }
19460 cat >>$CONFIG_STATUS <<_ACEOF
19463 # CONFIG_FILES section.
19466 # No need to generate the scripts if there are no CONFIG_FILES.
19467 # This happens for instance when ./config.status config.h
19468 if test -n "\$CONFIG_FILES"; then
19469 # Protect against being on the right side of a sed subst in config.status.
19470 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19471 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19472 s,@SHELL@,$SHELL,;t t
19473 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19474 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19475 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19476 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19477 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19478 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19479 s,@exec_prefix@,$exec_prefix,;t t
19480 s,@prefix@,$prefix,;t t
19481 s,@program_transform_name@,$program_transform_name,;t t
19482 s,@bindir@,$bindir,;t t
19483 s,@sbindir@,$sbindir,;t t
19484 s,@libexecdir@,$libexecdir,;t t
19485 s,@datadir@,$datadir,;t t
19486 s,@sysconfdir@,$sysconfdir,;t t
19487 s,@sharedstatedir@,$sharedstatedir,;t t
19488 s,@localstatedir@,$localstatedir,;t t
19489 s,@libdir@,$libdir,;t t
19490 s,@includedir@,$includedir,;t t
19491 s,@oldincludedir@,$oldincludedir,;t t
19492 s,@infodir@,$infodir,;t t
19493 s,@mandir@,$mandir,;t t
19494 s,@build_alias@,$build_alias,;t t
19495 s,@host_alias@,$host_alias,;t t
19496 s,@target_alias@,$target_alias,;t t
19497 s,@DEFS@,$DEFS,;t t
19498 s,@ECHO_C@,$ECHO_C,;t t
19499 s,@ECHO_N@,$ECHO_N,;t t
19500 s,@ECHO_T@,$ECHO_T,;t t
19501 s,@LIBS@,$LIBS,;t t
19502 s,@BUILD_DIR@,$BUILD_DIR,;t t
19503 s,@TRUEPRG@,$TRUEPRG,;t t
19504 s,@FALSEPRG@,$FALSEPRG,;t t
19505 s,@VERSION@,$VERSION,;t t
19506 s,@DATE@,$DATE,;t t
19507 s,@LSMDATE@,$LSMDATE,;t t
19509 s,@CFLAGS@,$CFLAGS,;t t
19510 s,@LDFLAGS@,$LDFLAGS,;t t
19511 s,@CPPFLAGS@,$CPPFLAGS,;t t
19512 s,@ac_ct_CC@,$ac_ct_CC,;t t
19513 s,@EXEEXT@,$EXEEXT,;t t
19514 s,@OBJEXT@,$OBJEXT,;t t
19516 s,@CXXFLAGS@,$CXXFLAGS,;t t
19517 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19519 s,@EGREP@,$EGREP,;t t
19520 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19521 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19522 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19523 s,@RANLIB@,$RANLIB,;t t
19524 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19530 s,@ECHO@,$ECHO,;t t
19534 s,@OPENSSL@,$OPENSSL,;t t
19536 s,@PKGCONFIG@,$PKGCONFIG,;t t
19537 s,@WXCONFIG@,$WXCONFIG,;t t
19538 s,@ARFLAGS@,$ARFLAGS,;t t
19539 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19540 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19541 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19542 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19543 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19544 s,@build@,$build,;t t
19545 s,@build_cpu@,$build_cpu,;t t
19546 s,@build_vendor@,$build_vendor,;t t
19547 s,@build_os@,$build_os,;t t
19548 s,@host@,$host,;t t
19549 s,@host_cpu@,$host_cpu,;t t
19550 s,@host_vendor@,$host_vendor,;t t
19551 s,@host_os@,$host_os,;t t
19552 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19553 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19554 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19555 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19556 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19557 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19558 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19559 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19560 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19561 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19562 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19563 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19564 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19565 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19566 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19567 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19568 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19569 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19570 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19571 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19572 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19573 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19574 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19575 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19576 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19577 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19578 s,@MSGFMT@,$MSGFMT,;t t
19579 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19580 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19581 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19582 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19583 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19584 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19585 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19586 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19587 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19588 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19589 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19590 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19591 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19592 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19593 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19594 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19595 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19596 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19597 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19598 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19599 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19600 s,@GNOME_DIR@,$GNOME_DIR,;t t
19601 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19602 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19603 s,@WX_DIR@,$WX_DIR,;t t
19604 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19605 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19606 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19607 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19608 s,@STATIC_FD@,$STATIC_FD,;t t
19609 s,@STATIC_SD@,$STATIC_SD,;t t
19610 s,@STATIC_DIR@,$STATIC_DIR,;t t
19611 s,@STATIC_CONS@,$STATIC_CONS,;t t
19612 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19613 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19614 s,@ALL_DIRS@,$ALL_DIRS,;t t
19615 s,@CONS_INC@,$CONS_INC,;t t
19616 s,@CONS_OBJ@,$CONS_OBJ,;t t
19617 s,@CONS_SRC@,$CONS_SRC,;t t
19618 s,@CONS_LIBS@,$CONS_LIBS,;t t
19619 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19620 s,@READLINE_SRC@,$READLINE_SRC,;t t
19621 s,@working_dir@,$working_dir,;t t
19622 s,@scriptdir@,$scriptdir,;t t
19623 s,@dump_email@,$dump_email,;t t
19624 s,@job_email@,$job_email,;t t
19625 s,@smtp_host@,$smtp_host,;t t
19626 s,@piddir@,$piddir,;t t
19627 s,@subsysdir@,$subsysdir,;t t
19628 s,@baseport@,$baseport,;t t
19629 s,@dir_port@,$dir_port,;t t
19630 s,@fd_port@,$fd_port,;t t
19631 s,@sd_port@,$sd_port,;t t
19632 s,@dir_password@,$dir_password,;t t
19633 s,@fd_password@,$fd_password,;t t
19634 s,@sd_password@,$sd_password,;t t
19635 s,@dir_user@,$dir_user,;t t
19636 s,@dir_group@,$dir_group,;t t
19637 s,@sd_user@,$sd_user,;t t
19638 s,@sd_group@,$sd_group,;t t
19639 s,@fd_user@,$fd_user,;t t
19640 s,@fd_group@,$fd_group,;t t
19641 s,@SBINPERM@,$SBINPERM,;t t
19642 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19643 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19644 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19645 s,@cats@,$cats,;t t
19646 s,@DB_NAME@,$DB_NAME,;t t
19647 s,@GETCONF@,$GETCONF,;t t
19648 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19649 s,@X_CFLAGS@,$X_CFLAGS,;t t
19650 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19651 s,@X_LIBS@,$X_LIBS,;t t
19652 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19653 s,@LIBOBJS@,$LIBOBJS,;t t
19654 s,@ALLOCA@,$ALLOCA,;t t
19655 s,@FDLIBS@,$FDLIBS,;t t
19656 s,@DEBUG@,$DEBUG,;t t
19657 s,@DINCLUDE@,$DINCLUDE,;t t
19658 s,@DLIB@,$DLIB,;t t
19659 s,@DB_LIBS@,$DB_LIBS,;t t
19660 s,@WCFLAGS@,$WCFLAGS,;t t
19661 s,@WLDFLAGS@,$WLDFLAGS,;t t
19662 s,@OBJLIST@,$OBJLIST,;t t
19663 s,@hostname@,$hostname,;t t
19664 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19665 s,@PSCMD@,$PSCMD,;t t
19666 s,@WIN32@,$WIN32,;t t
19667 s,@MACOSX@,$MACOSX,;t t
19668 s,@DISTNAME@,$DISTNAME,;t t
19669 s,@DISTVER@,$DISTVER,;t t
19670 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19671 /@MCOMMON@/r $MCOMMON
19677 cat >>$CONFIG_STATUS <<\_ACEOF
19678 # Split the substitutions into bite-sized pieces for seds with
19679 # small command number limits, like on Digital OSF/1 and HP-UX.
19680 ac_max_sed_lines=48
19681 ac_sed_frag=1 # Number of current file.
19682 ac_beg=1 # First line for current file.
19683 ac_end=$ac_max_sed_lines # Line after last line for current file.
19686 while $ac_more_lines; do
19687 if test $ac_beg -gt 1; then
19688 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19690 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19692 if test ! -s $tmp/subs.frag; then
19693 ac_more_lines=false
19695 # The purpose of the label and of the branching condition is to
19696 # speed up the sed processing (if there are no `@' at all, there
19697 # is no need to browse any of the substitutions).
19698 # These are the two extra sed commands mentioned above.
19700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19701 if test -z "$ac_sed_cmds"; then
19702 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19704 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19706 ac_sed_frag=`expr $ac_sed_frag + 1`
19708 ac_end=`expr $ac_end + $ac_max_sed_lines`
19711 if test -z "$ac_sed_cmds"; then
19714 fi # test -n "$CONFIG_FILES"
19717 cat >>$CONFIG_STATUS <<\_ACEOF
19718 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19719 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19721 - | *:- | *:-:* ) # input from stdin
19723 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19725 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19726 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19727 * ) ac_file_in=$ac_file.in ;;
19730 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19731 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19733 X"$ac_file" : 'X\(//\)[^/]' \| \
19734 X"$ac_file" : 'X\(//\)$' \| \
19735 X"$ac_file" : 'X\(/\)' \| \
19736 . : '\(.\)' 2>/dev/null ||
19738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19740 /^X\(\/\/\)$/{ s//\1/; q; }
19741 /^X\(\/\).*/{ s//\1/; q; }
19743 { if $as_mkdir_p; then
19748 while test ! -d "$as_dir"; do
19749 as_dirs="$as_dir $as_dirs"
19750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19752 X"$as_dir" : 'X\(//\)[^/]' \| \
19753 X"$as_dir" : 'X\(//\)$' \| \
19754 X"$as_dir" : 'X\(/\)' \| \
19755 . : '\(.\)' 2>/dev/null ||
19757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19759 /^X\(\/\/\)$/{ s//\1/; q; }
19760 /^X\(\/\).*/{ s//\1/; q; }
19763 test ! -n "$as_dirs" || mkdir $as_dirs
19764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19766 { (exit 1); exit 1; }; }; }
19770 if test "$ac_dir" != .; then
19771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19772 # A "../" for each directory in $ac_dir_suffix.
19773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19775 ac_dir_suffix= ac_top_builddir=
19779 .) # No --srcdir option. We are building in place.
19781 if test -z "$ac_top_builddir"; then
19784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19786 [\\/]* | ?:[\\/]* ) # Absolute path.
19787 ac_srcdir=$srcdir$ac_dir_suffix;
19788 ac_top_srcdir=$srcdir ;;
19789 *) # Relative path.
19790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19793 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19795 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19796 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19797 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19798 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19803 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19806 if test x"$ac_file" != x-; then
19807 { echo "$as_me:$LINENO: creating $ac_file" >&5
19808 echo "$as_me: creating $ac_file" >&6;}
19811 # Let's still pretend it is `configure' which instantiates (i.e., don't
19812 # use $as_me), people would be surprised to read:
19813 # /* config.h. Generated by config.status. */
19814 if test x"$ac_file" = x-; then
19817 configure_input="$ac_file. "
19819 configure_input=$configure_input"Generated from `echo $ac_file_in |
19820 sed 's,.*/,,'` by configure."
19822 # First look for the input files in the build tree, otherwise in the
19824 ac_file_inputs=`IFS=:
19825 for f in $ac_file_in; do
19827 -) echo $tmp/stdin ;;
19829 # Absolute (can't be DOS-style, as IFS=:)
19830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19831 echo "$as_me: error: cannot find input file: $f" >&2;}
19832 { (exit 1); exit 1; }; }
19835 if test -f "$f"; then
19838 elif test -f "$srcdir/$f"; then
19843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19844 echo "$as_me: error: cannot find input file: $f" >&2;}
19845 { (exit 1); exit 1; }; }
19848 done` || { (exit 1); exit 1; }
19850 cat >>$CONFIG_STATUS <<_ACEOF
19854 cat >>$CONFIG_STATUS <<\_ACEOF
19856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19857 s,@configure_input@,$configure_input,;t t
19858 s,@srcdir@,$ac_srcdir,;t t
19859 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19860 s,@top_srcdir@,$ac_top_srcdir,;t t
19861 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19862 s,@builddir@,$ac_builddir,;t t
19863 s,@abs_builddir@,$ac_abs_builddir,;t t
19864 s,@top_builddir@,$ac_top_builddir,;t t
19865 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19866 s,@INSTALL@,$ac_INSTALL,;t t
19867 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19869 if test x"$ac_file" != x-; then
19870 mv $tmp/out $ac_file
19878 cat >>$CONFIG_STATUS <<\_ACEOF
19881 # CONFIG_HEADER section.
19884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19887 # ac_d sets the value in "#define NAME VALUE" lines.
19888 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19889 ac_dB='[ ].*$,\1#\2'
19892 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19893 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19894 ac_uB='$,\1#\2define\3'
19898 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19901 - | *:- | *:-:* ) # input from stdin
19903 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19905 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19907 * ) ac_file_in=$ac_file.in ;;
19910 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19911 echo "$as_me: creating $ac_file" >&6;}
19913 # First look for the input files in the build tree, otherwise in the
19915 ac_file_inputs=`IFS=:
19916 for f in $ac_file_in; do
19918 -) echo $tmp/stdin ;;
19920 # Absolute (can't be DOS-style, as IFS=:)
19921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19922 echo "$as_me: error: cannot find input file: $f" >&2;}
19923 { (exit 1); exit 1; }; }
19926 if test -f "$f"; then
19929 elif test -f "$srcdir/$f"; then
19934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19935 echo "$as_me: error: cannot find input file: $f" >&2;}
19936 { (exit 1); exit 1; }; }
19939 done` || { (exit 1); exit 1; }
19940 # Remove the trailing spaces.
19941 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19945 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19946 # `conftest.undefs', that substitutes the proper values into
19947 # config.h.in to produce config.h. The first handles `#define'
19948 # templates, and the second `#undef' templates.
19949 # And first: Protect against being on the right side of a sed subst in
19950 # config.status. Protect against being in an unquoted here document
19951 # in config.status.
19952 rm -f conftest.defines conftest.undefs
19953 # Using a here document instead of a string reduces the quoting nightmare.
19954 # Putting comments in sed scripts is not portable.
19956 # `end' is used to avoid that the second main sed command (meant for
19957 # 0-ary CPP macros) applies to n-ary macro definitions.
19958 # See the Autoconf documentation for `clear'.
19959 cat >confdef2sed.sed <<\_ACEOF
19964 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19966 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19969 # If some macros were called several times there might be several times
19970 # the same #defines, which is useless. Nevertheless, we may not want to
19971 # sort them, since we want the *last* AC-DEFINE to be honored.
19972 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19973 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19974 rm -f confdef2sed.sed
19976 # This sed command replaces #undef with comments. This is necessary, for
19977 # example, in the case of _POSIX_SOURCE, which is predefined and required
19978 # on some systems where configure will not decide to define it.
19979 cat >>conftest.undefs <<\_ACEOF
19980 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19983 # Break up conftest.defines because some shells have a limit on the size
19984 # of here documents, and old seds have small limits too (100 cmds).
19985 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19986 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19987 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19988 echo ' :' >>$CONFIG_STATUS
19989 rm -f conftest.tail
19990 while grep . conftest.defines >/dev/null
19992 # Write a limited-size here document to $tmp/defines.sed.
19993 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19994 # Speed up: don't consider the non `#define' lines.
19995 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19996 # Work around the forget-to-reset-the-flag bug.
19997 echo 't clr' >>$CONFIG_STATUS
19998 echo ': clr' >>$CONFIG_STATUS
19999 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20001 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20003 mv $tmp/out $tmp/in
20005 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20006 rm -f conftest.defines
20007 mv conftest.tail conftest.defines
20009 rm -f conftest.defines
20010 echo ' fi # grep' >>$CONFIG_STATUS
20011 echo >>$CONFIG_STATUS
20013 # Break up conftest.undefs because some shells have a limit on the size
20014 # of here documents, and old seds have small limits too (100 cmds).
20015 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20016 rm -f conftest.tail
20017 while grep . conftest.undefs >/dev/null
20019 # Write a limited-size here document to $tmp/undefs.sed.
20020 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20021 # Speed up: don't consider the non `#undef'
20022 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20023 # Work around the forget-to-reset-the-flag bug.
20024 echo 't clr' >>$CONFIG_STATUS
20025 echo ': clr' >>$CONFIG_STATUS
20026 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20028 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20030 mv $tmp/out $tmp/in
20032 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20033 rm -f conftest.undefs
20034 mv conftest.tail conftest.undefs
20036 rm -f conftest.undefs
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039 # Let's still pretend it is `configure' which instantiates (i.e., don't
20040 # use $as_me), people would be surprised to read:
20041 # /* config.h. Generated by config.status. */
20042 if test x"$ac_file" = x-; then
20043 echo "/* Generated by configure. */" >$tmp/config.h
20045 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20047 cat $tmp/in >>$tmp/config.h
20049 if test x"$ac_file" != x-; then
20050 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20051 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20052 echo "$as_me: $ac_file is unchanged" >&6;}
20054 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20056 X"$ac_file" : 'X\(//\)[^/]' \| \
20057 X"$ac_file" : 'X\(//\)$' \| \
20058 X"$ac_file" : 'X\(/\)' \| \
20059 . : '\(.\)' 2>/dev/null ||
20061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20063 /^X\(\/\/\)$/{ s//\1/; q; }
20064 /^X\(\/\).*/{ s//\1/; q; }
20066 { if $as_mkdir_p; then
20071 while test ! -d "$as_dir"; do
20072 as_dirs="$as_dir $as_dirs"
20073 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20075 X"$as_dir" : 'X\(//\)[^/]' \| \
20076 X"$as_dir" : 'X\(//\)$' \| \
20077 X"$as_dir" : 'X\(/\)' \| \
20078 . : '\(.\)' 2>/dev/null ||
20080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20082 /^X\(\/\/\)$/{ s//\1/; q; }
20083 /^X\(\/\).*/{ s//\1/; q; }
20086 test ! -n "$as_dirs" || mkdir $as_dirs
20087 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20088 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20089 { (exit 1); exit 1; }; }; }
20092 mv $tmp/config.h $ac_file
20096 rm -f $tmp/config.h
20100 cat >>$CONFIG_STATUS <<\_ACEOF
20103 # CONFIG_COMMANDS section.
20105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20106 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20107 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20108 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20110 X"$ac_dest" : 'X\(//\)[^/]' \| \
20111 X"$ac_dest" : 'X\(//\)$' \| \
20112 X"$ac_dest" : 'X\(/\)' \| \
20113 . : '\(.\)' 2>/dev/null ||
20115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20117 /^X\(\/\/\)$/{ s//\1/; q; }
20118 /^X\(\/\).*/{ s//\1/; q; }
20122 if test "$ac_dir" != .; then
20123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20124 # A "../" for each directory in $ac_dir_suffix.
20125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20127 ac_dir_suffix= ac_top_builddir=
20131 .) # No --srcdir option. We are building in place.
20133 if test -z "$ac_top_builddir"; then
20136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20138 [\\/]* | ?:[\\/]* ) # Absolute path.
20139 ac_srcdir=$srcdir$ac_dir_suffix;
20140 ac_top_srcdir=$srcdir ;;
20141 *) # Relative path.
20142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20145 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20147 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20148 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20149 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20150 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20153 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20154 echo "$as_me: executing $ac_dest commands" >&6;}
20156 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20162 cat >>$CONFIG_STATUS <<\_ACEOF
20164 { (exit 0); exit 0; }
20166 chmod +x $CONFIG_STATUS
20167 ac_clean_files=$ac_clean_files_save
20170 # configure is writing to config.log, and then calls config.status.
20171 # config.status does its own redirection, appending to config.log.
20172 # Unfortunately, on DOS this fails, as config.log is still kept open
20173 # by configure, so config.status won't be able to write to it; its
20174 # output is simply discarded. So we exec the FD to /dev/null,
20175 # effectively closing config.log, so it can be properly (re)opened and
20176 # appended to by config.status. When coming back to configure, we
20177 # need to make the FD available again.
20178 if test "$no_create" != yes; then
20180 ac_config_status_args=
20181 test "$silent" = yes &&
20182 ac_config_status_args="$ac_config_status_args --quiet"
20184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20187 # would make configure fail if this is the last instruction.
20188 $ac_cs_success || { (exit 1); exit 1; }
20193 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20194 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20199 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20200 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20202 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20203 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20205 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20206 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20208 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20209 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20211 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20212 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20214 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20215 chmod 755 $c/sqlite
20218 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20219 largefile_support="yes"
20223 # A whole lot of hand springs to get the compiler version.
20224 # This is because gcc changed the output in version 3.0
20226 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20227 if test "x${CCVERSION}" = "x" ; then
20228 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20230 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20231 if test x"${CXXVERSION}" = x ; then
20232 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20235 if test "x${subsysdir}" = "x${sbindir}" ; then
20238 echo "You have set --sbindir and --with-subsys-dir"
20239 echo " both equal to: ${subsysdir} "
20240 echo " This is not permitted. Please reconfigure."
20242 echo "Aborting configuration ..."
20248 if test "x${db_name}" = "xInternal" ; then
20251 echo "You have not specified either --enable-client-only or one of the"
20252 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20253 echo " This is not permitted. Please reconfigure."
20255 echo "Aborting the configuration ..."
20262 Configuration on `date`:
20264 Host: $host -- ${DISTNAME} ${DISTVER}
20265 Bacula version: ${VERSION} (${DATE})
20266 Source code location: ${srcdir}
20267 Install binaries: ${sbindir}
20268 Install config files: ${sysconfdir}
20269 Scripts directory: ${scriptdir}
20270 Working directory: ${working_dir}
20271 PID directory: ${piddir}
20272 Subsys directory: ${subsysdir}
20273 C Compiler: ${CC} ${CCVERSION}
20274 C++ Compiler: ${CXX} ${CXXVERSION}
20275 Compiler flags: ${WCFLAGS} ${CFLAGS}
20276 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20278 Statically Linked Tools: ${support_static_tools}
20279 Statically Linked FD: ${support_static_fd}
20280 Statically Linked SD: ${support_static_sd}
20281 Statically Linked DIR: ${support_static_dir}
20282 Statically Linked CONS: ${support_static_cons}
20283 Database type: ${db_name}
20284 Database lib: ${DB_LIBS}
20286 Job Output Email: ${job_email}
20287 Traceback Email: ${dump_email}
20288 SMTP Host Address: ${smtp_host}
20290 Director Port: ${dir_port}
20291 File daemon Port: ${fd_port}
20292 Storage daemon Port: ${sd_port}
20294 Director User: ${dir_user}
20295 Director Group: ${dir_group}
20296 Storage Daemon User: ${sd_user}
20297 Storage DaemonGroup: ${sd_group}
20298 File Daemon User: ${fd_user}
20299 File Daemon Group: ${fd_group}
20301 SQL binaries Directory ${SQL_BINDIR}
20303 Large file support: $largefile_support
20304 Bacula conio support: ${got_conio} ${CONS_LIBS}
20305 readline support: ${got_readline} ${PRTREADLINE_SRC}
20306 TCP Wrappers support: ${TCPW_MSG}
20307 ZLIB support: ${have_zlib}
20308 enable-smartalloc: ${support_smartalloc}
20309 enable-gnome: ${support_gnome} ${gnome_version}
20310 enable-wx-console: ${support_wx_console}
20311 enable-tray-monitor: ${support_tray_monitor}
20312 client-only: ${build_client_only}
20313 ACL support: ${have_acl}
20320 # cweb support: ${got_cweb} ${CWEB_SRC}
20321 # gmp support: ${got_gmp} ${GMP_SRC}