2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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-smartalloc enable smartalloc debugging support disabled
861 --enable-static-tools enable static tape tools disabled
862 --enable-static-fd enable static File daemon disabled
863 --enable-static-sd enable static Storage daemon disabled
864 --enable-static-dir enable static Director disabled
865 --enable-static-cons enable static Console disabled
866 --enable-client-only build client (File daemon) only disabled
867 --disable-conio disable conio support enabled
869 --disable-readline disable readline support disable
871 --disable-largefile omit support for large files
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnome-includes Specify location of GNOME headers
877 --with-gnome-libs Specify location of GNOME libs
878 --with-gnome Specify prefix for GNOME files
879 --with-readline=DIR specify readline library directory
880 --with-tcp-wrappers=DIR enable tcpwrappers support
881 --with-working-dir=PATH specify path of Bacula working directory
882 --with-scriptdir=PATH specify path of Bacula scripts directory
883 --with-dump-email=EMAIL dump email address
884 --with-job-email=EMAIL job output email address
885 --with-smtp-host=HOST SMTP mail host address
886 --with-pid-dir=PATH specify location of Bacula pid files
887 --with-subsys-dir=PATH specify location of Bacula subsys file
888 --with-baseport=PORT specify base port address for daemons
889 --with-dir-password=PASSWORD specify Director's password
890 --with-fd-password=PASSWORD specify Client's password
891 --with-sd-password=PASSWORD specify Storage daemon's password
892 --with-dir-user=USER specify user for Director daemon
893 --with-dir-group=GROUP specify group for Director daemon
894 --with-sd-user=USER specify user for Storage daemon
895 --with-sd-group=GROUP specify group for Storage daemon
896 --with-fd-user=USER specify user for File daemon
897 --with-fd-group=GROUP specify group for File daemon
898 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
899 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
900 base install directory, defaults to /usr/local/pgsql
902 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
903 install directory, default is to search through
904 a number of common places for the MySQL files.
906 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
907 install directory, default is to search through
908 a number of common places for the MySQL files.
910 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
911 install directory, default is to search through
912 a number of common places for the SQLite files.
913 --with-x use the X Window System
915 Some influential environment variables:
916 CC C compiler command
917 CFLAGS C compiler flags
918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
919 nonstandard directory <lib dir>
920 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
921 headers in a nonstandard directory <include dir>
922 CXX C++ compiler command
923 CXXFLAGS C++ compiler flags
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h; then
1174 sed "/^$/d" confdefs.h | sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core core.* *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1370 # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1401 if test -n "$TRUEPRG"; then
1402 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$TRUEPRG" && break
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1413 for ac_prog in false
1415 # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1446 if test -n "$FALSEPRG"; then
1447 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1454 test -n "$FALSEPRG" && break
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1512 # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_ac_ct_CC="gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1552 if test -z "$CC"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1633 if test -z "$CC"; then
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653 ac_prog_rejected=yes
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy $ac_cv_prog_CC
1667 if test $# != 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1729 if test -z "$CC"; then
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785 "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788 (eval $ac_compiler --version </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793 (eval $ac_compiler -v </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798 (eval $ac_compiler -V </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828 (eval $ac_link_default) 2>&5
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }; then
1832 # Find the output, starting from the most likely. This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 test -f "$ac_file" || continue
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1847 # This is the source file.
1850 # We found the default executable, but exeext='' is most
1854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855 # FIXME: I believe we export ac_cv_exeext for Libtool,
1856 # but it would be cool to find out if it's true. Does anybody
1857 # maintain Libtool? --akim.
1865 echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872 { (exit 77); exit 77; }; }
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886 if { ac_try='./$ac_file'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 if test "$cross_compiling" = maybe; then
1897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run. If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922 (eval $ac_link) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; then
1926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 for ac_file in conftest.exe conftest conftest.*; do
1931 test -f "$ac_file" || continue
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104 CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106 if test "$GCC" = yes; then
2112 if test "$GCC" = yes; then
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_cv_prog_cc_stdc=no
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2150 s = g (p, va_arg (v,int));
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX -qlanglvl=ansi
2171 # Ultrix and OSF/1 -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions -Aa -D_HPUX_SOURCE
2174 # SVR4 -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 CC="$ac_save_CC $ac_arg"
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.$ac_objext
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2204 case "x$ac_cv_prog_cc_stdc" in
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 for ac_declaration in \
2237 '#include <stdlib.h>' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2318 if test -n "$ac_declaration"; then
2319 echo '#ifdef __cplusplus' >>confdefs.h
2320 echo $ac_declaration >>confdefs.h
2321 echo '#endif' >>confdefs.h
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$CXX"; then
2352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$CXX"; then
2372 echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2375 echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2379 test -n "$CXX" && break
2382 if test -z "$CXX"; then
2384 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CXX"; then
2394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_ac_ct_CXX="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 test -n "$ac_ct_CXX" && break
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431 "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434 (eval $ac_compiler --version </dev/null >&5) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439 (eval $ac_compiler -v </dev/null >&5) 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444 (eval $ac_compiler -V </dev/null >&5) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 ac_cv_prog_cxx_g=yes
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547 CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549 if test "$GXX" = yes; then
2555 if test "$GXX" = yes; then
2561 for ac_declaration in \
2563 '#include <stdlib.h>' \
2564 'extern "C" void std::exit (int) throw (); using std::exit;' \
2565 'extern "C" void std::exit (int); using std::exit;' \
2566 'extern "C" void exit (int) throw ();' \
2567 'extern "C" void exit (int);' \
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2644 if test -n "$ac_declaration"; then
2645 echo '#ifdef __cplusplus' >>confdefs.h
2646 echo $ac_declaration >>confdefs.h
2647 echo '#endif' >>confdefs.h
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test "x$CC" != xcc; then
2657 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 set dummy $CC; ac_cc=`echo $2 |
2664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); };
2699 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700 if test "x$CC" != xcc; then
2701 # Test first that cc exists at all.
2702 if { ac_try='cc -c conftest.$ac_ext >&5'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); };
2723 # cc exists but doesn't like -o.
2724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2758 if test -z "$CPP"; then
2759 if test "${ac_cv_prog_CPP+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 # Double quotes because CPP needs to be expanded
2763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2766 for ac_c_preproc_warn_flag in '' yes
2768 # Use a header file that comes with gcc, so configuring glibc
2769 # with a fresh cross-compiler works.
2770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 # <limits.h> exists even on freestanding compilers.
2772 # On the NeXT, cc -E runs the code through the compiler's parser,
2773 # not just through cpp. "Syntax error" is here to catch this case.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2782 # include <limits.h>
2784 # include <assert.h>
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2804 if test -z "$ac_cpp_err"; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 # Broken: fails on valid input.
2813 rm -f conftest.err conftest.$ac_ext
2815 # OK, works on sane cases. Now check whether non-existent headers
2816 # can be detected and how.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 #include <ac_nonexistent.h>
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1 >conftest.err
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } >/dev/null; then
2834 if test -s conftest.err; then
2835 ac_cpp_err=$ac_c_preproc_warn_flag
2842 if test -z "$ac_cpp_err"; then
2843 # Broken: success on invalid input.
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 # Passes both tests.
2853 rm -f conftest.err conftest.$ac_ext
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2873 for ac_c_preproc_warn_flag in '' yes
2875 # Use a header file that comes with gcc, so configuring glibc
2876 # with a fresh cross-compiler works.
2877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878 # <limits.h> exists even on freestanding compilers.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2889 # include <limits.h>
2891 # include <assert.h>
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2911 if test -z "$ac_cpp_err"; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Broken: fails on valid input.
2920 rm -f conftest.err conftest.$ac_ext
2922 # OK, works on sane cases. Now check whether non-existent headers
2923 # can be detected and how.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <ac_nonexistent.h>
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2949 if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Passes both tests.
2960 rm -f conftest.err conftest.$ac_ext
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988 then ac_cv_prog_egrep='grep -E'
2989 else ac_cv_prog_egrep='egrep'
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994 EGREP=$ac_cv_prog_egrep
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_pattern="Autoconf.*'x'"
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016 ac_cv_prog_gcc_traditional=yes
3018 ac_cv_prog_gcc_traditional=no
3023 if test $ac_cv_prog_gcc_traditional = no; then
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036 ac_cv_prog_gcc_traditional=yes
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044 if test $ac_cv_prog_gcc_traditional = yes; then
3045 CC="$CC -traditional"
3051 cat >>confdefs.h <<\_ACEOF
3057 # Find a good install program. We prefer a C program (faster),
3058 # so one script is as good as another. But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 # Account for people who put trailing slashes in PATH elements.
3082 ./ | .// | /cC/* | \
3083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 # OSF1 and SCO ODT 3.0 have their own names for install.
3087 # Don't use installbsd from OSF since it installs stuff as root
3089 for ac_prog in ginstall scoinst install; do
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092 if test $ac_prog = install &&
3093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094 # AIX install. It has an incompatible calling convention.
3096 elif test $ac_prog = install &&
3097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # program-specific install script used by HP pwplus--don't use.
3101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3113 if test "${ac_cv_path_install+set}" = set; then
3114 INSTALL=$ac_cv_path_install
3116 # As a last resort, use the slow shell script. We don't cache a
3117 # path for INSTALL within a source directory, because that will
3118 # break other packages using the cache if that directory is
3119 # removed, or if the path is relative.
3120 INSTALL=$ac_install_sh
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$RANLIB"; then
3143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163 echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_RANLIB="ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 RANLIB=$ac_ct_RANLIB
3211 RANLIB="$ac_cv_prog_RANLIB"
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3246 if test -n "$MV"; then
3247 echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3286 if test -n "$RM"; then
3287 echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3326 if test -n "$CP"; then
3327 echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3330 echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3366 if test -n "$SED"; then
3367 echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3406 if test -n "$AWK"; then
3407 echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3444 ECHO=$ac_cv_path_ECHO
3446 if test -n "$ECHO"; then
3447 echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3486 if test -n "$CMP"; then
3487 echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3526 if test -n "$TBL"; then
3527 echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3530 echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3604 OPENSSL=$ac_cv_path_OPENSSL
3606 if test -n "$OPENSSL"; then
3607 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3646 if test -n "$MTX"; then
3647 echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686 if test -n "$PKGCONFIG"; then
3687 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3726 if test -n "$WXCONFIG"; then
3727 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752 { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761 ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765 { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
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=
4133 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4143 echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4171 elif test -f /etc/SuSE-release
4174 elif test -d /etc/SuSEconfig
4177 elif test -f /etc/mandrake-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: \" \"" >&5
4209 echo "${ECHO_T}\" \"" >&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
4745 # -------------------------------------------
4746 # smartalloc (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4749 if test "${enable_smartalloc+set}" = set; then
4750 enableval="$enable_smartalloc"
4751 if test x$enableval = xno; then
4752 support_smartalloc=no
4756 if test x$support_smartalloc = xyes; then
4757 cat >>confdefs.h <<\_ACEOF
4758 #define SMARTALLOC 1
4763 # -------------------------------------------
4764 # static-tools (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-tools or --disable-static-tools was given.
4767 if test "${enable_static_tools+set}" = set; then
4768 enableval="$enable_static_tools"
4769 if test x$enableval = xyes; then
4770 support_static_tools=yes
4775 if test x$support_static_tools = xyes; then
4776 TTOOL_LDFLAGS="-static"
4780 # -------------------------------------------
4781 # static-fd (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-fd or --disable-static-fd was given.
4784 if test "${enable_static_fd+set}" = set; then
4785 enableval="$enable_static_fd"
4786 if test x$enableval = xyes; then
4787 support_static_fd=yes
4792 if test x$support_static_fd = xyes; then
4793 STATIC_FD="static-bacula-fd"
4797 # -------------------------------------------
4798 # static-sd (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-sd or --disable-static-sd was given.
4801 if test "${enable_static_sd+set}" = set; then
4802 enableval="$enable_static_sd"
4803 if test x$enableval = xyes; then
4804 support_static_sd=yes
4809 if test x$support_static_sd = xyes; then
4810 STATIC_SD="static-bacula-sd"
4814 # -------------------------------------------
4815 # static-dir (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-static-dir or --disable-static-dir was given.
4818 if test "${enable_static_dir+set}" = set; then
4819 enableval="$enable_static_dir"
4820 if test x$enableval = xyes; then
4821 support_static_dir=yes
4826 if test x$support_static_dir = xyes; then
4827 STATIC_DIR="static-bacula-dir"
4831 # -------------------------------------------
4832 # static-cons (default off)
4833 # -------------------------------------------
4834 # Check whether --enable-static-cons or --disable-static-cons was given.
4835 if test "${enable_static_cons+set}" = set; then
4836 enableval="$enable_static_cons"
4837 if test x$enableval = xyes; then
4838 support_static_cons=yes
4845 if test x$support_static_cons = xyes; then
4846 STATIC_CONS="static-bconsole"
4847 STATIC_GNOME_CONS="static-gnome-console"
4848 STATIC_WX_CONS="static-wx-console"
4854 # -------------------------------------------
4855 # client_only (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-client-only or --disable-client-only was given.
4858 if test "${enable_client_only+set}" = set; then
4859 enableval="$enable_client_only"
4860 if test x$enableval = xyes; then
4861 build_client_only=yes
4864 if test x$build_client_only = xno; then
4871 # ---------------------------------------------------
4872 # Check for conio (Bacula readline substitute)(
4873 # ---------------------------------------------------
4874 # this allows you to turn it completely off
4875 # Check whether --enable-conio or --disable-conio was given.
4876 if test "${enable_conio+set}" = set; then
4877 enableval="$enable_conio"
4878 if test x$enableval = xno; then
4884 if test x$support_conio = xyes; then
4885 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4886 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4887 if test "${ac_cv_header_stdc+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_header_stdc=yes
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_cv_header_stdc=no
4929 rm -f conftest.$ac_objext conftest.$ac_ext
4931 if test $ac_cv_header_stdc = yes; then
4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933 cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "memchr" >/dev/null 2>&1; then
4947 ac_cv_header_stdc=no
4953 if test $ac_cv_header_stdc = yes; then
4954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "free" >/dev/null 2>&1; then
4969 ac_cv_header_stdc=no
4975 if test $ac_cv_header_stdc = yes; then
4976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4977 if test "$cross_compiling" = yes; then
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4988 #if ((' ' & 0x0FF) == 0x020)
4989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992 # define ISLOWER(c) \
4993 (('a' <= (c) && (c) <= 'i') \
4994 || ('j' <= (c) && (c) <= 'r') \
4995 || ('s' <= (c) && (c) <= 'z'))
4996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5004 for (i = 0; i < 256; i++)
5005 if (XOR (islower (i), ISLOWER (i))
5006 || toupper (i) != TOUPPER (i))
5011 rm -f conftest$ac_exeext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013 (eval $ac_link) 2>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5024 echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_cv_header_stdc=no
5031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5037 if test $ac_cv_header_stdc = yes; then
5039 cat >>confdefs.h <<\_ACEOF
5040 #define STDC_HEADERS 1
5045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056 inttypes.h stdint.h unistd.h
5058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 echo "$as_me:$LINENO: checking for $ac_header" >&5
5060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5065 #line $LINENO "configure"
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 $ac_includes_default
5073 #include <$ac_header>
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 eval "$as_ac_Header=yes"
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 eval "$as_ac_Header=no"
5094 rm -f conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5099 cat >>confdefs.h <<_ACEOF
5100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5108 if test "${ac_cv_header_termcap_h+set}" = set; then
5109 echo "$as_me:$LINENO: checking for termcap.h" >&5
5110 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5111 if test "${ac_cv_header_termcap_h+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5115 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5117 # Is the header compilable?
5118 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5119 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 $ac_includes_default
5128 #include <termcap.h>
5130 rm -f conftest.$ac_objext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5132 (eval $ac_compile) 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_header_compiler=yes
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 ac_header_compiler=no
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151 echo "${ECHO_T}$ac_header_compiler" >&6
5153 # Is the header present?
5154 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5155 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5156 cat >conftest.$ac_ext <<_ACEOF
5157 #line $LINENO "configure"
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <termcap.h>
5165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null; then
5173 if test -s conftest.err; then
5174 ac_cpp_err=$ac_c_preproc_warn_flag
5181 if test -z "$ac_cpp_err"; then
5182 ac_header_preproc=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_header_preproc=no
5189 rm -f conftest.err conftest.$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5191 echo "${ECHO_T}$ac_header_preproc" >&6
5193 # So? What about this header?
5194 case $ac_header_compiler:$ac_header_preproc in
5196 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5197 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5198 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5199 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5202 ## ------------------------------------ ##
5203 ## Report this to bug-autoconf@gnu.org. ##
5204 ## ------------------------------------ ##
5207 sed "s/^/$as_me: WARNING: /" >&2
5210 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5211 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5213 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5215 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5218 ## ------------------------------------ ##
5219 ## Report this to bug-autoconf@gnu.org. ##
5220 ## ------------------------------------ ##
5223 sed "s/^/$as_me: WARNING: /" >&2
5226 echo "$as_me:$LINENO: checking for termcap.h" >&5
5227 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5228 if test "${ac_cv_header_termcap_h+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 ac_cv_header_termcap_h=$ac_header_preproc
5233 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5234 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5237 if test $ac_cv_header_termcap_h = yes; then
5238 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5239 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5240 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-ltermcap $LIBS"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270 (eval $ac_link) 2>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -s conftest$ac_exeext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 ac_cv_lib_termcap_tgetent=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_cv_lib_termcap_tgetent=no
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5290 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5291 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5292 if test $ac_cv_lib_termcap_tgetent = yes; then
5293 CONS_LIBS="-ltermcap"
5299 cat >>confdefs.h <<\_ACEOF
5300 #define HAVE_CONIO 1
5305 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5306 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5307 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 ac_check_lib_save_LIBS=$LIBS
5311 LIBS="-lncurses $LIBS"
5312 cat >conftest.$ac_ext <<_ACEOF
5313 #line $LINENO "configure"
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5320 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_lib_ncurses_tgetent=yes
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_cv_lib_ncurses_tgetent=no
5354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5358 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5359 if test $ac_cv_lib_ncurses_tgetent = yes; then
5360 CONS_LIBS="-lncurses"
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_CONIO 1
5372 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5380 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5387 # ---------------------------------------------------
5388 # Check for readline support/directory (default off)
5389 # ---------------------------------------------------
5390 # this allows you to turn it completely off
5391 # Check whether --enable-readline or --disable-readline was given.
5392 if test "${enable_readline+set}" = set; then
5393 enableval="$enable_readline"
5394 if test x$enableval = xno; then
5401 if test x$support_readline = xyes; then
5403 # Check whether --with-readline or --without-readline was given.
5404 if test "${with_readline+set}" = set; then
5405 withval="$with_readline"
5407 case "$with_readline" in
5410 if test "$with_readline" != "yes"; then
5411 CONS_INC="-I${with_readline}"
5412 CONS_LDFLAGS="-L$with_readline"
5414 with_readline="/usr/include/readline"
5416 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5419 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 # Is the header compilable?
5427 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5428 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <${with_readline}/readline.h>
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_header_compiler=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_header_compiler=no
5458 rm -f conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460 echo "${ECHO_T}$ac_header_compiler" >&6
5462 # Is the header present?
5463 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5464 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <${with_readline}/readline.h>
5474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477 grep -v '^ *+' conftest.er1 >conftest.err
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5490 if test -z "$ac_cpp_err"; then
5491 ac_header_preproc=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_preproc=no
5498 rm -f conftest.err conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500 echo "${ECHO_T}$ac_header_preproc" >&6
5502 # So? What about this header?
5503 case $ac_header_compiler:$ac_header_preproc in
5505 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5506 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5508 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5511 ## ------------------------------------ ##
5512 ## Report this to bug-autoconf@gnu.org. ##
5513 ## ------------------------------------ ##
5516 sed "s/^/$as_me: WARNING: /" >&2
5519 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5520 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5522 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5524 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5527 ## ------------------------------------ ##
5528 ## Report this to bug-autoconf@gnu.org. ##
5529 ## ------------------------------------ ##
5532 sed "s/^/$as_me: WARNING: /" >&2
5535 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5536 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 eval "$as_ac_Header=$ac_header_preproc"
5542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5547 cat >>confdefs.h <<\_ACEOF
5548 #define HAVE_READLINE 1
5551 CONS_LIBS="-lreadline -ltermcap"
5556 echo "readline.h not found. readline turned off ..."
5568 # check for standard readline library
5569 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5570 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5571 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5572 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5576 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5578 # Is the header compilable?
5579 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5580 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5581 cat >conftest.$ac_ext <<_ACEOF
5582 #line $LINENO "configure"
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5589 #include </usr/include/readline/readline.h>
5591 rm -f conftest.$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_header_compiler=yes
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_header_compiler=no
5610 rm -f conftest.$ac_objext conftest.$ac_ext
5611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5612 echo "${ECHO_T}$ac_header_compiler" >&6
5614 # Is the header present?
5615 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5616 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include </usr/include/readline/readline.h>
5626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5642 if test -z "$ac_cpp_err"; then
5643 ac_header_preproc=yes
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_header_preproc=no
5650 rm -f conftest.err conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5652 echo "${ECHO_T}$ac_header_preproc" >&6
5654 # So? What about this header?
5655 case $ac_header_compiler:$ac_header_preproc in
5657 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5658 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5660 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5663 ## ------------------------------------ ##
5664 ## Report this to bug-autoconf@gnu.org. ##
5665 ## ------------------------------------ ##
5668 sed "s/^/$as_me: WARNING: /" >&2
5671 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5672 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5674 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5676 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5679 ## ------------------------------------ ##
5680 ## Report this to bug-autoconf@gnu.org. ##
5681 ## ------------------------------------ ##
5684 sed "s/^/$as_me: WARNING: /" >&2
5687 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5688 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5689 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5694 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5695 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5698 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5699 cat >>confdefs.h <<\_ACEOF
5700 #define HAVE_READLINE 1
5704 CONS_INC="-I/usr/include/readline"
5705 CONS_LIBS="-lreadline -ltermcap"
5709 # Did not find standard library, so try Bacula's default
5710 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5712 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5713 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5720 # Is the header compilable?
5721 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5722 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 $ac_includes_default
5731 #include <${TOP_DIR}/depkgs/readline/readline.h>
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 ac_header_compiler=yes
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ac_header_compiler=no
5752 rm -f conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754 echo "${ECHO_T}$ac_header_compiler" >&6
5756 # Is the header present?
5757 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5758 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <${TOP_DIR}/depkgs/readline/readline.h>
5768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5784 if test -z "$ac_cpp_err"; then
5785 ac_header_preproc=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_header_preproc=no
5792 rm -f conftest.err conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5794 echo "${ECHO_T}$ac_header_preproc" >&6
5796 # So? What about this header?
5797 case $ac_header_compiler:$ac_header_preproc in
5799 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5800 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5802 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5805 ## ------------------------------------ ##
5806 ## Report this to bug-autoconf@gnu.org. ##
5807 ## ------------------------------------ ##
5810 sed "s/^/$as_me: WARNING: /" >&2
5813 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5814 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5815 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5816 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5817 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5818 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5821 ## ------------------------------------ ##
5822 ## Report this to bug-autoconf@gnu.org. ##
5823 ## ------------------------------------ ##
5826 sed "s/^/$as_me: WARNING: /" >&2
5829 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5830 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 eval "$as_ac_Header=$ac_header_preproc"
5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5841 cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_READLINE 1
5846 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5847 CONS_LIBS="-lreadline -lhistory -ltermcap"
5848 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5849 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5853 echo "readline.h not found. readline turned off ..."
5879 # Minimal stuff for readline Makefile configuration
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "You lose" >/dev/null 2>&1; then
5925 ac_cv_header_stat_broken=yes
5927 ac_cv_header_stat_broken=no
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 eval "$as_ac_Header=yes"
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 eval "$as_ac_Header=no"
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6002 ac_header_dirent=$ac_hdr; break
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058 for ac_lib in dir; do
6059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_opendir="-l$ac_lib"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6115 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_opendir="none required"
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_search_opendir="-l$ac_lib"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_func_search_save_LIBS
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6232 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6235 echo "$as_me:$LINENO: checking for $ac_func" >&5
6236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6237 if eval "test \"\${$as_ac_var+set}\" = set"; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6241 #line $LINENO "configure"
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func (); below.
6249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250 <limits.h> exists even on freestanding compilers. */
6252 # include <limits.h>
6254 # include <assert.h>
6256 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6264 /* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
6267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6270 char (*f) () = $ac_func;
6279 return f != $ac_func;
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 eval "$as_ac_var=yes"
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 eval "$as_ac_var=no"
6303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6307 if test `eval echo '${'$as_ac_var'}'` = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6317 for ac_func in nanosleep nl_langinfo
6319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 echo "$as_me:$LINENO: checking for $ac_func" >&5
6321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6322 if eval "test \"\${$as_ac_var+set}\" = set"; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 /* System header to define __stub macros and hopefully few prototypes,
6333 which can conflict with char $ac_func (); below.
6334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6335 <limits.h> exists even on freestanding compilers. */
6337 # include <limits.h>
6339 # include <assert.h>
6341 /* Override any gcc2 internal prototype to avoid an error. */
6346 /* We use char because int might match the return type of a gcc2
6347 builtin and then its argument prototype would still apply. */
6349 /* The GNU C library defines this for functions which it implements
6350 to always fail with ENOSYS. Some functions are actually named
6351 something starting with __ and the normal name is an alias. */
6352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6355 char (*f) () = $ac_func;
6364 return f != $ac_func;
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 eval "$as_ac_var=yes"
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 eval "$as_ac_var=no"
6388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6392 if test `eval echo '${'$as_ac_var'}'` = yes; then
6393 cat >>confdefs.h <<_ACEOF
6394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6402 for ac_header in varargs.h
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6414 # Is the header compilable?
6415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6418 #line $LINENO "configure"
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 $ac_includes_default
6425 #include <$ac_header>
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_header_compiler=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_header_compiler=no
6446 rm -f conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <$ac_header>
6462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } >/dev/null; then
6470 if test -s conftest.err; then
6471 ac_cpp_err=$ac_c_preproc_warn_flag
6478 if test -z "$ac_cpp_err"; then
6479 ac_header_preproc=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_header_preproc=no
6486 rm -f conftest.err conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc in
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6499 ## ------------------------------------ ##
6500 ## Report this to bug-autoconf@gnu.org. ##
6501 ## ------------------------------------ ##
6504 sed "s/^/$as_me: WARNING: /" >&2
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 ## ------------------------------------ ##
6516 ## Report this to bug-autoconf@gnu.org. ##
6517 ## ------------------------------------ ##
6520 sed "s/^/$as_me: WARNING: /" >&2
6523 echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 eval "$as_ac_Header=$ac_header_preproc"
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535 cat >>confdefs.h <<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6544 # End of readline/conio stuff
6545 # -----------------------------------------------------------------------
6548 # ---------------------------------------------------
6549 # Check for GMP support/directory
6550 # ---------------------------------------------------
6554 # [ --with-gmp[=DIR] Specify gmp library directory],
6556 # case "$with_gmp" in
6559 # if test "$with_gmp" != "yes"; then
6560 # GMP_INC="-I$with_gmp"
6562 # GMP_LDFLAGS="-L$with_gmp"
6564 # with_gmp="/usr/include"
6566 # AC_CHECK_HEADER($with_gmp/gmp.h,
6567 # [ AC_MSG_RESULT(yes)
6568 # AC_DEFINE(HAVE_GMP)
6572 # [ AC_MSG_ERROR([*** gmp library missing])
6578 # # check for standard gmp library
6579 # AC_CHECK_HEADER(/usr/include/gmp.h,
6580 # [ AC_MSG_RESULT(yes)
6581 # AC_DEFINE(HAVE_GMP)
6586 # # Did not find standard library, so use our own
6587 # AC_MSG_RESULT(yes)
6588 # AC_DEFINE(HAVE_GMP)
6591 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6593 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6594 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6600 #AC_SUBST(GMP_LDFLAGS)
6604 # -----------------------------------------------------------------------
6607 # ---------------------------------------------------
6608 # Check for CWEB support/directory
6609 # ---------------------------------------------------
6614 # [ --with-cweb[=DIR] Specify cweb library directory],
6616 # case "$with_cweb" in
6619 # if test "$with_cweb" != "yes"; then
6620 # CWEB_INC="-I$with_cweb"
6621 # CWEB_LIBS="-lcweb"
6622 # CWEB_LDFLAGS="-L$with_cweb"
6624 # with_cweb="/usr/include"
6626 # AC_CHECK_HEADER($with_cweb/cweb.h,
6627 # [ AC_MSG_RESULT(yes)
6628 # AC_DEFINE(HAVE_CWEB)
6629 # CWEB_LIBS="-lcweb"
6632 # [ AC_MSG_ERROR([*** cweb library missing])
6638 # # check for standard cweb library
6639 # AC_CHECK_HEADER(/usr/include/cweb.h,
6640 # [ AC_MSG_RESULT(yes)
6641 # AC_DEFINE(HAVE_CWEB)
6644 # CWEB_LIBS="-lcweb"
6646 # # Did not find starndard library, so use our own
6647 # AC_MSG_RESULT(yes)
6648 # AC_DEFINE(HAVE_CWEB)
6651 # CWEB=${TOP_DIR}/depkgs/cweb
6652 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6653 # CWEB_LIBS="-lcweb"
6654 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6655 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6661 #AC_SUBST(CWEB_LIBS)
6662 #AC_SUBST(CWEB_LDFLAGS)
6666 # -----------------------------------------------------------------------
6670 # -----------------------------------------------------------
6671 # Check whether user wants TCP wrappers support (default off)
6672 # -----------------------------------------------------------
6675 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6676 if test "${with_tcp_wrappers+set}" = set; then
6677 withval="$with_tcp_wrappers"
6679 if test "x$withval" != "xno" ; then
6681 LIBS="$saved_LIBS -lwrap"
6682 echo "$as_me:$LINENO: checking for libwrap" >&5
6683 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 int deny_severity = 0;
6693 int allow_severity = 0;
6694 struct request_info *req;
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6
6718 cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_LIBWRAP 1
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6729 LIBS="$saved_LIBS -lwrap -lnsl"
6730 cat >conftest.$ac_ext <<_ACEOF
6731 #line $LINENO "configure"
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6738 int deny_severity = 0;
6739 int allow_severity = 0;
6740 struct request_info *req;
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6762 echo "$as_me:$LINENO: result: yes" >&5
6763 echo "${ECHO_T}yes" >&6
6764 cat >>confdefs.h <<\_ACEOF
6765 #define HAVE_LIBWRAP 1
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6775 echo "$as_me: error: *** libwrap missing" >&2;}
6776 { (exit 1); exit 1; }; }
6779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788 # ------------------------------------------
6789 # Where to place working dir
6790 # ------------------------------------------
6791 working_dir=`eval echo ${prefix}/var/bacula/working`
6793 # Check whether --with-working-dir or --without-working-dir was given.
6794 if test "${with_working_dir+set}" = set; then
6795 withval="$with_working_dir"
6797 if test "x$withval" != "xno" ; then
6798 working_dir=$withval
6807 # ------------------------------------------
6808 # Where to place scriptdir (script files)
6809 # ------------------------------------------
6810 scriptdir=`eval echo ${sysconfdir}`
6812 # Check whether --with-scriptdir or --without-scriptdir was given.
6813 if test "${with_scriptdir+set}" = set; then
6814 withval="$with_scriptdir"
6816 if test "x$withval" != "xno" ; then
6826 # ------------------------------------------
6827 # Where to send dump email
6828 # ------------------------------------------
6829 dump_email=root@localhost
6831 # Check whether --with-dump-email or --without-dump-email was given.
6832 if test "${with_dump_email+set}" = set; then
6833 withval="$with_dump_email"
6835 if test "x$withval" != "xno" ; then
6844 # ------------------------------------------
6845 # Where to send job email
6846 # ------------------------------------------
6847 job_email=root@localhost
6849 # Check whether --with-job-email or --without-job-email was given.
6850 if test "${with_job_email+set}" = set; then
6851 withval="$with_job_email"
6853 if test "x$withval" != "xno" ; then
6862 # ------------------------------------------
6863 # Where to find smtp host
6864 # ------------------------------------------
6867 # Check whether --with-smtp_host or --without-smtp_host was given.
6868 if test "${with_smtp_host+set}" = set; then
6869 withval="$with_smtp_host"
6871 if test "x$withval" != "xno" ; then
6881 # ------------------------------------
6882 # Where to place pid files
6883 # ------------------------------------
6886 # Check whether --with-pid-dir or --without-pid-dir was given.
6887 if test "${with_pid_dir+set}" = set; then
6888 withval="$with_pid_dir"
6890 if test "x$withval" != "xno" ; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define _PATH_BACULA_PIDDIR "$piddir"
6904 # ------------------------------------
6905 # Where to place subsys "lock file"
6906 # ------------------------------------
6907 subsysdir=/var/run/subsys
6909 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6910 if test "${with_subsys_dir+set}" = set; then
6911 withval="$with_subsys_dir"
6913 if test "x$withval" != "xno" ; then
6924 # ------------------------------------
6925 # Where to start assigning ports
6926 # ------------------------------------
6929 # Check whether --with-baseport or --without-baseport was given.
6930 if test "${with_baseport+set}" = set; then
6931 withval="$with_baseport"
6933 if test "x$withval" != "xno" ; then
6941 dir_port=`expr $baseport`
6942 fd_port=`expr $baseport + 1`
6943 sd_port=`expr $fd_port + 1`
6950 # ------------------------------------------
6951 # Generate passwords
6952 # ------------------------------------------
6955 # Check whether --with-dir-password or --without-dir-password was given.
6956 if test "${with_dir_password+set}" = set; then
6957 withval="$with_dir_password"
6959 if test "x$withval" != "xno" ; then
6960 dir_password=$withval
6966 if test "x$dir_password" = "x" ; then
6967 if test "x$OPENSSL" = "xnone" ; then
6968 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6969 key=`autoconf/randpass 33`
6971 key=`openssl rand -base64 33`
6978 # Check whether --with-fd-password or --without-fd-password was given.
6979 if test "${with_fd_password+set}" = set; then
6980 withval="$with_fd_password"
6982 if test "x$withval" != "xno" ; then
6983 fd_password=$withval
6989 if test "x$fd_password" = "x" ; then
6990 if test "x$OPENSSL" = "xnone" ; then
6991 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6992 key=`autoconf/randpass 37`
6994 key=`openssl rand -base64 33`
7001 # Check whether --with-sd-password or --without-sd-password was given.
7002 if test "${with_sd_password+set}" = set; then
7003 withval="$with_sd_password"
7005 if test "x$withval" != "xno" ; then
7006 sd_password=$withval
7012 if test "x$sd_password" = "x" ; then
7013 if test "x$OPENSSL" = "xnone" ; then
7014 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7015 key=`autoconf/randpass 41`
7017 key=`openssl rand -base64 33`
7029 # Handle users and groups for each daemon
7033 # Check whether --with-dir_user or --without-dir_user was given.
7034 if test "${with_dir_user+set}" = set; then
7035 withval="$with_dir_user"
7037 if test "x$withval" != "x" ; then
7046 # Check whether --with-dir_group or --without-dir_group was given.
7047 if test "${with_dir_group+set}" = set; then
7048 withval="$with_dir_group"
7050 if test "x$withval" != "x" ; then
7059 # Check whether --with-sd_user or --without-sd_user was given.
7060 if test "${with_sd_user+set}" = set; then
7061 withval="$with_sd_user"
7063 if test "x$withval" != "x" ; then
7072 # Check whether --with-sd_group or --without-sd_group was given.
7073 if test "${with_sd_group+set}" = set; then
7074 withval="$with_sd_group"
7076 if test "x$withval" != "x" ; then
7085 # Check whether --with-fd_user or --without-fd_user was given.
7086 if test "${with_fd_user+set}" = set; then
7087 withval="$with_fd_user"
7089 if test "x$withval" != "x" ; then
7098 # Check whether --with-fd_group or --without-fd_group was given.
7099 if test "${with_fd_group+set}" = set; then
7100 withval="$with_fd_group"
7102 if test "x$withval" != "x" ; then
7120 # allow setting default executable permissions
7124 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7125 if test "${with_sbin_perm+set}" = set; then
7126 withval="$with_sbin_perm"
7128 if test "x$withval" != "x" ; then
7137 # ------------------------------------------------
7138 # Bacula check for various SQL database engines
7139 # ------------------------------------------------
7142 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7143 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7145 # Check whether --with-postgresql or --without-postgresql was given.
7146 if test "${with_postgresql+set}" = set; then
7147 withval="$with_postgresql"
7149 if test "$withval" != "no"; then
7150 if test "$db_found" = "yes"; then
7151 echo "$as_me:$LINENO: result: error" >&5
7152 echo "${ECHO_T}error" >&6
7153 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7154 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7155 { (exit 1); exit 1; }; };
7157 if test "$withval" = "yes"; then
7158 if test -f /usr/local/include/libpq-fe.h; then
7159 POSTGRESQL_INCDIR=/usr/local/include
7160 POSTGRESQL_LIBDIR=/usr/local/lib
7161 POSTGRESQL_BINDIR=/usr/local/bin
7162 elif test -f /usr/include/libpq-fe.h; then
7163 POSTGRESQL_INCDIR=/usr/include
7164 POSTGRESQL_LIBDIR=/usr/lib
7165 POSTGRESQL_BINDIR=/usr/bin
7166 elif test -f /usr/include/pgsql/libpq-fe.h; then
7167 POSTGRESQL_INCDIR=/usr/include/pgsql
7168 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7169 POSTGRESQL_BINDIR=/usr/bin
7170 elif test -f /usr/include/postgresql/libpq-fe.h; then
7171 POSTGRESQL_INCDIR=/usr/include/postgresql
7172 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7173 POSTGRESQL_BINDIR=/usr/bin
7175 echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7177 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7178 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7179 { (exit 1); exit 1; }; }
7181 elif test -f $withval/include/libpq-fe.h; then
7182 POSTGRESQL_INCDIR=$withval/include
7183 POSTGRESQL_LIBDIR=$withval/lib
7184 POSTGRESQL_BINDIR=$withval/bin
7186 echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6
7188 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7189 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7190 { (exit 1); exit 1; }; }
7192 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7193 echo "$as_me:$LINENO: checking for crypt" >&5
7194 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7195 if test "${ac_cv_func_crypt+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 cat >conftest.$ac_ext <<_ACEOF
7199 #line $LINENO "configure"
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 /* System header to define __stub macros and hopefully few prototypes,
7206 which can conflict with char crypt (); below.
7207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208 <limits.h> exists even on freestanding compilers. */
7210 # include <limits.h>
7212 # include <assert.h>
7214 /* Override any gcc2 internal prototype to avoid an error. */
7219 /* We use char because int might match the return type of a gcc2
7220 builtin and then its argument prototype would still apply. */
7222 /* The GNU C library defines this for functions which it implements
7223 to always fail with ENOSYS. Some functions are actually named
7224 something starting with __ and the normal name is an alias. */
7225 #if defined (__stub_crypt) || defined (__stub___crypt)
7228 char (*f) () = crypt;
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -s conftest$ac_exeext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_func_crypt=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7263 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7264 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7265 if test $ac_cv_func_crypt = yes; then
7268 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7269 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7270 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 ac_check_lib_save_LIBS=$LIBS
7274 LIBS="-lcrypt $LIBS"
7275 cat >conftest.$ac_ext <<_ACEOF
7276 #line $LINENO "configure"
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7283 /* Override any gcc2 internal prototype to avoid an error. */
7287 /* We use char because int might match the return type of a gcc2
7288 builtin and then its argument prototype would still apply. */
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300 (eval $ac_link) 2>&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_lib_crypt_crypt=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_lib_crypt_crypt=no
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 LIBS=$ac_check_lib_save_LIBS
7320 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7321 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7322 if test $ac_cv_lib_crypt_crypt = yes; then
7323 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7328 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7329 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7330 SQL_BINDIR=$POSTGRESQL_BINDIR
7331 cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_POSTGRESQL 1
7335 echo "$as_me:$LINENO: result: yes" >&5
7336 echo "${ECHO_T}yes" >&6
7338 support_postgresql=yes
7342 echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6
7348 echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7360 echo "$as_me:$LINENO: checking for MySQL support" >&5
7361 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7363 # Check whether --with-mysql or --without-mysql was given.
7364 if test "${with_mysql+set}" = set; then
7365 withval="$with_mysql"
7367 if test "$withval" != "no"; then
7368 if test "$withval" = "yes"; then
7369 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7370 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7371 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7372 MYSQL_BINDIR=/usr/local/mysql/bin
7373 elif test -f /usr/include/mysql/mysql.h; then
7374 MYSQL_INCDIR=/usr/include/mysql
7375 MYSQL_LIBDIR=/usr/lib/mysql
7376 MYSQL_BINDIR=/usr/bin
7377 elif test -f /usr/include/mysql.h; then
7378 MYSQL_INCDIR=/usr/include
7379 MYSQL_LIBDIR=/usr/lib
7380 MYSQL_BINDIR=/usr/bin
7381 elif test -f /usr/local/include/mysql/mysql.h; then
7382 MYSQL_INCDIR=/usr/local/include/mysql
7383 MYSQL_LIBDIR=/usr/local/lib/mysql
7384 MYSQL_BINDIR=/usr/local/bin
7385 elif test -f /usr/local/include/mysql.h; then
7386 MYSQL_INCDIR=/usr/local/include
7387 MYSQL_LIBDIR=/usr/local/lib
7388 MYSQL_BINDIR=/usr/local/bin
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7392 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7393 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7394 { (exit 1); exit 1; }; }
7397 if test -f $withval/include/mysql/mysql.h; then
7398 MYSQL_INCDIR=$withval/include/mysql
7399 MYSQL_LIBDIR=$withval/lib/mysql
7400 MYSQL_BINDIR=$withval/bin
7401 elif test -f $withval/include/mysql.h; then
7402 MYSQL_INCDIR=$withval/include
7403 MYSQL_LIBDIR=$withval/lib
7404 MYSQL_BINDIR=$withval/bin
7406 echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7408 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7409 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7410 { (exit 1); exit 1; }; }
7413 SQL_INCLUDE=-I$MYSQL_INCDIR
7414 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7415 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7416 cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_THREAD_SAFE_MYSQL 1
7421 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7423 SQL_BINDIR=$MYSQL_BINDIR
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_MYSQL 1
7429 echo "$as_me:$LINENO: result: yes" >&5
7430 echo "${ECHO_T}yes" >&6
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7443 echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7449 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7450 if test "${with_embedded_mysql+set}" = set; then
7451 withval="$with_embedded_mysql"
7453 if test "$withval" != "no"; then
7454 if test "$withval" = "yes"; then
7455 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7456 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7457 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7458 MYSQL_BINDIR=/usr/local/mysql/bin
7459 elif test -f /usr/include/mysql/mysql.h; then
7460 MYSQL_INCDIR=/usr/include/mysql
7461 MYSQL_LIBDIR=/usr/lib/mysql
7462 MYSQL_BINDIR=/usr/bin
7463 elif test -f /usr/include/mysql.h; then
7464 MYSQL_INCDIR=/usr/include
7465 MYSQL_LIBDIR=/usr/lib
7466 MYSQL_BINDIR=/usr/bin
7467 elif test -f /usr/local/include/mysql/mysql.h; then
7468 MYSQL_INCDIR=/usr/local/include/mysql
7469 MYSQL_LIBDIR=/usr/local/lib/mysql
7470 MYSQL_BINDIR=/usr/local/bin
7471 elif test -f /usr/local/include/mysql.h; then
7472 MYSQL_INCDIR=/usr/local/include
7473 MYSQL_LIBDIR=/usr/local/lib
7474 MYSQL_BINDIR=/usr/local/bin
7476 echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7479 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7480 { (exit 1); exit 1; }; }
7483 if test -f $withval/include/mysql/mysql.h; then
7484 MYSQL_INCDIR=$withval/include/mysql
7485 MYSQL_LIBDIR=$withval/lib/mysql
7486 MYSQL_BINDIR=$withval/bin
7487 elif test -f $withval/include/mysql.h; then
7488 MYSQL_INCDIR=$withval/include
7489 MYSQL_LIBDIR=$withval/lib
7490 MYSQL_BINDIR=$withval/bin
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7495 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7496 { (exit 1); exit 1; }; }
7499 SQL_INCLUDE=-I$MYSQL_INCDIR
7500 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7501 SQL_BINDIR=$MYSQL_BINDIR
7503 cat >>confdefs.h <<\_ACEOF
7504 #define HAVE_MYSQL 1
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_EMBEDDED_MYSQL 1
7511 echo "$as_me:$LINENO: result: yes" >&5
7512 echo "${ECHO_T}yes" >&6
7519 echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7539 echo "$as_me:$LINENO: checking for SQLite support" >&5
7540 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7542 # Check whether --with-sqlite or --without-sqlite was given.
7543 if test "${with_sqlite+set}" = set; then
7544 withval="$with_sqlite"
7546 if test "$withval" != "no"; then
7547 if test "$withval" = "yes"; then
7548 if test -f /usr/local/include/sqlite.h; then
7549 SQLITE_INCDIR=/usr/local/include
7550 SQLITE_LIBDIR=/usr/local/lib
7551 SQLITE_BINDIR=/usr/local/bin
7552 elif test -f /usr/include/sqlite.h; then
7553 SQLITE_INCDIR=/usr/include
7554 SQLITE_LIBDIR=/usr/lib
7555 SQLITE_BINDIR=/usr/bin
7557 echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6
7559 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7560 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7561 { (exit 1); exit 1; }; }
7564 if test -f $withval/sqlite.h; then
7565 SQLITE_INCDIR=$withval
7566 SQLITE_LIBDIR=$withval
7567 SQLITE_BINDIR=$withval
7569 echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7571 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7572 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7573 { (exit 1); exit 1; }; }
7576 SQL_INCLUDE=-I$SQLITE_INCDIR
7577 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7578 SQL_BINDIR=$SQLITE_BINDIR
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_SQLITE 1
7584 echo "$as_me:$LINENO: result: yes" >&5
7585 echo "${ECHO_T}yes" >&6
7592 echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7598 echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7611 cat >>confdefs.h <<\_ACEOF
7612 #define PROTOTYPES 1
7616 if test -z "$CFLAGS"; then
7617 if test -z "$CCOPTS"; then
7626 largefile_support="no"
7628 # Check whether --enable-largefile or --disable-largefile was given.
7629 if test "${enable_largefile+set}" = set; then
7630 enableval="$enable_largefile"
7633 if test "$enable_largefile" != no; then
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7637 echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639 if test "${ac_cv_prog_GETCONF+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 if test -n "$GETCONF"; then
7643 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 GETCONF=$ac_cv_prog_GETCONF
7662 if test -n "$GETCONF"; then
7663 echo "$as_me:$LINENO: result: $GETCONF" >&5
7664 echo "${ECHO_T}$GETCONF" >&6
7666 echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6
7671 if test -z "$ac_cv_prog_GETCONF"; then
7672 ac_ct_GETCONF=$GETCONF
7673 # Extract the first word of "getconf", so it can be a program name with args.
7674 set dummy getconf; ac_word=$2
7675 echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 if test -n "$ac_ct_GETCONF"; then
7681 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_ac_ct_GETCONF="getconf"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7700 if test -n "$ac_ct_GETCONF"; then
7701 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7702 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7704 echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7708 GETCONF=$ac_ct_GETCONF
7710 GETCONF="$ac_cv_prog_GETCONF"
7713 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7714 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7715 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7719 ac_cv_sys_largefile_CFLAGS=no
7721 # IRIX 6.2 and later require cc -n32.
7722 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7723 if test "$GCC" != yes; then
7724 ac_cv_sys_largefile_CFLAGS=-n32
7727 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_cv_sys_largefile_CFLAGS=no
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7769 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7770 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7771 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7772 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7776 ac_cv_sys_largefile_LDFLAGS=no
7780 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7781 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7782 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7783 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7784 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7788 ac_cv_sys_largefile_LIBS=no
7792 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7793 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7795 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7798 -D_FILE_OFFSET_BITS=*) ;;
7799 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7800 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7806 '') CPPFLAGS="$ac_flag" ;;
7807 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7815 '') CFLAGS="$ac_flag" ;;
7816 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7821 case "$ac_cv_sys_largefile_LDFLAGS" in
7825 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7826 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7829 case "$ac_cv_sys_largefile_LIBS" in
7833 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7834 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7837 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7838 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7839 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 ac_cv_sys_file_offset_bits=no
7844 # HP-UX 10.20 and later
7845 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7846 ac_cv_sys_file_offset_bits=64 ;;
7848 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7850 -D_FILE_OFFSET_BITS)
7851 ac_cv_sys_file_offset_bits=1 ;;
7852 -D_FILE_OFFSET_BITS=*)
7853 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7858 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7859 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7860 if test "$ac_cv_sys_file_offset_bits" != no; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7867 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7868 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7869 if test "${ac_cv_sys_largefile_source+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 ac_cv_sys_largefile_source=no
7874 # HP-UX 10.20 and later
7875 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7876 ac_cv_sys_largefile_source=1 ;;
7878 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7880 -D_LARGEFILE_SOURCE)
7881 ac_cv_sys_largefile_source=1 ;;
7882 -D_LARGEFILE_SOURCE=*)
7883 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7888 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7889 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7890 if test "$ac_cv_sys_largefile_source" != no; then
7892 cat >>confdefs.h <<_ACEOF
7893 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7897 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7898 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7899 if test "${ac_cv_sys_large_files+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 ac_cv_sys_large_files=no
7905 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7906 ac_cv_sys_large_files=1 ;;
7908 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7911 ac_cv_sys_large_files=1 ;;
7913 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7918 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7919 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7920 if test "$ac_cv_sys_large_files" != no; then
7922 cat >>confdefs.h <<_ACEOF
7923 #define _LARGE_FILES $ac_cv_sys_large_files
7931 echo "$as_me:$LINENO: checking for X" >&5
7932 echo $ECHO_N "checking for X... $ECHO_C" >&6
7935 # Check whether --with-x or --without-x was given.
7936 if test "${with_x+set}" = set; then
7940 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7941 if test "x$with_x" = xno; then
7942 # The user explicitly disabled X.
7945 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7946 # Both variables are already set.
7949 if test "${ac_cv_have_x+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 # One or both of the vars are not set, and there is no cached value.
7953 ac_x_includes=no ac_x_libraries=no
7955 if mkdir conftest.dir; then
7957 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7958 cat >Imakefile <<'_ACEOF'
7960 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7962 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7964 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7965 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7966 for ac_extension in a so sl; do
7967 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7968 test -f $ac_im_libdir/libX11.$ac_extension; then
7969 ac_im_usrlibdir=$ac_im_libdir; break
7972 # Screen out bogus values from the imake configuration. They are
7973 # bogus both because they are the default anyway, and because
7974 # using them would break gcc on systems where it needs fixed includes.
7975 case $ac_im_incroot in
7977 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7979 case $ac_im_usrlibdir in
7981 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7988 # Standard set of common directories for X headers.
7989 # Check X11 before X11Rn because it is often a symlink to the current release.
8001 /usr/local/X11/include
8002 /usr/local/X11R6/include
8003 /usr/local/X11R5/include
8004 /usr/local/X11R4/include
8006 /usr/local/include/X11
8007 /usr/local/include/X11R6
8008 /usr/local/include/X11R5
8009 /usr/local/include/X11R4
8013 /usr/XFree86/include/X11
8017 /usr/unsupported/include
8019 /usr/local/x11r5/include
8020 /usr/lpp/Xamples/include
8022 /usr/openwin/include
8023 /usr/openwin/share/include'
8025 if test "$ac_x_includes" = no; then
8026 # Guess where to find include files, by looking for Intrinsic.h.
8027 # First, try using that file with no special directory specified.
8028 cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 #include <X11/Intrinsic.h>
8037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } >/dev/null; then
8045 if test -s conftest.err; then
8046 ac_cpp_err=$ac_c_preproc_warn_flag
8053 if test -z "$ac_cpp_err"; then
8054 # We can compile using X headers with no special include directory.
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 for ac_dir in $ac_x_header_dirs; do
8061 if test -r "$ac_dir/X11/Intrinsic.h"; then
8062 ac_x_includes=$ac_dir
8067 rm -f conftest.err conftest.$ac_ext
8068 fi # $ac_x_includes = no
8070 if test "$ac_x_libraries" = no; then
8071 # Check for the libraries.
8072 # See if we find them without any special options.
8073 # Don't add to $LIBS permanently.
8076 cat >conftest.$ac_ext <<_ACEOF
8077 #line $LINENO "configure"
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 #include <X11/Intrinsic.h>
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094 (eval $ac_link) 2>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -s conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8105 # We can link X programs with no special library path.
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8112 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8114 # Don't even attempt the hair of trying to link an X program!
8115 for ac_extension in a so sl; do
8116 if test -r $ac_dir/libXt.$ac_extension; then
8117 ac_x_libraries=$ac_dir
8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124 fi # $ac_x_libraries = no
8126 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8127 # Didn't find X anywhere. Cache the known absence of X.
8128 ac_cv_have_x="have_x=no"
8130 # Record where we found X for the cache.
8131 ac_cv_have_x="have_x=yes \
8132 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8137 eval "$ac_cv_have_x"
8140 if test "$have_x" != yes; then
8141 echo "$as_me:$LINENO: result: $have_x" >&5
8142 echo "${ECHO_T}$have_x" >&6
8145 # If each of the values was on the command line, it overrides each guess.
8146 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8148 # Update the cache value to reflect the command line values.
8149 ac_cv_have_x="have_x=yes \
8150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8151 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8152 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8155 if test "$no_x" = yes; then
8156 # Not all programs may use this symbol, but it does not hurt to define it.
8158 cat >>confdefs.h <<\_ACEOF
8159 #define X_DISPLAY_MISSING 1
8162 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8164 if test -n "$x_includes"; then
8165 X_CFLAGS="$X_CFLAGS -I$x_includes"
8168 # It would also be nice to do this for all -L options, not just this one.
8169 if test -n "$x_libraries"; then
8170 X_LIBS="$X_LIBS -L$x_libraries"
8171 # For Solaris; some versions of Sun CC require a space after -R and
8172 # others require no space. Words are not sufficient . . . .
8173 case `(uname -sr) 2>/dev/null` in
8175 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8176 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8177 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8178 cat >conftest.$ac_ext <<_ACEOF
8179 #line $LINENO "configure"
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -s conftest$ac_exeext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8214 if test $ac_R_nospace = yes; then
8215 echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6
8217 X_LIBS="$X_LIBS -R$x_libraries"
8219 LIBS="$ac_xsave_LIBS -R $x_libraries"
8220 cat >conftest.$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -s conftest$ac_exeext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8256 if test $ac_R_space = yes; then
8257 echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8259 X_LIBS="$X_LIBS -R $x_libraries"
8261 echo "$as_me:$LINENO: result: neither works" >&5
8262 echo "${ECHO_T}neither works" >&6
8269 # Check for system-dependent libraries X programs must link with.
8270 # Do this before checking for the system-independent R6 libraries
8271 # (-lICE), since we may need -lsocket or whatever for X linking.
8273 if test "$ISC" = yes; then
8274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8276 # Martyn Johnson says this is needed for Ultrix, if the X
8277 # libraries were built with DECnet support. And Karl Berry says
8278 # the Alpha needs dnet_stub (dnet does not exist).
8279 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8280 cat >conftest.$ac_ext <<_ACEOF
8281 #line $LINENO "configure"
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8294 char XOpenDisplay ();
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8321 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8322 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_check_lib_save_LIBS=$LIBS
8327 cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8335 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352 (eval $ac_link) 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_lib_dnet_dnet_ntoa=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_lib_dnet_dnet_ntoa=no
8369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8370 LIBS=$ac_check_lib_save_LIBS
8372 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8373 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8374 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8375 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8378 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8379 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8380 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8381 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 ac_check_lib_save_LIBS=$LIBS
8385 LIBS="-ldnet_stub $LIBS"
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8394 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -s conftest$ac_exeext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_cv_lib_dnet_stub_dnet_ntoa=no
8428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8429 LIBS=$ac_check_lib_save_LIBS
8431 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8432 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8433 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8434 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440 LIBS="$ac_xsave_LIBS"
8442 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8443 # to get the SysV transport functions.
8444 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8446 # The nsl library prevents programs from opening the X display
8447 # on Irix 5.2, according to T.E. Dickey.
8448 # The functions gethostbyname, getservbyname, and inet_addr are
8449 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8450 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8451 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8452 if test "${ac_cv_func_gethostbyname+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 /* System header to define __stub macros and hopefully few prototypes,
8463 which can conflict with char gethostbyname (); below.
8464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8465 <limits.h> exists even on freestanding compilers. */
8467 # include <limits.h>
8469 # include <assert.h>
8471 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char gethostbyname ();
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8485 char (*f) () = gethostbyname;
8494 return f != gethostbyname;
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_gethostbyname=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_func_gethostbyname=no
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8520 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8521 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8523 if test $ac_cv_func_gethostbyname = no; then
8524 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8525 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8526 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 ac_check_lib_save_LIBS=$LIBS
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8539 /* Override any gcc2 internal prototype to avoid an error. */
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8545 char gethostbyname ();
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556 (eval $ac_link) 2>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_nsl_gethostbyname=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_lib_nsl_gethostbyname=no
8573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8576 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8577 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8578 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8579 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8582 if test $ac_cv_lib_nsl_gethostbyname = no; then
8583 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8584 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8585 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 ac_check_lib_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8598 /* Override any gcc2 internal prototype to avoid an error. */
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8604 char gethostbyname ();
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_lib_bsd_gethostbyname=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_cv_lib_bsd_gethostbyname=no
8632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633 LIBS=$ac_check_lib_save_LIBS
8635 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8636 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8637 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8644 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8645 # socket/setsockopt and other routines are undefined under SCO ODT
8646 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8647 # on later versions), says Simon Leinen: it contains gethostby*
8648 # variants that don't use the name server (or something). -lsocket
8649 # must be given before -lnsl if both are needed. We assume that
8650 # if connect needs -lnsl, so does gethostbyname.
8651 echo "$as_me:$LINENO: checking for connect" >&5
8652 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8653 if test "${ac_cv_func_connect+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8657 #line $LINENO "configure"
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 /* System header to define __stub macros and hopefully few prototypes,
8664 which can conflict with char connect (); below.
8665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666 <limits.h> exists even on freestanding compilers. */
8668 # include <limits.h>
8670 # include <assert.h>
8672 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_connect) || defined (__stub___connect)
8686 char (*f) () = connect;
8695 return f != connect;
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_func_connect=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_func_connect=no
8719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8722 echo "${ECHO_T}$ac_cv_func_connect" >&6
8724 if test $ac_cv_func_connect = no; then
8725 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8726 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8727 if test "${ac_cv_lib_socket_connect+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -s conftest$ac_exeext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_cv_lib_socket_connect=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_lib_socket_connect=no
8774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8778 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8779 if test $ac_cv_lib_socket_connect = yes; then
8780 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8785 # Guillermo Gomez says -lposix is necessary on A/UX.
8786 echo "$as_me:$LINENO: checking for remove" >&5
8787 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8788 if test "${ac_cv_func_remove+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line $LINENO "configure"
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 /* System header to define __stub macros and hopefully few prototypes,
8799 which can conflict with char remove (); below.
8800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 <limits.h> exists even on freestanding compilers. */
8803 # include <limits.h>
8805 # include <assert.h>
8807 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8815 /* The GNU C library defines this for functions which it implements
8816 to always fail with ENOSYS. Some functions are actually named
8817 something starting with __ and the normal name is an alias. */
8818 #if defined (__stub_remove) || defined (__stub___remove)
8821 char (*f) () = remove;
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_func_remove=yes
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_cv_func_remove=no
8854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8857 echo "${ECHO_T}$ac_cv_func_remove" >&6
8859 if test $ac_cv_func_remove = no; then
8860 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8861 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8862 if test "${ac_cv_lib_posix_remove+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lposix $LIBS"
8867 cat >conftest.$ac_ext <<_ACEOF
8868 #line $LINENO "configure"
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8875 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_lib_posix_remove=yes
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_lib_posix_remove=no
8909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8912 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8913 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8914 if test $ac_cv_lib_posix_remove = yes; then
8915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8920 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8921 echo "$as_me:$LINENO: checking for shmat" >&5
8922 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8923 if test "${ac_cv_func_shmat+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 cat >conftest.$ac_ext <<_ACEOF
8927 #line $LINENO "configure"
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 /* System header to define __stub macros and hopefully few prototypes,
8934 which can conflict with char shmat (); below.
8935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8936 <limits.h> exists even on freestanding compilers. */
8938 # include <limits.h>
8940 # include <assert.h>
8942 /* Override any gcc2 internal prototype to avoid an error. */
8947 /* We use char because int might match the return type of a gcc2
8948 builtin and then its argument prototype would still apply. */
8950 /* The GNU C library defines this for functions which it implements
8951 to always fail with ENOSYS. Some functions are actually named
8952 something starting with __ and the normal name is an alias. */
8953 #if defined (__stub_shmat) || defined (__stub___shmat)
8956 char (*f) () = shmat;
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972 (eval $ac_link) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_func_shmat=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8992 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8994 if test $ac_cv_func_shmat = no; then
8995 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8996 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8997 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 ac_check_lib_save_LIBS=$LIBS
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9010 /* Override any gcc2 internal prototype to avoid an error. */
9014 /* We use char because int might match the return type of a gcc2
9015 builtin and then its argument prototype would still apply. */
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_lib_ipc_shmat=yes
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_cv_lib_ipc_shmat=no
9044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9047 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9048 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9049 if test $ac_cv_lib_ipc_shmat = yes; then
9050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9056 # Check for libraries that X11R6 Xt/Xaw programs need.
9057 ac_save_LDFLAGS=$LDFLAGS
9058 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9059 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9060 # check for ICE first), but we must link in the order -lSM -lICE or
9061 # we get undefined symbols. So assume we have SM if we have ICE.
9062 # These have to be linked with before -lX11, unlike the other
9063 # libraries we check for below, so use a different variable.
9064 # John Interrante, Karl Berry
9065 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9066 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9067 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9080 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9086 char IceConnectionNumber ();
9090 IceConnectionNumber ();
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try='test -s conftest$ac_exeext'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; }; then
9107 ac_cv_lib_ICE_IceConnectionNumber=yes
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 ac_cv_lib_ICE_IceConnectionNumber=no
9114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9117 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9118 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9119 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9120 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9123 LDFLAGS=$ac_save_LDFLAGS
9175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9185 # Is the header compilable?
9186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 $ac_includes_default
9196 #include <$ac_header>
9198 rm -f conftest.$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_header_compiler=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_header_compiler=no
9217 rm -f conftest.$ac_objext conftest.$ac_ext
9218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9219 echo "${ECHO_T}$ac_header_compiler" >&6
9221 # Is the header present?
9222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <$ac_header>
9233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } >/dev/null; then
9241 if test -s conftest.err; then
9242 ac_cpp_err=$ac_c_preproc_warn_flag
9249 if test -z "$ac_cpp_err"; then
9250 ac_header_preproc=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_header_preproc=no
9257 rm -f conftest.err conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9259 echo "${ECHO_T}$ac_header_preproc" >&6
9261 # So? What about this header?
9262 case $ac_header_compiler:$ac_header_preproc in
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270 ## ------------------------------------ ##
9271 ## Report this to bug-autoconf@gnu.org. ##
9272 ## ------------------------------------ ##
9275 sed "s/^/$as_me: WARNING: /" >&2
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9286 ## ------------------------------------ ##
9287 ## Report this to bug-autoconf@gnu.org. ##
9288 ## ------------------------------------ ##
9291 sed "s/^/$as_me: WARNING: /" >&2
9294 echo "$as_me:$LINENO: checking for $ac_header" >&5
9295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 eval "$as_ac_Header=$ac_header_preproc"
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9316 if test "${ac_cv_header_stdc+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_header_stdc=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_cv_header_stdc=no
9358 rm -f conftest.$ac_objext conftest.$ac_ext
9360 if test $ac_cv_header_stdc = yes; then
9361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9362 cat >conftest.$ac_ext <<_ACEOF
9363 #line $LINENO "configure"
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373 $EGREP "memchr" >/dev/null 2>&1; then
9376 ac_cv_header_stdc=no
9382 if test $ac_cv_header_stdc = yes; then
9383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9384 cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9395 $EGREP "free" >/dev/null 2>&1; then
9398 ac_cv_header_stdc=no
9404 if test $ac_cv_header_stdc = yes; then
9405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9406 if test "$cross_compiling" = yes; then
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9417 #if ((' ' & 0x0FF) == 0x020)
9418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9421 # define ISLOWER(c) \
9422 (('a' <= (c) && (c) <= 'i') \
9423 || ('j' <= (c) && (c) <= 'r') \
9424 || ('s' <= (c) && (c) <= 'z'))
9425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9433 for (i = 0; i < 256; i++)
9434 if (XOR (islower (i), ISLOWER (i))
9435 || toupper (i) != TOUPPER (i))
9440 rm -f conftest$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442 (eval $ac_link) 2>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9453 echo "$as_me: program exited with status $ac_status" >&5
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_header_stdc=no
9460 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9465 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9466 if test $ac_cv_header_stdc = yes; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define STDC_HEADERS 1
9474 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9475 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9476 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <sys/types.h>
9490 return makedev(0, 0);
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_header_sys_types_h_makedev=yes
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_header_sys_types_h_makedev=no
9514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9518 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9520 if test $ac_cv_header_sys_types_h_makedev = no; then
9521 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9522 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9523 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9524 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9528 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9530 # Is the header compilable?
9531 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9532 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9533 cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 $ac_includes_default
9541 #include <sys/mkdev.h>
9543 rm -f conftest.$ac_objext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545 (eval $ac_compile) 2>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9555 ac_header_compiler=yes
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_header_compiler=no
9562 rm -f conftest.$ac_objext conftest.$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 echo "${ECHO_T}$ac_header_compiler" >&6
9566 # Is the header present?
9567 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9568 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <sys/mkdev.h>
9578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } >/dev/null; then
9586 if test -s conftest.err; then
9587 ac_cpp_err=$ac_c_preproc_warn_flag
9594 if test -z "$ac_cpp_err"; then
9595 ac_header_preproc=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_header_preproc=no
9602 rm -f conftest.err conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 echo "${ECHO_T}$ac_header_preproc" >&6
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc in
9609 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9610 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9612 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9615 ## ------------------------------------ ##
9616 ## Report this to bug-autoconf@gnu.org. ##
9617 ## ------------------------------------ ##
9620 sed "s/^/$as_me: WARNING: /" >&2
9623 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9624 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9631 ## ------------------------------------ ##
9632 ## Report this to bug-autoconf@gnu.org. ##
9633 ## ------------------------------------ ##
9636 sed "s/^/$as_me: WARNING: /" >&2
9639 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9640 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9641 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9647 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9650 if test $ac_cv_header_sys_mkdev_h = yes; then
9652 cat >>confdefs.h <<\_ACEOF
9653 #define MAJOR_IN_MKDEV 1
9660 if test $ac_cv_header_sys_mkdev_h = no; then
9661 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9662 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9663 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9664 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9668 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9670 # Is the header compilable?
9671 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9672 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line $LINENO "configure"
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <sys/sysmacros.h>
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_header_compiler=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_header_compiler=no
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9704 echo "${ECHO_T}$ac_header_compiler" >&6
9706 # Is the header present?
9707 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9708 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9710 #line $LINENO "configure"
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 #include <sys/sysmacros.h>
9718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } >/dev/null; then
9726 if test -s conftest.err; then
9727 ac_cpp_err=$ac_c_preproc_warn_flag
9734 if test -z "$ac_cpp_err"; then
9735 ac_header_preproc=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_header_preproc=no
9742 rm -f conftest.err conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744 echo "${ECHO_T}$ac_header_preproc" >&6
9746 # So? What about this header?
9747 case $ac_header_compiler:$ac_header_preproc in
9749 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9750 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9755 ## ------------------------------------ ##
9756 ## Report this to bug-autoconf@gnu.org. ##
9757 ## ------------------------------------ ##
9760 sed "s/^/$as_me: WARNING: /" >&2
9763 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9764 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9771 ## ------------------------------------ ##
9772 ## Report this to bug-autoconf@gnu.org. ##
9773 ## ------------------------------------ ##
9776 sed "s/^/$as_me: WARNING: /" >&2
9779 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9780 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9781 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9786 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9787 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9790 if test $ac_cv_header_sys_sysmacros_h = yes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define MAJOR_IN_SYSMACROS 1
9808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9809 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9810 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9811 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line $LINENO "configure"
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 #include <sys/types.h>
9834 rm -f conftest.$ac_objext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836 (eval $ac_compile) 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -s conftest.$ac_objext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 eval "$as_ac_Header=yes"
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 eval "$as_ac_Header=no"
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9858 cat >>confdefs.h <<_ACEOF
9859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9862 ac_header_dirent=$ac_hdr; break
9866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9867 if test $ac_header_dirent = dirent.h; then
9868 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9870 if test "${ac_cv_search_opendir+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 ac_func_search_save_LIBS=$LIBS
9874 ac_cv_search_opendir=no
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line $LINENO "configure"
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9883 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -s conftest$ac_exeext'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_search_opendir="none required"
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9917 if test "$ac_cv_search_opendir" = no; then
9918 for ac_lib in dir; do
9919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9920 cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9928 /* Override any gcc2 internal prototype to avoid an error. */
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_search_opendir="-l$ac_lib"
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_func_search_save_LIBS
9967 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9968 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9969 if test "$ac_cv_search_opendir" != no; then
9970 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9975 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9977 if test "${ac_cv_search_opendir+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 ac_func_search_save_LIBS=$LIBS
9981 ac_cv_search_opendir=no
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9990 /* Override any gcc2 internal prototype to avoid an error. */
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_search_opendir="none required"
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10024 if test "$ac_cv_search_opendir" = no; then
10025 for ac_lib in x; do
10026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10035 /* Override any gcc2 internal prototype to avoid an error. */
10039 /* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_search_opendir="-l$ac_lib"
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_func_search_save_LIBS
10074 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10075 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10076 if test "$ac_cv_search_opendir" != no; then
10077 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10083 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10084 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10085 if test "${ac_cv_header_stat_broken+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 cat >conftest.$ac_ext <<_ACEOF
10089 #line $LINENO "configure"
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 #include <sys/types.h>
10096 #include <sys/stat.h>
10098 #if defined(S_ISBLK) && defined(S_IFDIR)
10099 # if S_ISBLK (S_IFDIR)
10104 #if defined(S_ISBLK) && defined(S_IFCHR)
10105 # if S_ISBLK (S_IFCHR)
10110 #if defined(S_ISLNK) && defined(S_IFREG)
10111 # if S_ISLNK (S_IFREG)
10116 #if defined(S_ISSOCK) && defined(S_IFREG)
10117 # if S_ISSOCK (S_IFREG)
10123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10124 $EGREP "You lose" >/dev/null 2>&1; then
10125 ac_cv_header_stat_broken=yes
10127 ac_cv_header_stat_broken=no
10132 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10133 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10134 if test $ac_cv_header_stat_broken = yes; then
10136 cat >>confdefs.h <<\_ACEOF
10137 #define STAT_MACROS_BROKEN 1
10142 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10143 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10144 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10154 #include <sys/types.h>
10155 #include <sys/wait.h>
10156 #ifndef WEXITSTATUS
10157 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10173 rm -f conftest.$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -s conftest.$ac_objext'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_cv_header_sys_wait_h=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_cv_header_sys_wait_h=no
10192 rm -f conftest.$ac_objext conftest.$ac_ext
10194 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10195 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10196 if test $ac_cv_header_sys_wait_h = yes; then
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_SYS_WAIT_H 1
10204 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10205 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10206 if test "${ac_cv_header_time+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 cat >conftest.$ac_ext <<_ACEOF
10210 #line $LINENO "configure"
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <sys/types.h>
10217 #include <sys/time.h>
10223 if ((struct tm *) 0)
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_header_time=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_header_time=no
10248 rm -f conftest.$ac_objext conftest.$ac_ext
10250 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10251 echo "${ECHO_T}$ac_cv_header_time" >&6
10252 if test $ac_cv_header_time = yes; then
10254 cat >>confdefs.h <<\_ACEOF
10255 #define TIME_WITH_SYS_TIME 1
10261 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10262 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10263 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 cat >conftest.$ac_ext <<_ACEOF
10267 #line $LINENO "configure"
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 $ac_includes_default
10277 static struct stat ac_aggr;
10278 if (ac_aggr.st_blksize)
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_member_struct_stat_st_blksize=yes
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 cat >conftest.$ac_ext <<_ACEOF
10302 #line $LINENO "configure"
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 $ac_includes_default
10312 static struct stat ac_aggr;
10313 if (sizeof ac_aggr.st_blksize)
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_member_struct_stat_st_blksize=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_cv_member_struct_stat_st_blksize=no
10338 rm -f conftest.$ac_objext conftest.$ac_ext
10340 rm -f conftest.$ac_objext conftest.$ac_ext
10342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10344 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_ST_BLKSIZE 1
10358 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10359 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10360 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10374 static struct stat ac_aggr;
10375 if (ac_aggr.st_blocks)
10381 rm -f conftest.$ac_objext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -s conftest.$ac_objext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_member_struct_stat_st_blocks=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 cat >conftest.$ac_ext <<_ACEOF
10399 #line $LINENO "configure"
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 $ac_includes_default
10409 static struct stat ac_aggr;
10410 if (sizeof ac_aggr.st_blocks)
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_member_struct_stat_st_blocks=yes
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_cv_member_struct_stat_st_blocks=no
10435 rm -f conftest.$ac_objext conftest.$ac_ext
10437 rm -f conftest.$ac_objext conftest.$ac_ext
10439 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10440 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10441 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10448 cat >>confdefs.h <<\_ACEOF
10449 #define HAVE_ST_BLOCKS 1
10453 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10457 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10458 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10459 if test "${ac_cv_struct_tm+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10463 #line $LINENO "configure"
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 #include <sys/types.h>
10475 struct tm *tp; tp->tm_sec;
10480 rm -f conftest.$ac_objext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_struct_tm=time.h
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 ac_cv_struct_tm=sys/time.h
10499 rm -f conftest.$ac_objext conftest.$ac_ext
10501 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10502 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10503 if test $ac_cv_struct_tm = sys/time.h; then
10505 cat >>confdefs.h <<\_ACEOF
10506 #define TM_IN_SYS_TIME 1
10511 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10512 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10513 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 cat >conftest.$ac_ext <<_ACEOF
10517 #line $LINENO "configure"
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 #include <sys/types.h>
10524 #include <$ac_cv_struct_tm>
10530 static struct tm ac_aggr;
10531 if (ac_aggr.tm_zone)
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 ac_cv_member_struct_tm_tm_zone=yes
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 cat >conftest.$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <sys/types.h>
10562 #include <$ac_cv_struct_tm>
10568 static struct tm ac_aggr;
10569 if (sizeof ac_aggr.tm_zone)
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_member_struct_tm_tm_zone=yes
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_member_struct_tm_tm_zone=no
10594 rm -f conftest.$ac_objext conftest.$ac_ext
10596 rm -f conftest.$ac_objext conftest.$ac_ext
10598 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10599 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10600 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10602 cat >>confdefs.h <<_ACEOF
10603 #define HAVE_STRUCT_TM_TM_ZONE 1
10609 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10611 cat >>confdefs.h <<\_ACEOF
10612 #define HAVE_TM_ZONE 1
10616 echo "$as_me:$LINENO: checking for tzname" >&5
10617 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10618 if test "${ac_cv_var_tzname+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 cat >conftest.$ac_ext <<_ACEOF
10622 #line $LINENO "configure"
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10629 #ifndef tzname /* For SGI. */
10630 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643 (eval $ac_link) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -s conftest$ac_exeext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_var_tzname=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_cv_var_tzname=no
10660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10662 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10663 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10664 if test $ac_cv_var_tzname = yes; then
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_TZNAME 1
10674 echo "$as_me:$LINENO: checking for utime.h" >&5
10675 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10676 if test "${ba_cv_header_utime_h+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line $LINENO "configure"
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10687 #include <sys/types.h>
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699 (eval $ac_compile) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ba_cv_header_utime_h=yes
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ba_cv_header_utime_h=no
10716 rm -f conftest.$ac_objext conftest.$ac_ext
10718 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10719 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10720 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_UTIME_H 1
10725 echo "$as_me:$LINENO: checking for socklen_t" >&5
10726 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10727 if test "${ba_cv_header_socklen_t+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 cat >conftest.$ac_ext <<_ACEOF
10731 #line $LINENO "configure"
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10738 #include <sys/types.h>
10739 #include <sys/socket.h>
10748 rm -f conftest.$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ba_cv_header_socklen_t=yes
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ba_cv_header_socklen_t=no
10767 rm -f conftest.$ac_objext conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10770 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10771 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_SOCKLEN_T 1
10776 echo "$as_me:$LINENO: checking for bigendian" >&5
10777 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10778 if test "${ba_cv_bigendian+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 if test "$cross_compiling" = yes; then
10784 cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10793 rm -f conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ba_cv_bigendian=yes
10806 echo "$as_me: program exited with status $ac_status" >&5
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 ( exit $ac_status )
10813 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10817 echo "${ECHO_T}$ba_cv_bigendian" >&6
10818 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_BIGENDIAN 1
10824 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10825 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10826 if test "${ac_cv_c_const+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10830 #line $LINENO "configure"
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10840 /* FIXME: Include the comments suggested by Paul. */
10841 #ifndef __cplusplus
10842 /* Ultrix mips cc rejects this. */
10843 typedef int charset[2];
10845 /* SunOS 4.1.1 cc rejects this. */
10846 char const *const *ccp;
10848 /* NEC SVR4.0.2 mips cc rejects this. */
10849 struct point {int x, y;};
10850 static struct point const zero = {0,0};
10851 /* AIX XL C 1.02.0.0 rejects this.
10852 It does not let you subtract one const X* pointer from another in
10853 an arm of an if-expression whose if-part is not a constant
10855 const char *g = "string";
10856 ccp = &g + (g ? g-g : 0);
10857 /* HPUX 7.0 cc rejects these. */
10860 ccp = (char const *const *) p;
10861 { /* SCO 3.2v4 cc rejects this. */
10863 char const *s = 0 ? (char *) 0 : (char const *) 0;
10867 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10868 int x[] = {25, 17};
10869 const int *foo = &x[0];
10872 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10873 typedef const int *iptr;
10877 { /* AIX XL C 1.02.0.0 rejects this saying
10878 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10879 struct s { int j; const int *ap[3]; };
10880 struct s *b; b->j = 5;
10882 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10883 const int foo = 10;
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10910 rm -f conftest.$ac_objext conftest.$ac_ext
10912 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10913 echo "${ECHO_T}$ac_cv_c_const" >&6
10914 if test $ac_cv_c_const = no; then
10916 cat >>confdefs.h <<\_ACEOF
10924 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10925 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10927 # The order of these tests is important.
10928 cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 #include <sys/statvfs.h>
10936 #include <sys/fstyp.h>
10938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } >/dev/null; then
10946 if test -s conftest.err; then
10947 ac_cpp_err=$ac_c_preproc_warn_flag
10954 if test -z "$ac_cpp_err"; then
10955 cat >>confdefs.h <<\_ACEOF
10956 #define FSTYPE_STATVFS 1
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10965 rm -f conftest.err conftest.$ac_ext
10966 if test $fstype = no; then
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 #include <sys/statfs.h>
10975 #include <sys/fstyp.h>
10977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10980 grep -v '^ *+' conftest.er1 >conftest.err
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } >/dev/null; then
10985 if test -s conftest.err; then
10986 ac_cpp_err=$ac_c_preproc_warn_flag
10993 if test -z "$ac_cpp_err"; then
10994 cat >>confdefs.h <<\_ACEOF
10995 #define FSTYPE_USG_STATFS 1
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11004 rm -f conftest.err conftest.$ac_ext
11006 if test $fstype = no; then
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include <sys/statfs.h>
11015 #include <sys/vmount.h>
11017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11020 grep -v '^ *+' conftest.er1 >conftest.err
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } >/dev/null; then
11025 if test -s conftest.err; then
11026 ac_cpp_err=$ac_c_preproc_warn_flag
11033 if test -z "$ac_cpp_err"; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define FSTYPE_AIX_STATFS 1
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11044 rm -f conftest.err conftest.$ac_ext
11046 if test $fstype = no; then
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line $LINENO "configure"
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <mntent.h>
11056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } >/dev/null; then
11064 if test -s conftest.err; then
11065 ac_cpp_err=$ac_c_preproc_warn_flag
11072 if test -z "$ac_cpp_err"; then
11073 cat >>confdefs.h <<\_ACEOF
11074 #define FSTYPE_MNTENT 1
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11083 rm -f conftest.err conftest.$ac_ext
11085 if test $fstype = no; then
11086 cat >conftest.$ac_ext <<_ACEOF
11087 #line $LINENO "configure"
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 #include <sys/mount.h>
11096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11097 $EGREP "f_type;" >/dev/null 2>&1; then
11098 cat >>confdefs.h <<\_ACEOF
11099 #define FSTYPE_STATFS 1
11106 if test $fstype = no; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #include <sys/mount.h>
11115 #include <sys/fs_types.h>
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11120 grep -v '^ *+' conftest.er1 >conftest.err
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11133 if test -z "$ac_cpp_err"; then
11134 cat >>confdefs.h <<\_ACEOF
11135 #define FSTYPE_GETMNT 1
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11144 rm -f conftest.err conftest.$ac_ext
11146 echo "$as_me:$LINENO: result: $fstype" >&5
11147 echo "${ECHO_T}$fstype" >&6
11149 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11150 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11151 if test "${ac_cv_type_signal+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 cat >conftest.$ac_ext <<_ACEOF
11155 #line $LINENO "configure"
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <sys/types.h>
11162 #include <signal.h>
11167 extern "C" void (*signal (int, void (*)(int)))(int);
11169 void (*signal ()) ();
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_type_signal=void
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_type_signal=int
11199 rm -f conftest.$ac_objext conftest.$ac_ext
11201 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11202 echo "${ECHO_T}$ac_cv_type_signal" >&6
11204 cat >>confdefs.h <<_ACEOF
11205 #define RETSIGTYPE $ac_cv_type_signal
11210 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11211 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11212 if test "${bash_cv_signal_vintage+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 #include <signal.h>
11229 struct sigaction sa;
11230 sigemptyset(&ss); sigsuspend(&ss);
11231 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11232 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -s conftest$ac_exeext'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 bash_cv_signal_vintage=posix
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <signal.h>
11268 int mask = sigmask(SIGINT);
11269 sigsetmask(mask); sigblock(mask); sigpause(mask);
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11277 (eval $ac_link) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -s conftest$ac_exeext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 bash_cv_signal_vintage=4.2bsd
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11293 cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11301 #include <signal.h>
11302 RETSIGTYPE foo() { }
11307 int mask = sigmask(SIGINT);
11308 sigset(SIGINT, foo); sigrelse(SIGINT);
11309 sighold(SIGINT); sigpause(SIGINT);
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 bash_cv_signal_vintage=svr3
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 bash_cv_signal_vintage=v7
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11345 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11346 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11347 if test "$bash_cv_signal_vintage" = posix; then
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_POSIX_SIGNALS 1
11352 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11353 cat >>confdefs.h <<\_ACEOF
11354 #define HAVE_BSD_SIGNALS 1
11357 elif test "$bash_cv_signal_vintage" = svr3; then
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_USG_SIGHOLD 1
11364 echo "$as_me:$LINENO: checking for mode_t" >&5
11365 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11366 if test "${ac_cv_type_mode_t+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11382 if (sizeof (mode_t))
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_type_mode_t=yes
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_cv_type_mode_t=no
11407 rm -f conftest.$ac_objext conftest.$ac_ext
11409 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11410 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11411 if test $ac_cv_type_mode_t = yes; then
11415 cat >>confdefs.h <<_ACEOF
11421 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11422 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11423 if test "${ac_cv_type_uid_t+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 cat >conftest.$ac_ext <<_ACEOF
11427 #line $LINENO "configure"
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <sys/types.h>
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 $EGREP "uid_t" >/dev/null 2>&1; then
11438 ac_cv_type_uid_t=yes
11440 ac_cv_type_uid_t=no
11445 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11446 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11447 if test $ac_cv_type_uid_t = no; then
11449 cat >>confdefs.h <<\_ACEOF
11454 cat >>confdefs.h <<\_ACEOF
11460 echo "$as_me:$LINENO: checking for size_t" >&5
11461 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11462 if test "${ac_cv_type_size_t+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11478 if (sizeof (size_t))
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_cv_type_size_t=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_cv_type_size_t=no
11503 rm -f conftest.$ac_objext conftest.$ac_ext
11505 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11506 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11507 if test $ac_cv_type_size_t = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define size_t unsigned
11517 echo "$as_me:$LINENO: checking for pid_t" >&5
11518 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11519 if test "${ac_cv_type_pid_t+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11535 if (sizeof (pid_t))
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543 (eval $ac_compile) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_cv_type_pid_t=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ac_cv_type_pid_t=no
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11563 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11564 if test $ac_cv_type_pid_t = yes; then
11568 cat >>confdefs.h <<_ACEOF
11574 echo "$as_me:$LINENO: checking for off_t" >&5
11575 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11576 if test "${ac_cv_type_off_t+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11580 #line $LINENO "configure"
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 $ac_includes_default
11592 if (sizeof (off_t))
11598 rm -f conftest.$ac_objext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600 (eval $ac_compile) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_type_off_t=yes
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_type_off_t=no
11617 rm -f conftest.$ac_objext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11620 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11621 if test $ac_cv_type_off_t = yes; then
11625 cat >>confdefs.h <<_ACEOF
11631 echo "$as_me:$LINENO: checking for ino_t" >&5
11632 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11633 if test "${ac_cv_type_ino_t+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11649 if (sizeof (ino_t))
11655 rm -f conftest.$ac_objext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11657 (eval $ac_compile) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -s conftest.$ac_objext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_cv_type_ino_t=yes
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 ac_cv_type_ino_t=no
11674 rm -f conftest.$ac_objext conftest.$ac_ext
11676 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11677 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11678 if test $ac_cv_type_ino_t = yes; then
11682 cat >>confdefs.h <<_ACEOF
11683 #define ino_t unsigned long
11688 echo "$as_me:$LINENO: checking for dev_t" >&5
11689 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11690 if test "${ac_cv_type_dev_t+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 cat >conftest.$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11706 if (sizeof (dev_t))
11712 rm -f conftest.$ac_objext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714 (eval $ac_compile) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest.$ac_objext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_cv_type_dev_t=yes
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_cv_type_dev_t=no
11731 rm -f conftest.$ac_objext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11734 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11735 if test $ac_cv_type_dev_t = yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define dev_t unsigned long
11745 echo "$as_me:$LINENO: checking for daddr_t" >&5
11746 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11747 if test "${ac_cv_type_daddr_t+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11751 #line $LINENO "configure"
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 $ac_includes_default
11763 if (sizeof (daddr_t))
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_type_daddr_t=yes
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_cv_type_daddr_t=no
11788 rm -f conftest.$ac_objext conftest.$ac_ext
11790 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11791 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11792 if test $ac_cv_type_daddr_t = yes; then
11796 cat >>confdefs.h <<_ACEOF
11797 #define daddr_t long
11802 echo "$as_me:$LINENO: checking for major_t" >&5
11803 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11804 if test "${ac_cv_type_major_t+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11820 if (sizeof (major_t))
11826 rm -f conftest.$ac_objext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828 (eval $ac_compile) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_cv_type_major_t=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_cv_type_major_t=no
11845 rm -f conftest.$ac_objext conftest.$ac_ext
11847 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11848 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11849 if test $ac_cv_type_major_t = yes; then
11853 cat >>confdefs.h <<_ACEOF
11854 #define major_t int
11859 echo "$as_me:$LINENO: checking for minor_t" >&5
11860 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11861 if test "${ac_cv_type_minor_t+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 cat >conftest.$ac_ext <<_ACEOF
11865 #line $LINENO "configure"
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11877 if (sizeof (minor_t))
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -s conftest.$ac_objext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_cv_type_minor_t=yes
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_cv_type_minor_t=no
11902 rm -f conftest.$ac_objext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11905 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11906 if test $ac_cv_type_minor_t = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define minor_t int
11916 echo "$as_me:$LINENO: checking for ssize_t" >&5
11917 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11918 if test "${ac_cv_type_ssize_t+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.$ac_ext <<_ACEOF
11922 #line $LINENO "configure"
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11934 if (sizeof (ssize_t))
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_type_ssize_t=yes
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_type_ssize_t=no
11959 rm -f conftest.$ac_objext conftest.$ac_ext
11961 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11962 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11963 if test $ac_cv_type_ssize_t = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define ssize_t int
11973 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11974 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11975 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11979 #line $LINENO "configure"
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 $ac_includes_default
11989 static struct stat ac_aggr;
11990 if (ac_aggr.st_blocks)
11996 rm -f conftest.$ac_objext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11998 (eval $ac_compile) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_cv_member_struct_stat_st_blocks=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 cat >conftest.$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 $ac_includes_default
12024 static struct stat ac_aggr;
12025 if (sizeof ac_aggr.st_blocks)
12031 rm -f conftest.$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_member_struct_stat_st_blocks=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 ac_cv_member_struct_stat_st_blocks=no
12050 rm -f conftest.$ac_objext conftest.$ac_ext
12052 rm -f conftest.$ac_objext conftest.$ac_ext
12054 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12055 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12056 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_ST_BLOCKS 1
12068 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12073 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12074 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12075 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12079 #line $LINENO "configure"
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 $ac_includes_default
12089 static struct stat ac_aggr;
12090 if (ac_aggr.st_rdev)
12096 rm -f conftest.$ac_objext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 (eval $ac_compile) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_member_struct_stat_st_rdev=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 $ac_includes_default
12124 static struct stat ac_aggr;
12125 if (sizeof ac_aggr.st_rdev)
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_cv_member_struct_stat_st_rdev=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_cv_member_struct_stat_st_rdev=no
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12154 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12155 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12156 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define HAVE_STRUCT_STAT_ST_RDEV 1
12163 cat >>confdefs.h <<\_ACEOF
12164 #define HAVE_ST_RDEV 1
12170 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12171 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12172 if test "${ac_cv_struct_tm+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12176 #line $LINENO "configure"
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include <sys/types.h>
12188 struct tm *tp; tp->tm_sec;
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_struct_tm=time.h
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_cv_struct_tm=sys/time.h
12212 rm -f conftest.$ac_objext conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12215 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12216 if test $ac_cv_struct_tm = sys/time.h; then
12218 cat >>confdefs.h <<\_ACEOF
12219 #define TM_IN_SYS_TIME 1
12224 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12226 if test "${ac_cv_c_const+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12240 /* FIXME: Include the comments suggested by Paul. */
12241 #ifndef __cplusplus
12242 /* Ultrix mips cc rejects this. */
12243 typedef int charset[2];
12245 /* SunOS 4.1.1 cc rejects this. */
12246 char const *const *ccp;
12248 /* NEC SVR4.0.2 mips cc rejects this. */
12249 struct point {int x, y;};
12250 static struct point const zero = {0,0};
12251 /* AIX XL C 1.02.0.0 rejects this.
12252 It does not let you subtract one const X* pointer from another in
12253 an arm of an if-expression whose if-part is not a constant
12255 const char *g = "string";
12256 ccp = &g + (g ? g-g : 0);
12257 /* HPUX 7.0 cc rejects these. */
12260 ccp = (char const *const *) p;
12261 { /* SCO 3.2v4 cc rejects this. */
12263 char const *s = 0 ? (char *) 0 : (char const *) 0;
12267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12268 int x[] = {25, 17};
12269 const int *foo = &x[0];
12272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12273 typedef const int *iptr;
12277 { /* AIX XL C 1.02.0.0 rejects this saying
12278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12279 struct s { int j; const int *ap[3]; };
12280 struct s *b; b->j = 5;
12282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12283 const int foo = 10;
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12310 rm -f conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12313 echo "${ECHO_T}$ac_cv_c_const" >&6
12314 if test $ac_cv_c_const = no; then
12316 cat >>confdefs.h <<\_ACEOF
12324 echo "$as_me:$LINENO: checking for char" >&5
12325 echo $ECHO_N "checking for char... $ECHO_C" >&6
12326 if test "${ac_cv_type_char+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 $ac_includes_default
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_type_char=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12367 rm -f conftest.$ac_objext conftest.$ac_ext
12369 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12370 echo "${ECHO_T}$ac_cv_type_char" >&6
12372 echo "$as_me:$LINENO: checking size of char" >&5
12373 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12374 if test "${ac_cv_sizeof_char+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 if test "$ac_cv_type_char" = yes; then
12378 # The cast to unsigned long works around a bug in the HP C Compiler
12379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12381 # This bug is HP SR number 8606223364.
12382 if test "$cross_compiling" = yes; then
12383 # Depending upon the size, compute the lo and hi bounds.
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 $ac_includes_default
12395 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12402 rm -f conftest.$ac_objext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12416 cat >conftest.$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 $ac_includes_default
12427 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_hi=$ac_mid; break
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_lo=`expr $ac_mid + 1`
12452 if test $ac_lo -le $ac_mid; then
12456 ac_mid=`expr 2 '*' $ac_mid + 1`
12458 rm -f conftest.$ac_objext conftest.$ac_ext
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12475 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line $LINENO "configure"
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 $ac_includes_default
12507 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_lo=$ac_mid; break
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_hi=`expr '(' $ac_mid ')' - 1`
12532 if test $ac_mid -le $ac_hi; then
12536 ac_mid=`expr 2 '*' $ac_mid`
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12548 rm -f conftest.$ac_objext conftest.$ac_ext
12549 # Binary search between lo and hi bounds.
12550 while test "x$ac_lo" != "x$ac_hi"; do
12551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12552 cat >conftest.$ac_ext <<_ACEOF
12553 #line $LINENO "configure"
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 $ac_includes_default
12563 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572 (eval $ac_compile) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 ac_lo=`expr '(' $ac_mid ')' + 1`
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12592 ?*) ac_cv_sizeof_char=$ac_lo;;
12593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12594 See \`config.log' for more details." >&5
12595 echo "$as_me: error: cannot compute sizeof (char), 77
12596 See \`config.log' for more details." >&2;}
12597 { (exit 1); exit 1; }; } ;;
12600 if test "$cross_compiling" = yes; then
12601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12602 See \`config.log' for more details." >&5
12603 echo "$as_me: error: cannot run test program while cross compiling
12604 See \`config.log' for more details." >&2;}
12605 { (exit 1); exit 1; }; }
12607 cat >conftest.$ac_ext <<_ACEOF
12608 #line $LINENO "configure"
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 $ac_includes_default
12615 long longval () { return (long) (sizeof (char)); }
12616 unsigned long ulongval () { return (long) (sizeof (char)); }
12618 #include <stdlib.h>
12623 FILE *f = fopen ("conftest.val", "w");
12626 if (((long) (sizeof (char))) < 0)
12628 long i = longval ();
12629 if (i != ((long) (sizeof (char))))
12631 fprintf (f, "%ld\n", i);
12635 unsigned long i = ulongval ();
12636 if (i != ((long) (sizeof (char))))
12638 fprintf (f, "%lu\n", i);
12640 exit (ferror (f) || fclose (f) != 0);
12646 rm -f conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_sizeof_char=`cat conftest.val`
12659 echo "$as_me: program exited with status $ac_status" >&5
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ( exit $ac_status )
12664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12665 See \`config.log' for more details." >&5
12666 echo "$as_me: error: cannot compute sizeof (char), 77
12667 See \`config.log' for more details." >&2;}
12668 { (exit 1); exit 1; }; }
12670 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12675 ac_cv_sizeof_char=0
12678 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12679 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12680 cat >>confdefs.h <<_ACEOF
12681 #define SIZEOF_CHAR $ac_cv_sizeof_char
12685 echo "$as_me:$LINENO: checking for short int" >&5
12686 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12687 if test "${ac_cv_type_short_int+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 cat >conftest.$ac_ext <<_ACEOF
12691 #line $LINENO "configure"
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 $ac_includes_default
12701 if ((short int *) 0)
12703 if (sizeof (short int))
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -s conftest.$ac_objext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_type_short_int=yes
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_cv_type_short_int=no
12728 rm -f conftest.$ac_objext conftest.$ac_ext
12730 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12731 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12733 echo "$as_me:$LINENO: checking size of short int" >&5
12734 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12735 if test "${ac_cv_sizeof_short_int+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 if test "$ac_cv_type_short_int" = yes; then
12739 # The cast to unsigned long works around a bug in the HP C Compiler
12740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12742 # This bug is HP SR number 8606223364.
12743 if test "$cross_compiling" = yes; then
12744 # Depending upon the size, compute the lo and hi bounds.
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12756 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12763 rm -f conftest.$ac_objext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12777 cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 $ac_includes_default
12788 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12795 rm -f conftest.$ac_objext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12797 (eval $ac_compile) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -s conftest.$ac_objext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_hi=$ac_mid; break
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_lo=`expr $ac_mid + 1`
12813 if test $ac_lo -le $ac_mid; then
12817 ac_mid=`expr 2 '*' $ac_mid + 1`
12819 rm -f conftest.$ac_objext conftest.$ac_ext
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 cat >conftest.$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 $ac_includes_default
12836 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_includes_default
12868 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -s conftest.$ac_objext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_lo=$ac_mid; break
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_hi=`expr '(' $ac_mid ')' - 1`
12893 if test $ac_mid -le $ac_hi; then
12897 ac_mid=`expr 2 '*' $ac_mid`
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12907 rm -f conftest.$ac_objext conftest.$ac_ext
12909 rm -f conftest.$ac_objext conftest.$ac_ext
12910 # Binary search between lo and hi bounds.
12911 while test "x$ac_lo" != "x$ac_hi"; do
12912 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12913 cat >conftest.$ac_ext <<_ACEOF
12914 #line $LINENO "configure"
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12924 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12931 rm -f conftest.$ac_objext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -s conftest.$ac_objext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12948 ac_lo=`expr '(' $ac_mid ')' + 1`
12950 rm -f conftest.$ac_objext conftest.$ac_ext
12953 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: cannot compute sizeof (short int), 77
12957 See \`config.log' for more details." >&2;}
12958 { (exit 1); exit 1; }; } ;;
12961 if test "$cross_compiling" = yes; then
12962 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12963 See \`config.log' for more details." >&5
12964 echo "$as_me: error: cannot run test program while cross compiling
12965 See \`config.log' for more details." >&2;}
12966 { (exit 1); exit 1; }; }
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 $ac_includes_default
12976 long longval () { return (long) (sizeof (short int)); }
12977 unsigned long ulongval () { return (long) (sizeof (short int)); }
12979 #include <stdlib.h>
12984 FILE *f = fopen ("conftest.val", "w");
12987 if (((long) (sizeof (short int))) < 0)
12989 long i = longval ();
12990 if (i != ((long) (sizeof (short int))))
12992 fprintf (f, "%ld\n", i);
12996 unsigned long i = ulongval ();
12997 if (i != ((long) (sizeof (short int))))
12999 fprintf (f, "%lu\n", i);
13001 exit (ferror (f) || fclose (f) != 0);
13007 rm -f conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_sizeof_short_int=`cat conftest.val`
13020 echo "$as_me: program exited with status $ac_status" >&5
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ( exit $ac_status )
13025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13026 See \`config.log' for more details." >&5
13027 echo "$as_me: error: cannot compute sizeof (short int), 77
13028 See \`config.log' for more details." >&2;}
13029 { (exit 1); exit 1; }; }
13031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13036 ac_cv_sizeof_short_int=0
13039 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13040 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13041 cat >>confdefs.h <<_ACEOF
13042 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13046 echo "$as_me:$LINENO: checking for int" >&5
13047 echo $ECHO_N "checking for int... $ECHO_C" >&6
13048 if test "${ac_cv_type_int+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 cat >conftest.$ac_ext <<_ACEOF
13052 #line $LINENO "configure"
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13058 $ac_includes_default
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -s conftest.$ac_objext'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13089 rm -f conftest.$ac_objext conftest.$ac_ext
13091 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13092 echo "${ECHO_T}$ac_cv_type_int" >&6
13094 echo "$as_me:$LINENO: checking size of int" >&5
13095 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13096 if test "${ac_cv_sizeof_int+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 if test "$ac_cv_type_int" = yes; then
13100 # The cast to unsigned long works around a bug in the HP C Compiler
13101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13103 # This bug is HP SR number 8606223364.
13104 if test "$cross_compiling" = yes; then
13105 # Depending upon the size, compute the lo and hi bounds.
13106 cat >conftest.$ac_ext <<_ACEOF
13107 #line $LINENO "configure"
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13117 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13138 cat >conftest.$ac_ext <<_ACEOF
13139 #line $LINENO "configure"
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13145 $ac_includes_default
13149 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_hi=$ac_mid; break
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_lo=`expr $ac_mid + 1`
13174 if test $ac_lo -le $ac_mid; then
13178 ac_mid=`expr 2 '*' $ac_mid + 1`
13180 rm -f conftest.$ac_objext conftest.$ac_ext
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 $ac_includes_default
13197 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -s conftest.$ac_objext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13229 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_lo=$ac_mid; break
13250 echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13253 ac_hi=`expr '(' $ac_mid ')' - 1`
13254 if test $ac_mid -le $ac_hi; then
13258 ac_mid=`expr 2 '*' $ac_mid`
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271 # Binary search between lo and hi bounds.
13272 while test "x$ac_lo" != "x$ac_hi"; do
13273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13274 cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281 $ac_includes_default
13285 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13292 rm -f conftest.$ac_objext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294 (eval $ac_compile) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -s conftest.$ac_objext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 ac_lo=`expr '(' $ac_mid ')' + 1`
13311 rm -f conftest.$ac_objext conftest.$ac_ext
13314 ?*) ac_cv_sizeof_int=$ac_lo;;
13315 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13316 See \`config.log' for more details." >&5
13317 echo "$as_me: error: cannot compute sizeof (int), 77
13318 See \`config.log' for more details." >&2;}
13319 { (exit 1); exit 1; }; } ;;
13322 if test "$cross_compiling" = yes; then
13323 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13324 See \`config.log' for more details." >&5
13325 echo "$as_me: error: cannot run test program while cross compiling
13326 See \`config.log' for more details." >&2;}
13327 { (exit 1); exit 1; }; }
13329 cat >conftest.$ac_ext <<_ACEOF
13330 #line $LINENO "configure"
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 $ac_includes_default
13337 long longval () { return (long) (sizeof (int)); }
13338 unsigned long ulongval () { return (long) (sizeof (int)); }
13340 #include <stdlib.h>
13345 FILE *f = fopen ("conftest.val", "w");
13348 if (((long) (sizeof (int))) < 0)
13350 long i = longval ();
13351 if (i != ((long) (sizeof (int))))
13353 fprintf (f, "%ld\n", i);
13357 unsigned long i = ulongval ();
13358 if (i != ((long) (sizeof (int))))
13360 fprintf (f, "%lu\n", i);
13362 exit (ferror (f) || fclose (f) != 0);
13368 rm -f conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370 (eval $ac_link) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13379 ac_cv_sizeof_int=`cat conftest.val`
13381 echo "$as_me: program exited with status $ac_status" >&5
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ( exit $ac_status )
13386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13387 See \`config.log' for more details." >&5
13388 echo "$as_me: error: cannot compute sizeof (int), 77
13389 See \`config.log' for more details." >&2;}
13390 { (exit 1); exit 1; }; }
13392 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13401 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13402 cat >>confdefs.h <<_ACEOF
13403 #define SIZEOF_INT $ac_cv_sizeof_int
13407 echo "$as_me:$LINENO: checking for long int" >&5
13408 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13409 if test "${ac_cv_type_long_int+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 cat >conftest.$ac_ext <<_ACEOF
13413 #line $LINENO "configure"
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 $ac_includes_default
13423 if ((long int *) 0)
13425 if (sizeof (long int))
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433 (eval $ac_compile) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_cv_type_long_int=yes
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_cv_type_long_int=no
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13452 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13453 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13455 echo "$as_me:$LINENO: checking size of long int" >&5
13456 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13457 if test "${ac_cv_sizeof_long_int+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 if test "$ac_cv_type_long_int" = yes; then
13461 # The cast to unsigned long works around a bug in the HP C Compiler
13462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13464 # This bug is HP SR number 8606223364.
13465 if test "$cross_compiling" = yes; then
13466 # Depending upon the size, compute the lo and hi bounds.
13467 cat >conftest.$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13478 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13499 cat >conftest.$ac_ext <<_ACEOF
13500 #line $LINENO "configure"
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 $ac_includes_default
13510 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13517 rm -f conftest.$ac_objext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519 (eval $ac_compile) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -s conftest.$ac_objext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_hi=$ac_mid; break
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 ac_lo=`expr $ac_mid + 1`
13535 if test $ac_lo -le $ac_mid; then
13539 ac_mid=`expr 2 '*' $ac_mid + 1`
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 cat >conftest.$ac_ext <<_ACEOF
13548 #line $LINENO "configure"
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13558 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -s conftest.$ac_objext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13579 cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13590 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599 (eval $ac_compile) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -s conftest.$ac_objext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_lo=$ac_mid; break
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 ac_hi=`expr '(' $ac_mid ')' - 1`
13615 if test $ac_mid -le $ac_hi; then
13619 ac_mid=`expr 2 '*' $ac_mid`
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13629 rm -f conftest.$ac_objext conftest.$ac_ext
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13632 # Binary search between lo and hi bounds.
13633 while test "x$ac_lo" != "x$ac_hi"; do
13634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13635 cat >conftest.$ac_ext <<_ACEOF
13636 #line $LINENO "configure"
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 $ac_includes_default
13646 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_lo=`expr '(' $ac_mid ')' + 1`
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13675 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13676 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13677 See \`config.log' for more details." >&5
13678 echo "$as_me: error: cannot compute sizeof (long int), 77
13679 See \`config.log' for more details." >&2;}
13680 { (exit 1); exit 1; }; } ;;
13683 if test "$cross_compiling" = yes; then
13684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13685 See \`config.log' for more details." >&5
13686 echo "$as_me: error: cannot run test program while cross compiling
13687 See \`config.log' for more details." >&2;}
13688 { (exit 1); exit 1; }; }
13690 cat >conftest.$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 $ac_includes_default
13698 long longval () { return (long) (sizeof (long int)); }
13699 unsigned long ulongval () { return (long) (sizeof (long int)); }
13701 #include <stdlib.h>
13706 FILE *f = fopen ("conftest.val", "w");
13709 if (((long) (sizeof (long int))) < 0)
13711 long i = longval ();
13712 if (i != ((long) (sizeof (long int))))
13714 fprintf (f, "%ld\n", i);
13718 unsigned long i = ulongval ();
13719 if (i != ((long) (sizeof (long int))))
13721 fprintf (f, "%lu\n", i);
13723 exit (ferror (f) || fclose (f) != 0);
13729 rm -f conftest$ac_exeext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731 (eval $ac_link) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_cv_sizeof_long_int=`cat conftest.val`
13742 echo "$as_me: program exited with status $ac_status" >&5
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13746 ( exit $ac_status )
13747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13748 See \`config.log' for more details." >&5
13749 echo "$as_me: error: cannot compute sizeof (long int), 77
13750 See \`config.log' for more details." >&2;}
13751 { (exit 1); exit 1; }; }
13753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13758 ac_cv_sizeof_long_int=0
13761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13762 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13763 cat >>confdefs.h <<_ACEOF
13764 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13768 echo "$as_me:$LINENO: checking for long long int" >&5
13769 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13770 if test "${ac_cv_type_long_long_int+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 $ac_includes_default
13784 if ((long long int *) 0)
13786 if (sizeof (long long int))
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_type_long_long_int=yes
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ac_cv_type_long_long_int=no
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13814 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13816 echo "$as_me:$LINENO: checking size of long long int" >&5
13817 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13818 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 if test "$ac_cv_type_long_long_int" = yes; then
13822 # The cast to unsigned long works around a bug in the HP C Compiler
13823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825 # This bug is HP SR number 8606223364.
13826 if test "$cross_compiling" = yes; then
13827 # Depending upon the size, compute the lo and hi bounds.
13828 cat >conftest.$ac_ext <<_ACEOF
13829 #line $LINENO "configure"
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 $ac_includes_default
13839 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13846 rm -f conftest.$ac_objext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848 (eval $ac_compile) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13860 cat >conftest.$ac_ext <<_ACEOF
13861 #line $LINENO "configure"
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 $ac_includes_default
13871 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -s conftest.$ac_objext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_hi=$ac_mid; break
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 ac_lo=`expr $ac_mid + 1`
13896 if test $ac_lo -le $ac_mid; then
13900 ac_mid=`expr 2 '*' $ac_mid + 1`
13902 rm -f conftest.$ac_objext conftest.$ac_ext
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 cat >conftest.$ac_ext <<_ACEOF
13909 #line $LINENO "configure"
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 $ac_includes_default
13919 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13926 rm -f conftest.$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -s conftest.$ac_objext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13940 cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 $ac_includes_default
13951 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -s conftest.$ac_objext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_lo=$ac_mid; break
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_hi=`expr '(' $ac_mid ')' - 1`
13976 if test $ac_mid -le $ac_hi; then
13980 ac_mid=`expr 2 '*' $ac_mid`
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13990 rm -f conftest.$ac_objext conftest.$ac_ext
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13993 # Binary search between lo and hi bounds.
13994 while test "x$ac_lo" != "x$ac_hi"; do
13995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13996 cat >conftest.$ac_ext <<_ACEOF
13997 #line $LINENO "configure"
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 $ac_includes_default
14007 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14014 rm -f conftest.$ac_objext
14015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14016 (eval $ac_compile) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_lo=`expr '(' $ac_mid ')' + 1`
14033 rm -f conftest.$ac_objext conftest.$ac_ext
14036 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14037 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14038 See \`config.log' for more details." >&5
14039 echo "$as_me: error: cannot compute sizeof (long long int), 77
14040 See \`config.log' for more details." >&2;}
14041 { (exit 1); exit 1; }; } ;;
14044 if test "$cross_compiling" = yes; then
14045 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14046 See \`config.log' for more details." >&5
14047 echo "$as_me: error: cannot run test program while cross compiling
14048 See \`config.log' for more details." >&2;}
14049 { (exit 1); exit 1; }; }
14051 cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 $ac_includes_default
14059 long longval () { return (long) (sizeof (long long int)); }
14060 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14062 #include <stdlib.h>
14067 FILE *f = fopen ("conftest.val", "w");
14070 if (((long) (sizeof (long long int))) < 0)
14072 long i = longval ();
14073 if (i != ((long) (sizeof (long long int))))
14075 fprintf (f, "%ld\n", i);
14079 unsigned long i = ulongval ();
14080 if (i != ((long) (sizeof (long long int))))
14082 fprintf (f, "%lu\n", i);
14084 exit (ferror (f) || fclose (f) != 0);
14090 rm -f conftest$ac_exeext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14092 (eval $ac_link) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_sizeof_long_long_int=`cat conftest.val`
14103 echo "$as_me: program exited with status $ac_status" >&5
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ( exit $ac_status )
14108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14109 See \`config.log' for more details." >&5
14110 echo "$as_me: error: cannot compute sizeof (long long int), 77
14111 See \`config.log' for more details." >&2;}
14112 { (exit 1); exit 1; }; }
14114 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14119 ac_cv_sizeof_long_long_int=0
14122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14123 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14124 cat >>confdefs.h <<_ACEOF
14125 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14129 echo "$as_me:$LINENO: checking for int *" >&5
14130 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14131 if test "${ac_cv_type_int_p+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14135 #line $LINENO "configure"
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14147 if (sizeof (int *))
14153 rm -f conftest.$ac_objext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14155 (eval $ac_compile) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -s conftest.$ac_objext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_cv_type_int_p=yes
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 ac_cv_type_int_p=no
14172 rm -f conftest.$ac_objext conftest.$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14175 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14177 echo "$as_me:$LINENO: checking size of int *" >&5
14178 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14179 if test "${ac_cv_sizeof_int_p+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 if test "$ac_cv_type_int_p" = yes; then
14183 # The cast to unsigned long works around a bug in the HP C Compiler
14184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14186 # This bug is HP SR number 8606223364.
14187 if test "$cross_compiling" = yes; then
14188 # Depending upon the size, compute the lo and hi bounds.
14189 cat >conftest.$ac_ext <<_ACEOF
14190 #line $LINENO "configure"
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 $ac_includes_default
14200 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14221 cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 $ac_includes_default
14232 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_hi=$ac_mid; break
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 ac_lo=`expr $ac_mid + 1`
14257 if test $ac_lo -le $ac_mid; then
14261 ac_mid=`expr 2 '*' $ac_mid + 1`
14263 rm -f conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14280 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289 (eval $ac_compile) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -s conftest.$ac_objext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14301 cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14312 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_lo=$ac_mid; break
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_hi=`expr '(' $ac_mid ')' - 1`
14337 if test $ac_mid -le $ac_hi; then
14341 ac_mid=`expr 2 '*' $ac_mid`
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14351 rm -f conftest.$ac_objext conftest.$ac_ext
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354 # Binary search between lo and hi bounds.
14355 while test "x$ac_lo" != "x$ac_hi"; do
14356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14357 cat >conftest.$ac_ext <<_ACEOF
14358 #line $LINENO "configure"
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 $ac_includes_default
14368 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_lo=`expr '(' $ac_mid ')' + 1`
14394 rm -f conftest.$ac_objext conftest.$ac_ext
14397 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14399 See \`config.log' for more details." >&5
14400 echo "$as_me: error: cannot compute sizeof (int *), 77
14401 See \`config.log' for more details." >&2;}
14402 { (exit 1); exit 1; }; } ;;
14405 if test "$cross_compiling" = yes; then
14406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14407 See \`config.log' for more details." >&5
14408 echo "$as_me: error: cannot run test program while cross compiling
14409 See \`config.log' for more details." >&2;}
14410 { (exit 1); exit 1; }; }
14412 cat >conftest.$ac_ext <<_ACEOF
14413 #line $LINENO "configure"
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 $ac_includes_default
14420 long longval () { return (long) (sizeof (int *)); }
14421 unsigned long ulongval () { return (long) (sizeof (int *)); }
14423 #include <stdlib.h>
14428 FILE *f = fopen ("conftest.val", "w");
14431 if (((long) (sizeof (int *))) < 0)
14433 long i = longval ();
14434 if (i != ((long) (sizeof (int *))))
14436 fprintf (f, "%ld\n", i);
14440 unsigned long i = ulongval ();
14441 if (i != ((long) (sizeof (int *))))
14443 fprintf (f, "%lu\n", i);
14445 exit (ferror (f) || fclose (f) != 0);
14451 rm -f conftest$ac_exeext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14453 (eval $ac_link) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_cv_sizeof_int_p=`cat conftest.val`
14464 echo "$as_me: program exited with status $ac_status" >&5
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ( exit $ac_status )
14469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14470 See \`config.log' for more details." >&5
14471 echo "$as_me: error: cannot compute sizeof (int *), 77
14472 See \`config.log' for more details." >&2;}
14473 { (exit 1); exit 1; }; }
14475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14480 ac_cv_sizeof_int_p=0
14483 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14484 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14485 cat >>confdefs.h <<_ACEOF
14486 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14491 # Check for sys/types.h types
14492 echo "$as_me:$LINENO: checking for u_int type" >&5
14493 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14494 if test "${ac_cv_have_u_int+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 cat >conftest.$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 #include <sys/types.h>
14514 rm -f conftest.$ac_objext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516 (eval $ac_compile) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -s conftest.$ac_objext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14526 ac_cv_have_u_int="yes"
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_cv_have_u_int="no"
14534 rm -f conftest.$ac_objext conftest.$ac_ext
14537 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14538 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14539 if test "x$ac_cv_have_u_int" = "xyes" ; then
14540 cat >>confdefs.h <<\_ACEOF
14541 #define HAVE_U_INT 1
14547 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14548 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14549 if test "${ac_cv_have_intmax_t+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 #include <sys/types.h>
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_have_intmax_t="yes"
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14587 cat >conftest.$ac_ext <<_ACEOF
14588 #line $LINENO "configure"
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <stdint.h>
14603 rm -f conftest.$ac_objext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14605 (eval $ac_compile) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_have_intmax_t="yes"
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_have_intmax_t="no"
14623 rm -f conftest.$ac_objext conftest.$ac_ext
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14631 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14632 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14633 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_INTMAX_T 1
14642 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14643 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14644 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 #include <sys/types.h>
14659 u_intmax_t a; a = 1;
14664 rm -f conftest.$ac_objext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_have_u_intmax_t="yes"
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14682 cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 #include <stdint.h>
14693 u_intmax_t a; a = 1;
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700 (eval $ac_compile) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_cv_have_u_intmax_t="yes"
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_cv_have_u_intmax_t="no"
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14722 rm -f conftest.$ac_objext conftest.$ac_ext
14725 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14726 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14727 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_U_INTMAX_T 1
14736 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14737 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14738 if test "${ac_cv_have_intxx_t+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 cat >conftest.$ac_ext <<_ACEOF
14743 #line $LINENO "configure"
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <sys/types.h>
14753 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -s conftest.$ac_objext'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_cv_have_intxx_t="yes"
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ac_cv_have_intxx_t="no"
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14781 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14782 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14783 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14784 cat >>confdefs.h <<\_ACEOF
14785 #define HAVE_INTXX_T 1
14791 echo "$as_me:$LINENO: checking for int64_t type" >&5
14792 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14793 if test "${ac_cv_have_int64_t+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 cat >conftest.$ac_ext <<_ACEOF
14798 #line $LINENO "configure"
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <sys/types.h>
14813 rm -f conftest.$ac_objext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14815 (eval $ac_compile) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -s conftest.$ac_objext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 ac_cv_have_int64_t="yes"
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 ac_cv_have_int64_t="no"
14833 rm -f conftest.$ac_objext conftest.$ac_ext
14836 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14837 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14838 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14839 cat >>confdefs.h <<\_ACEOF
14840 #define HAVE_INT64_T 1
14846 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14847 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14848 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <sys/types.h>
14863 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870 (eval $ac_compile) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_cv_have_u_intxx_t="yes"
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ac_cv_have_u_intxx_t="no"
14888 rm -f conftest.$ac_objext conftest.$ac_ext
14891 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14892 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14893 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14894 cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_U_INTXX_T 1
14901 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14902 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14903 if test "${ac_cv_have_u_int64_t+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14908 #line $LINENO "configure"
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 #include <sys/types.h>
14918 u_int64_t a; a = 1;
14923 rm -f conftest.$ac_objext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925 (eval $ac_compile) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -s conftest.$ac_objext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_have_u_int64_t="yes"
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_cv_have_u_int64_t="no"
14943 rm -f conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14947 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14948 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14949 cat >>confdefs.h <<\_ACEOF
14950 #define HAVE_U_INT64_T 1
14956 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14957 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14959 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14960 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14961 cat >conftest.$ac_ext <<_ACEOF
14962 #line $LINENO "configure"
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 #include <sys/bitypes.h>
14972 int8_t a; int16_t b; int32_t c;
14973 u_int8_t e; u_int16_t f; u_int32_t g;
14974 a = b = c = e = f = g = 1;
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_U_INTXX_T 1
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_INTXX_T 1
14999 cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_SYS_BITYPES_H 1
15003 echo "$as_me:$LINENO: result: yes" >&5
15004 echo "${ECHO_T}yes" >&6
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6
15013 rm -f conftest.$ac_objext conftest.$ac_ext
15016 if test -z "$have_u_intxx_t" ; then
15017 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15018 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15019 if test "${ac_cv_have_uintxx_t+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 cat >conftest.$ac_ext <<_ACEOF
15024 #line $LINENO "configure"
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 #include <sys/types.h>
15034 uint8_t a; uint16_t b;
15035 uint32_t c; a = b = c = 1;
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -s conftest.$ac_objext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 ac_cv_have_uintxx_t="yes"
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ac_cv_have_uintxx_t="no"
15060 rm -f conftest.$ac_objext conftest.$ac_ext
15063 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15064 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15065 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15066 cat >>confdefs.h <<\_ACEOF
15067 #define HAVE_UINTXX_T 1
15103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15104 echo "$as_me:$LINENO: checking for $ac_func" >&5
15105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15106 if eval "test \"\${$as_ac_var+set}\" = set"; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 cat >conftest.$ac_ext <<_ACEOF
15110 #line $LINENO "configure"
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 /* System header to define __stub macros and hopefully few prototypes,
15117 which can conflict with char $ac_func (); below.
15118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119 <limits.h> exists even on freestanding compilers. */
15121 # include <limits.h>
15123 # include <assert.h>
15125 /* Override any gcc2 internal prototype to avoid an error. */
15130 /* We use char because int might match the return type of a gcc2
15131 builtin and then its argument prototype would still apply. */
15133 /* The GNU C library defines this for functions which it implements
15134 to always fail with ENOSYS. Some functions are actually named
15135 something starting with __ and the normal name is an alias. */
15136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15139 char (*f) () = $ac_func;
15148 return f != $ac_func;
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155 (eval $ac_link) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 eval "$as_ac_var=yes"
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 eval "$as_ac_var=no"
15172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15176 if test `eval echo '${'$as_ac_var'}'` = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15182 echo 'configure: cannot find needed function.'; exit 1
15189 for ac_func in fchdir
15191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15192 echo "$as_me:$LINENO: checking for $ac_func" >&5
15193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15194 if eval "test \"\${$as_ac_var+set}\" = set"; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<_ACEOF
15198 #line $LINENO "configure"
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 /* System header to define __stub macros and hopefully few prototypes,
15205 which can conflict with char $ac_func (); below.
15206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15207 <limits.h> exists even on freestanding compilers. */
15209 # include <limits.h>
15211 # include <assert.h>
15213 /* Override any gcc2 internal prototype to avoid an error. */
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15221 /* The GNU C library defines this for functions which it implements
15222 to always fail with ENOSYS. Some functions are actually named
15223 something starting with __ and the normal name is an alias. */
15224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15227 char (*f) () = $ac_func;
15236 return f != $ac_func;
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 eval "$as_ac_var=yes"
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15258 eval "$as_ac_var=no"
15260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15264 if test `eval echo '${'$as_ac_var'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15268 cat >>confdefs.h <<\_ACEOF
15269 #define HAVE_FCHDIR 1
15276 for ac_func in strtoll
15278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15279 echo "$as_me:$LINENO: checking for $ac_func" >&5
15280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_var+set}\" = set"; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15285 #line $LINENO "configure"
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15296 # include <limits.h>
15298 # include <assert.h>
15300 /* Override any gcc2 internal prototype to avoid an error. */
15305 /* We use char because int might match the return type of a gcc2
15306 builtin and then its argument prototype would still apply. */
15308 /* The GNU C library defines this for functions which it implements
15309 to always fail with ENOSYS. Some functions are actually named
15310 something starting with __ and the normal name is an alias. */
15311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15314 char (*f) () = $ac_func;
15323 return f != $ac_func;
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330 (eval $ac_link) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
15334 { ac_try='test -s conftest$ac_exeext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 eval "$as_ac_var=yes"
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 eval "$as_ac_var=no"
15347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15351 if test `eval echo '${'$as_ac_var'}'` = yes; then
15352 cat >>confdefs.h <<_ACEOF
15353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_STRTOLL 1
15364 for ac_func in chflags
15366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15367 echo "$as_me:$LINENO: checking for $ac_func" >&5
15368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15369 if eval "test \"\${$as_ac_var+set}\" = set"; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 /* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char $ac_func (); below.
15381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15382 <limits.h> exists even on freestanding compilers. */
15384 # include <limits.h>
15386 # include <assert.h>
15388 /* Override any gcc2 internal prototype to avoid an error. */
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15396 /* The GNU C library defines this for functions which it implements
15397 to always fail with ENOSYS. Some functions are actually named
15398 something starting with __ and the normal name is an alias. */
15399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15402 char (*f) () = $ac_func;
15411 return f != $ac_func;
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418 (eval $ac_link) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -s conftest$ac_exeext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 eval "$as_ac_var=yes"
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 eval "$as_ac_var=no"
15435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15439 if test `eval echo '${'$as_ac_var'}'` = yes; then
15440 cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15452 for ac_func in snprintf vsnprintf gethostid getdomainname
15454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15455 echo "$as_me:$LINENO: checking for $ac_func" >&5
15456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15457 if eval "test \"\${$as_ac_var+set}\" = set"; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 cat >conftest.$ac_ext <<_ACEOF
15461 #line $LINENO "configure"
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 /* System header to define __stub macros and hopefully few prototypes,
15468 which can conflict with char $ac_func (); below.
15469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15470 <limits.h> exists even on freestanding compilers. */
15472 # include <limits.h>
15474 # include <assert.h>
15476 /* Override any gcc2 internal prototype to avoid an error. */
15481 /* We use char because int might match the return type of a gcc2
15482 builtin and then its argument prototype would still apply. */
15484 /* The GNU C library defines this for functions which it implements
15485 to always fail with ENOSYS. Some functions are actually named
15486 something starting with __ and the normal name is an alias. */
15487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15490 char (*f) () = $ac_func;
15499 return f != $ac_func;
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 eval "$as_ac_var=yes"
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 eval "$as_ac_var=no"
15523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15527 if test `eval echo '${'$as_ac_var'}'` = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15540 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15543 echo "$as_me:$LINENO: checking for $ac_func" >&5
15544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15545 if eval "test \"\${$as_ac_var+set}\" = set"; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 cat >conftest.$ac_ext <<_ACEOF
15549 #line $LINENO "configure"
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15560 # include <limits.h>
15562 # include <assert.h>
15564 /* Override any gcc2 internal prototype to avoid an error. */
15569 /* We use char because int might match the return type of a gcc2
15570 builtin and then its argument prototype would still apply. */
15572 /* The GNU C library defines this for functions which it implements
15573 to always fail with ENOSYS. Some functions are actually named
15574 something starting with __ and the normal name is an alias. */
15575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15578 char (*f) () = $ac_func;
15587 return f != $ac_func;
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15594 (eval $ac_link) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 eval "$as_ac_var=yes"
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 eval "$as_ac_var=no"
15611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15615 if test `eval echo '${'$as_ac_var'}'` = yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15624 # If resolver functions are not in libc check for -lnsl or -lresolv.
15625 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15626 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15627 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15631 #line $LINENO "configure"
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* System header to define __stub macros and hopefully few prototypes,
15638 which can conflict with char gethostbyname_r (); below.
15639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15640 <limits.h> exists even on freestanding compilers. */
15642 # include <limits.h>
15644 # include <assert.h>
15646 /* Override any gcc2 internal prototype to avoid an error. */
15651 /* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15653 char gethostbyname_r ();
15654 /* The GNU C library defines this for functions which it implements
15655 to always fail with ENOSYS. Some functions are actually named
15656 something starting with __ and the normal name is an alias. */
15657 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15660 char (*f) () = gethostbyname_r;
15669 return f != gethostbyname_r;
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676 (eval $ac_link) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_cv_func_gethostbyname_r=yes
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_func_gethostbyname_r=no
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15696 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15697 if test $ac_cv_func_gethostbyname_r = yes; then
15698 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15699 echo "${ECHO_T}using libc's resolver" >&6
15702 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15703 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15704 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_check_lib_save_LIBS=$LIBS
15709 cat >conftest.$ac_ext <<_ACEOF
15710 #line $LINENO "configure"
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15717 /* Override any gcc2 internal prototype to avoid an error. */
15721 /* We use char because int might match the return type of a gcc2
15722 builtin and then its argument prototype would still apply. */
15723 char gethostbyname_r ();
15727 gethostbyname_r ();
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -s conftest$ac_exeext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_lib_nsl_gethostbyname_r=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_cv_lib_nsl_gethostbyname_r=no
15751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15754 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15755 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15756 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_LIBNSL 1
15766 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15767 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15768 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 ac_check_lib_save_LIBS=$LIBS
15772 LIBS="-lresolv $LIBS"
15773 cat >conftest.$ac_ext <<_ACEOF
15774 #line $LINENO "configure"
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15781 /* Override any gcc2 internal prototype to avoid an error. */
15785 /* We use char because int might match the return type of a gcc2
15786 builtin and then its argument prototype would still apply. */
15787 char gethostbyname_r ();
15791 gethostbyname_r ();
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798 (eval $ac_link) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_lib_resolv_gethostbyname_r=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_lib_resolv_gethostbyname_r=no
15815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_check_lib_save_LIBS
15818 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15819 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15820 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define HAVE_LIBRESOLV 1
15825 LIBS="-lresolv $LIBS"
15833 # Find where sockets are (especially for Solaris)
15834 echo "$as_me:$LINENO: checking for socket" >&5
15835 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15836 if test "${ac_cv_func_socket+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 cat >conftest.$ac_ext <<_ACEOF
15840 #line $LINENO "configure"
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15846 /* System header to define __stub macros and hopefully few prototypes,
15847 which can conflict with char socket (); below.
15848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15849 <limits.h> exists even on freestanding compilers. */
15851 # include <limits.h>
15853 # include <assert.h>
15855 /* Override any gcc2 internal prototype to avoid an error. */
15860 /* We use char because int might match the return type of a gcc2
15861 builtin and then its argument prototype would still apply. */
15863 /* The GNU C library defines this for functions which it implements
15864 to always fail with ENOSYS. Some functions are actually named
15865 something starting with __ and the normal name is an alias. */
15866 #if defined (__stub_socket) || defined (__stub___socket)
15869 char (*f) () = socket;
15878 return f != socket;
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15885 (eval $ac_link) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest$ac_exeext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_func_socket=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_cv_func_socket=no
15902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15904 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15905 echo "${ECHO_T}$ac_cv_func_socket" >&6
15906 if test $ac_cv_func_socket = yes; then
15907 echo "$as_me:$LINENO: result: using libc's socket" >&5
15908 echo "${ECHO_T}using libc's socket" >&6
15911 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15912 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15913 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-lxnet $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line $LINENO "configure"
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15926 /* Override any gcc2 internal prototype to avoid an error. */
15930 /* We use char because int might match the return type of a gcc2
15931 builtin and then its argument prototype would still apply. */
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -s conftest$ac_exeext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_cv_lib_xnet_socket=yes
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_cv_lib_xnet_socket=no
15960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15961 LIBS=$ac_check_lib_save_LIBS
15963 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15964 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15965 if test $ac_cv_lib_xnet_socket = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define HAVE_LIBXNET 1
15970 LIBS="-lxnet $LIBS"
15975 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15976 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15977 if test "${ac_cv_lib_socket_socket+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 ac_check_lib_save_LIBS=$LIBS
15981 LIBS="-lsocket $LIBS"
15982 cat >conftest.$ac_ext <<_ACEOF
15983 #line $LINENO "configure"
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15990 /* Override any gcc2 internal prototype to avoid an error. */
15994 /* We use char because int might match the return type of a gcc2
15995 builtin and then its argument prototype would still apply. */
16005 rm -f conftest.$ac_objext conftest$ac_exeext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007 (eval $ac_link) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 ac_cv_lib_socket_socket=yes
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_cv_lib_socket_socket=no
16024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16027 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16028 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16029 if test $ac_cv_lib_socket_socket = yes; then
16030 cat >>confdefs.h <<_ACEOF
16031 #define HAVE_LIBSOCKET 1
16034 LIBS="-lsocket $LIBS"
16039 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16040 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16041 if test "${ac_cv_lib_inet_socket+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 ac_check_lib_save_LIBS=$LIBS
16045 LIBS="-linet $LIBS"
16046 cat >conftest.$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16054 /* Override any gcc2 internal prototype to avoid an error. */
16058 /* We use char because int might match the return type of a gcc2
16059 builtin and then its argument prototype would still apply. */
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071 (eval $ac_link) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -s conftest$ac_exeext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16081 ac_cv_lib_inet_socket=yes
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_cv_lib_inet_socket=no
16088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16091 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16092 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16093 if test $ac_cv_lib_inet_socket = yes; then
16094 cat >>confdefs.h <<_ACEOF
16095 #define HAVE_LIBINET 1
16098 LIBS="-linet $LIBS"
16106 for ac_func in inet_pton
16108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16109 echo "$as_me:$LINENO: checking for $ac_func" >&5
16110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16111 if eval "test \"\${$as_ac_var+set}\" = set"; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
16121 /* System header to define __stub macros and hopefully few prototypes,
16122 which can conflict with char $ac_func (); below.
16123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124 <limits.h> exists even on freestanding compilers. */
16126 # include <limits.h>
16128 # include <assert.h>
16130 /* Override any gcc2 internal prototype to avoid an error. */
16135 /* We use char because int might match the return type of a gcc2
16136 builtin and then its argument prototype would still apply. */
16138 /* The GNU C library defines this for functions which it implements
16139 to always fail with ENOSYS. Some functions are actually named
16140 something starting with __ and the normal name is an alias. */
16141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16144 char (*f) () = $ac_func;
16153 return f != $ac_func;
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160 (eval $ac_link) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 eval "$as_ac_var=yes"
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 eval "$as_ac_var=no"
16177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16181 if test `eval echo '${'$as_ac_var'}'` = yes; then
16182 cat >>confdefs.h <<_ACEOF
16183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_INET_PTON 1
16194 for ac_func in strftime
16196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16197 echo "$as_me:$LINENO: checking for $ac_func" >&5
16198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16199 if eval "test \"\${$as_ac_var+set}\" = set"; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 cat >conftest.$ac_ext <<_ACEOF
16203 #line $LINENO "configure"
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16209 /* System header to define __stub macros and hopefully few prototypes,
16210 which can conflict with char $ac_func (); below.
16211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16212 <limits.h> exists even on freestanding compilers. */
16214 # include <limits.h>
16216 # include <assert.h>
16218 /* Override any gcc2 internal prototype to avoid an error. */
16223 /* We use char because int might match the return type of a gcc2
16224 builtin and then its argument prototype would still apply. */
16226 /* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16232 char (*f) () = $ac_func;
16241 return f != $ac_func;
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248 (eval $ac_link) 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -s conftest$ac_exeext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 eval "$as_ac_var=yes"
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 eval "$as_ac_var=no"
16265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16269 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270 cat >>confdefs.h <<_ACEOF
16271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16275 # strftime is in -lintl on SCO UNIX.
16276 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16277 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16278 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 ac_check_lib_save_LIBS=$LIBS
16282 LIBS="-lintl $LIBS"
16283 cat >conftest.$ac_ext <<_ACEOF
16284 #line $LINENO "configure"
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16291 /* Override any gcc2 internal prototype to avoid an error. */
16295 /* We use char because int might match the return type of a gcc2
16296 builtin and then its argument prototype would still apply. */
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16308 (eval $ac_link) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -s conftest$ac_exeext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_cv_lib_intl_strftime=yes
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_intl_strftime=no
16325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16326 LIBS=$ac_check_lib_save_LIBS
16328 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16329 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16330 if test $ac_cv_lib_intl_strftime = yes; then
16331 cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_STRFTIME 1
16335 LIBS="-lintl $LIBS"
16342 for ac_func in vprintf
16344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16345 echo "$as_me:$LINENO: checking for $ac_func" >&5
16346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16347 if eval "test \"\${$as_ac_var+set}\" = set"; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 cat >conftest.$ac_ext <<_ACEOF
16351 #line $LINENO "configure"
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 /* System header to define __stub macros and hopefully few prototypes,
16358 which can conflict with char $ac_func (); below.
16359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16360 <limits.h> exists even on freestanding compilers. */
16362 # include <limits.h>
16364 # include <assert.h>
16366 /* Override any gcc2 internal prototype to avoid an error. */
16371 /* We use char because int might match the return type of a gcc2
16372 builtin and then its argument prototype would still apply. */
16374 /* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
16377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380 char (*f) () = $ac_func;
16389 return f != $ac_func;
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16396 (eval $ac_link) 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -s conftest$ac_exeext'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 eval "$as_ac_var=yes"
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 eval "$as_ac_var=no"
16413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16417 if test `eval echo '${'$as_ac_var'}'` = yes; then
16418 cat >>confdefs.h <<_ACEOF
16419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16422 echo "$as_me:$LINENO: checking for _doprnt" >&5
16423 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16424 if test "${ac_cv_func__doprnt+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 /* System header to define __stub macros and hopefully few prototypes,
16435 which can conflict with char _doprnt (); below.
16436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16437 <limits.h> exists even on freestanding compilers. */
16439 # include <limits.h>
16441 # include <assert.h>
16443 /* Override any gcc2 internal prototype to avoid an error. */
16448 /* We use char because int might match the return type of a gcc2
16449 builtin and then its argument prototype would still apply. */
16451 /* The GNU C library defines this for functions which it implements
16452 to always fail with ENOSYS. Some functions are actually named
16453 something starting with __ and the normal name is an alias. */
16454 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16457 char (*f) () = _doprnt;
16466 return f != _doprnt;
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16473 (eval $ac_link) 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -s conftest$ac_exeext'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; }; then
16483 ac_cv_func__doprnt=yes
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_cv_func__doprnt=no
16490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16493 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16494 if test $ac_cv_func__doprnt = yes; then
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_DOPRNT 1
16506 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16507 # for constant arguments. Useless!
16508 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16509 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16510 if test "${ac_cv_working_alloca_h+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 cat >conftest.$ac_ext <<_ACEOF
16514 #line $LINENO "configure"
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <alloca.h>
16524 char *p = (char *) alloca (2 * sizeof (int));
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_working_alloca_h=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_working_alloca_h=no
16548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16551 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16552 if test $ac_cv_working_alloca_h = yes; then
16554 cat >>confdefs.h <<\_ACEOF
16555 #define HAVE_ALLOCA_H 1
16560 echo "$as_me:$LINENO: checking for alloca" >&5
16561 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16562 if test "${ac_cv_func_alloca_works+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 cat >conftest.$ac_ext <<_ACEOF
16566 #line $LINENO "configure"
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16573 # define alloca __builtin_alloca
16576 # include <malloc.h>
16577 # define alloca _alloca
16580 # include <alloca.h>
16585 # ifndef alloca /* predefined by HP cc +Olibcalls */
16596 char *p = (char *) alloca (1);
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_func_alloca_works=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_func_alloca_works=no
16620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16623 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16625 if test $ac_cv_func_alloca_works = yes; then
16627 cat >>confdefs.h <<\_ACEOF
16628 #define HAVE_ALLOCA 1
16632 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16633 # that cause trouble. Some versions do not even contain alloca or
16634 # contain a buggy version. If you still want to use their alloca,
16635 # use ar to extract alloca.o from them instead of compiling alloca.c.
16637 ALLOCA=alloca.$ac_objext
16639 cat >>confdefs.h <<\_ACEOF
16644 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16645 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16646 if test "${ac_cv_os_cray+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #if defined(CRAY) && ! defined(CRAY2)
16663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16664 $EGREP "webecray" >/dev/null 2>&1; then
16672 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16673 echo "${ECHO_T}$ac_cv_os_cray" >&6
16674 if test $ac_cv_os_cray = yes; then
16675 for ac_func in _getb67 GETB67 getb67; do
16676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16677 echo "$as_me:$LINENO: checking for $ac_func" >&5
16678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16679 if eval "test \"\${$as_ac_var+set}\" = set"; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 cat >conftest.$ac_ext <<_ACEOF
16683 #line $LINENO "configure"
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char $ac_func (); below.
16691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692 <limits.h> exists even on freestanding compilers. */
16694 # include <limits.h>
16696 # include <assert.h>
16698 /* Override any gcc2 internal prototype to avoid an error. */
16703 /* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16706 /* The GNU C library defines this for functions which it implements
16707 to always fail with ENOSYS. Some functions are actually named
16708 something starting with __ and the normal name is an alias. */
16709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16712 char (*f) () = $ac_func;
16721 return f != $ac_func;
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 eval "$as_ac_var=yes"
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 eval "$as_ac_var=no"
16745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16749 if test `eval echo '${'$as_ac_var'}'` = yes; then
16751 cat >>confdefs.h <<_ACEOF
16752 #define CRAY_STACKSEG_END $ac_func
16761 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16763 if test "${ac_cv_c_stack_direction+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 if test "$cross_compiling" = yes; then
16767 ac_cv_c_stack_direction=0
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 find_stack_direction ()
16779 static char *addr = 0;
16784 return find_stack_direction ();
16787 return (&dummy > addr) ? 1 : -1;
16793 exit (find_stack_direction () < 0);
16796 rm -f conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_c_stack_direction=1
16809 echo "$as_me: program exited with status $ac_status" >&5
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ( exit $ac_status )
16814 ac_cv_c_stack_direction=-1
16816 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16820 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16822 cat >>confdefs.h <<_ACEOF
16823 #define STACK_DIRECTION $ac_cv_c_stack_direction
16829 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16830 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16831 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16832 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 ac_check_lib_save_LIBS=$LIBS
16837 cat >conftest.$ac_ext <<_ACEOF
16838 #line $LINENO "configure"
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16845 /* Override any gcc2 internal prototype to avoid an error. */
16849 /* We use char because int might match the return type of a gcc2
16850 builtin and then its argument prototype would still apply. */
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_lib_sun_getmntent=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 ac_cv_lib_sun_getmntent=no
16879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16880 LIBS=$ac_check_lib_save_LIBS
16882 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16883 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16884 if test $ac_cv_lib_sun_getmntent = yes; then
16887 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16888 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16889 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 ac_check_lib_save_LIBS=$LIBS
16894 cat >conftest.$ac_ext <<_ACEOF
16895 #line $LINENO "configure"
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16902 /* Override any gcc2 internal prototype to avoid an error. */
16906 /* We use char because int might match the return type of a gcc2
16907 builtin and then its argument prototype would still apply. */
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919 (eval $ac_link) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -s conftest$ac_exeext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_lib_seq_getmntent=yes
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_cv_lib_seq_getmntent=no
16936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16939 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16940 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16941 if test $ac_cv_lib_seq_getmntent = yes; then
16944 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16945 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16946 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 ac_check_lib_save_LIBS=$LIBS
16951 cat >conftest.$ac_ext <<_ACEOF
16952 #line $LINENO "configure"
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16959 /* Override any gcc2 internal prototype to avoid an error. */
16963 /* We use char because int might match the return type of a gcc2
16964 builtin and then its argument prototype would still apply. */
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_lib_gen_getmntent=yes
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_cv_lib_gen_getmntent=no
16993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16994 LIBS=$ac_check_lib_save_LIBS
16996 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16997 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16998 if test $ac_cv_lib_gen_getmntent = yes; then
17007 for ac_func in getmntent
17009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17010 echo "$as_me:$LINENO: checking for $ac_func" >&5
17011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17012 if eval "test \"\${$as_ac_var+set}\" = set"; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 /* System header to define __stub macros and hopefully few prototypes,
17023 which can conflict with char $ac_func (); below.
17024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17025 <limits.h> exists even on freestanding compilers. */
17027 # include <limits.h>
17029 # include <assert.h>
17031 /* Override any gcc2 internal prototype to avoid an error. */
17036 /* We use char because int might match the return type of a gcc2
17037 builtin and then its argument prototype would still apply. */
17039 /* The GNU C library defines this for functions which it implements
17040 to always fail with ENOSYS. Some functions are actually named
17041 something starting with __ and the normal name is an alias. */
17042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17045 char (*f) () = $ac_func;
17054 return f != $ac_func;
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 eval "$as_ac_var=yes"
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 eval "$as_ac_var=no"
17078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17082 if test `eval echo '${'$as_ac_var'}'` = yes; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17091 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17092 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17093 if test "${ac_cv_func_closedir_void+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 if test "$cross_compiling" = yes; then
17097 ac_cv_func_closedir_void=yes
17099 cat >conftest.$ac_ext <<_ACEOF
17100 #line $LINENO "configure"
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17106 $ac_includes_default
17107 #include <$ac_header_dirent>
17108 #ifndef __cplusplus
17115 exit (closedir (opendir (".")) != 0);
17120 rm -f conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122 (eval $ac_link) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_func_closedir_void=no
17133 echo "$as_me: program exited with status $ac_status" >&5
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ( exit $ac_status )
17138 ac_cv_func_closedir_void=yes
17140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17143 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17144 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17145 if test $ac_cv_func_closedir_void = yes; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define CLOSEDIR_VOID 1
17153 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17154 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17155 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 if test "$cross_compiling" = yes; then
17159 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17160 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17161 { (exit 1); exit 1; }; }
17163 cat >conftest.$ac_ext <<_ACEOF
17164 #line $LINENO "configure"
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17171 # include <unistd.h>
17177 /* If this system has a BSD-style setpgrp which takes arguments,
17178 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17179 exit successfully. */
17180 exit (setpgrp (1,1) == -1 ? 0 : 1);
17185 rm -f conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_func_setpgrp_void=no
17198 echo "$as_me: program exited with status $ac_status" >&5
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ( exit $ac_status )
17203 ac_cv_func_setpgrp_void=yes
17205 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17208 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17209 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17210 if test $ac_cv_func_setpgrp_void = yes; then
17212 cat >>confdefs.h <<\_ACEOF
17213 #define SETPGRP_VOID 1
17217 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17218 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17219 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17220 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 # Some versions of Solaris, SCO, and the GNU C Library
17223 # have a broken or incompatible fnmatch.
17224 # So we run a test program. If we are cross-compiling, take no chance.
17225 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17226 if test "$cross_compiling" = yes; then
17227 ac_cv_func_fnmatch_works=cross
17229 cat >conftest.$ac_ext <<_ACEOF
17230 #line $LINENO "configure"
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <fnmatch.h>
17237 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17238 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17244 (!(y ("a*", "abc", 0)
17245 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17246 && y ("a\\\\bc", "abc", 0)
17247 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17248 && y ("*x", ".x", 0)
17249 && n ("*x", ".x", FNM_PERIOD)
17255 rm -f conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_func_fnmatch_works=yes
17268 echo "$as_me: program exited with status $ac_status" >&5
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ( exit $ac_status )
17273 ac_cv_func_fnmatch_works=no
17275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17278 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17279 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17280 if test $ac_cv_func_fnmatch_works = yes; then
17282 cat >>confdefs.h <<\_ACEOF
17283 #define HAVE_FNMATCH 1
17292 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17293 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17294 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 ac_check_lib_save_LIBS=$LIBS
17298 LIBS="-lxpg4 $LIBS"
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line $LINENO "configure"
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17307 /* Override any gcc2 internal prototype to avoid an error. */
17311 /* We use char because int might match the return type of a gcc2
17312 builtin and then its argument prototype would still apply. */
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324 (eval $ac_link) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_cv_lib_xpg4_setlocale=yes
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_lib_xpg4_setlocale=no
17341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17345 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17346 if test $ac_cv_lib_xpg4_setlocale = yes; then
17347 LIBS="$LIBS -lxpg4"
17353 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17354 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17355 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 ac_check_lib_save_LIBS=$LIBS
17360 cat >conftest.$ac_ext <<_ACEOF
17361 #line $LINENO "configure"
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 /* Override any gcc2 internal prototype to avoid an error. */
17372 /* We use char because int might match the return type of a gcc2
17373 builtin and then its argument prototype would still apply. */
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_lib_sun_getpwnam=yes
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_lib_sun_getpwnam=no
17402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_check_lib_save_LIBS
17405 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17406 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17407 if test $ac_cv_lib_sun_getpwnam = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define HAVE_LIBSUN 1
17418 for ac_header in zlib.h
17420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422 echo "$as_me:$LINENO: checking for $ac_header" >&5
17423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17430 # Is the header compilable?
17431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17432 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
17441 #include <$ac_header>
17443 rm -f conftest.$ac_objext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445 (eval $ac_compile) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -s conftest.$ac_objext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_header_compiler=yes
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_header_compiler=no
17462 rm -f conftest.$ac_objext conftest.$ac_ext
17463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17464 echo "${ECHO_T}$ac_header_compiler" >&6
17466 # Is the header present?
17467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17469 cat >conftest.$ac_ext <<_ACEOF
17470 #line $LINENO "configure"
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17476 #include <$ac_header>
17478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } >/dev/null; then
17486 if test -s conftest.err; then
17487 ac_cpp_err=$ac_c_preproc_warn_flag
17494 if test -z "$ac_cpp_err"; then
17495 ac_header_preproc=yes
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 ac_header_preproc=no
17502 rm -f conftest.err conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17504 echo "${ECHO_T}$ac_header_preproc" >&6
17506 # So? What about this header?
17507 case $ac_header_compiler:$ac_header_preproc in
17509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17515 ## ------------------------------------ ##
17516 ## Report this to bug-autoconf@gnu.org. ##
17517 ## ------------------------------------ ##
17520 sed "s/^/$as_me: WARNING: /" >&2
17523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17531 ## ------------------------------------ ##
17532 ## Report this to bug-autoconf@gnu.org. ##
17533 ## ------------------------------------ ##
17536 sed "s/^/$as_me: WARNING: /" >&2
17539 echo "$as_me:$LINENO: checking for $ac_header" >&5
17540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 eval "$as_ac_Header=$ac_header_preproc"
17546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17559 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17560 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17561 if test "${ac_cv_lib_z_deflate+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 ac_check_lib_save_LIBS=$LIBS
17566 cat >conftest.$ac_ext <<_ACEOF
17567 #line $LINENO "configure"
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17574 /* Override any gcc2 internal prototype to avoid an error. */
17578 /* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_lib_z_deflate=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_z_deflate=no
17608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_check_lib_save_LIBS
17611 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17612 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17613 if test $ac_cv_lib_z_deflate = yes; then
17618 if test x$FDLIBS = x-lz; then
17619 cat >>confdefs.h <<\_ACEOF
17620 #define HAVE_LIBZ 1
17626 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17627 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17628 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17629 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17633 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17635 # Is the header compilable?
17636 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17637 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17639 #line $LINENO "configure"
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 $ac_includes_default
17646 #include <sys/acl.h>
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_header_compiler=yes
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_header_compiler=no
17667 rm -f conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17669 echo "${ECHO_T}$ac_header_compiler" >&6
17671 # Is the header present?
17672 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17673 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17674 cat >conftest.$ac_ext <<_ACEOF
17675 #line $LINENO "configure"
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 #include <sys/acl.h>
17683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } >/dev/null; then
17691 if test -s conftest.err; then
17692 ac_cpp_err=$ac_c_preproc_warn_flag
17699 if test -z "$ac_cpp_err"; then
17700 ac_header_preproc=yes
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ac_header_preproc=no
17707 rm -f conftest.err conftest.$ac_ext
17708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17709 echo "${ECHO_T}$ac_header_preproc" >&6
17711 # So? What about this header?
17712 case $ac_header_compiler:$ac_header_preproc in
17714 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17715 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17717 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17720 ## ------------------------------------ ##
17721 ## Report this to bug-autoconf@gnu.org. ##
17722 ## ------------------------------------ ##
17725 sed "s/^/$as_me: WARNING: /" >&2
17728 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17729 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17730 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17731 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17733 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17736 ## ------------------------------------ ##
17737 ## Report this to bug-autoconf@gnu.org. ##
17738 ## ------------------------------------ ##
17741 sed "s/^/$as_me: WARNING: /" >&2
17744 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17745 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17746 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 ac_cv_header_sys_acl_h=$ac_header_preproc
17751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17752 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17757 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17758 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17759 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 ac_check_lib_save_LIBS=$LIBS
17764 cat >conftest.$ac_ext <<_ACEOF
17765 #line $LINENO "configure"
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17772 /* Override any gcc2 internal prototype to avoid an error. */
17776 /* We use char because int might match the return type of a gcc2
17777 builtin and then its argument prototype would still apply. */
17778 char acl_get_file ();
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789 (eval $ac_link) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_lib_acl_acl_get_file=yes
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_cv_lib_acl_acl_get_file=no
17806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17809 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17810 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17811 if test $ac_cv_lib_acl_acl_get_file = yes; then
17812 FDLIBS="-lacl $FDLIBS"
17816 if test $ac_cv_lib_acl_acl_get_file = yes; then
17817 cat >>confdefs.h <<\_ACEOF
17825 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17826 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17827 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 ac_check_lib_save_LIBS=$LIBS
17831 LIBS="-lpthread $LIBS"
17832 cat >conftest.$ac_ext <<_ACEOF
17833 #line $LINENO "configure"
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 /* Override any gcc2 internal prototype to avoid an error. */
17844 /* We use char because int might match the return type of a gcc2
17845 builtin and then its argument prototype would still apply. */
17846 char pthread_create ();
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
17861 { ac_try='test -s conftest$ac_exeext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_cv_lib_pthread_pthread_create=yes
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_cv_lib_pthread_pthread_create=no
17874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17875 LIBS=$ac_check_lib_save_LIBS
17877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17879 if test $ac_cv_lib_pthread_pthread_create = yes; then
17880 PTHREAD_LIB="-lpthread"
17882 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17883 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17884 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 ac_check_lib_save_LIBS=$LIBS
17888 LIBS="-lpthreads $LIBS"
17889 cat >conftest.$ac_ext <<_ACEOF
17890 #line $LINENO "configure"
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17897 /* Override any gcc2 internal prototype to avoid an error. */
17901 /* We use char because int might match the return type of a gcc2
17902 builtin and then its argument prototype would still apply. */
17903 char pthread_create ();
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914 (eval $ac_link) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_pthreads_pthread_create=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_pthreads_pthread_create=no
17931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17934 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17935 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17936 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17937 PTHREAD_LIB="-lpthreads"
17939 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17940 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17941 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 ac_check_lib_save_LIBS=$LIBS
17946 cat >conftest.$ac_ext <<_ACEOF
17947 #line $LINENO "configure"
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 /* Override any gcc2 internal prototype to avoid an error. */
17958 /* We use char because int might match the return type of a gcc2
17959 builtin and then its argument prototype would still apply. */
17960 char pthread_create ();
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -s conftest$ac_exeext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_cv_lib_c_r_pthread_create=yes
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 ac_cv_lib_c_r_pthread_create=no
17988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17989 LIBS=$ac_check_lib_save_LIBS
17991 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17992 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17993 if test $ac_cv_lib_c_r_pthread_create = yes; then
17994 PTHREAD_LIB="-lc_r"
17996 echo "$as_me:$LINENO: checking for pthread_create" >&5
17997 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17998 if test "${ac_cv_func_pthread_create+set}" = set; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 cat >conftest.$ac_ext <<_ACEOF
18002 #line $LINENO "configure"
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 /* System header to define __stub macros and hopefully few prototypes,
18009 which can conflict with char pthread_create (); below.
18010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18011 <limits.h> exists even on freestanding compilers. */
18013 # include <limits.h>
18015 # include <assert.h>
18017 /* Override any gcc2 internal prototype to avoid an error. */
18022 /* We use char because int might match the return type of a gcc2
18023 builtin and then its argument prototype would still apply. */
18024 char pthread_create ();
18025 /* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18031 char (*f) () = pthread_create;
18040 return f != pthread_create;
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_func_pthread_create=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_func_pthread_create=no
18064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18066 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18067 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18080 cat >>confdefs.h <<\_ACEOF
18086 CFLAGS=${CFLAGS--O}
18087 LDFLAGS=${LDFLAGS--O}
18088 DB_LIBS="${SQL_LFLAGS}"
18090 CPPFLAGS="$CPPFLAGS"
18115 # Finally we set appropriate distribution specific
18116 # variables and defaults
18118 # PFILES are platform specific files
18119 PFILES="platforms/Makefile"
18123 hostname=`uname -n | cut -d '.' -f 1`
18124 case "$DISTNAME" in
18127 PSCMD="ps -e -o pid,comm"
18128 PFILES="${PFILES} \
18129 platforms/aix/Makefile"
18130 TAPEDRIVE="/dev/rmt0.1"
18134 PTHREAD_LIB="-lpthread -lexc"
18135 if test "${CC}" = "gcc" ; then
18142 TAPEDRIVE="/dev/nrmt0"
18145 DISTVER=`uname -a |awk '{print $3}'`
18146 TAPEDRIVE="/dev/nrmt0"
18147 PTHREAD_LIB="-pthread"
18148 CFLAGS="${CFLAGS} -pthread"
18149 PSCMD="ps -x -o pid,command"
18152 PFILES="${PFILES} \
18153 platforms/bsdi/Makefile \
18154 platforms/bsdi/bacula-fd \
18155 platforms/bsdi/bacula-sd \
18156 platforms/bsdi/bacula-dir"
18157 largefile_support="yes"
18160 DISTVER=`uname -a |awk '{print $3}'`
18161 TAPEDRIVE="/dev/nrst0"
18163 WCFLAGS="-mwindows"
18164 WLDFLAGS="-mwindows"
18168 TAPEDRIVE="/dev/nst0"
18169 PSCMD="ps -e -o pid,command"
18171 PFILES="${PFILES} \
18172 platforms/darwin/Makefile"
18175 DISTVER=`cat /etc/debian_version`
18176 TAPEDRIVE="/dev/nrst0"
18177 PSCMD="ps -e -o pid,command"
18180 DISTVER=`uname -a |awk '{print $3}'`
18181 VER=`echo $DISTVER | cut -c 1`
18182 if test x$VER = x4 ; then
18183 PTHREAD_LIB="-pthread"
18184 CFLAGS="${CFLAGS} -pthread"
18188 TAPEDRIVE="/dev/nrsa0"
18189 PSCMD="ps -x -o pid,command"
18190 PFILES="${PFILES} \
18191 platforms/freebsd/Makefile \
18192 platforms/freebsd/bacula-fd \
18193 platforms/freebsd/bacula-sd \
18194 platforms/freebsd/bacula-dir"
18195 largefile_support="yes"
18198 PSCMD="UNIX95=1 ps -e -o pid,comm"
18199 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18201 TAPEDRIVE="/dev/rmt/0hnb"
18205 TAPEDRIVE="/dev/rmt/0cbn"
18206 PSCMD="ps -e -o pid,comm"
18207 PFILES="${PFILES} \
18208 platforms/irix/Makefile \
18209 platforms/irix/bacula-fd \
18210 platforms/irix/bacula-sd \
18211 platforms/irix/bacula-dir"
18214 DISTVER=`uname -a |awk '{print $3}'`
18217 TAPEDRIVE="/dev/nrst0"
18218 PSCMD="ps -a -o pid,command"
18219 PTHREAD_LIB="-pthread"
18220 CFLAGS="${CFLAGS} -pthread"
18223 DISTVER=`uname -a |awk '{print $3}'`
18226 TAPEDRIVE="/dev/nrst0"
18227 PSCMD="ps -a -o pid,command"
18228 PTHREAD_LIB="-pthread"
18229 CFLAGS="${CFLAGS} -pthread"
18230 PFILES="${PFILES} \
18231 platforms/openbsd/Makefile \
18232 platforms/openbsd/bacula-fd \
18233 platforms/openbsd/bacula-sd \
18234 platforms/openbsd/bacula-dir"
18237 if test `cat /etc/redhat-release | grep release |\
18238 cut -f 3 -d ' '`x = "Enterprise"x ; then
18239 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18242 DISTVER=`cat /etc/redhat-release | grep release |\
18245 TAPEDRIVE="/dev/nst0"
18246 PSCMD="ps -e -o pid,command"
18247 PFILES="${PFILES} \
18248 platforms/redhat/Makefile \
18249 platforms/redhat/bacula-fd \
18250 platforms/redhat/bacula-sd \
18251 platforms/redhat/bacula-dir \
18252 platforms/redhat/bacula.spec \
18254 hostname=`hostname -s`
18257 DISTVER=`cat /etc/mandrake-release | grep release |\
18259 TAPEDRIVE="/dev/nst0"
18260 PSCMD="ps -e -o pid,command"
18261 PFILES="${PFILES} \
18262 platforms/mandrake/Makefile \
18263 platforms/mandrake/bacula-fd \
18264 platforms/mandrake/bacula-sd \
18265 platforms/mandrake/bacula-dir \
18266 platforms/mandrake/bacula.spec \
18270 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18271 TAPEDRIVE="/dev/nst0"
18272 PSCMD="ps -e -o pid,command"
18273 PFILES="${PFILES} \
18274 platforms/gentoo/Makefile \
18275 platforms/gentoo/bacula-fd \
18276 platforms/gentoo/bacula-sd \
18277 platforms/gentoo/bacula-dir"
18280 DISTVER=`cat /etc/slackware-version`
18281 TAPEDRIVE="/dev/nst0"
18282 PSCMD="ps -e -o pid,command"
18283 PFILES="${PFILES} \
18284 platforms/slackware/Makefile \
18285 platforms/slackware/rc.bacula-fd \
18286 platforms/slackware/rc.bacula-sd \
18287 platforms/slackware/rc.bacula-dir\
18288 platforms/slackware/functions.bacula"
18292 TAPEDRIVE="/dev/rmt/0cbn"
18293 PSCMD="ps -e -o pid,comm"
18294 PFILES="${PFILES} \
18295 platforms/solaris/Makefile \
18296 platforms/solaris/bacula-fd \
18297 platforms/solaris/bacula-sd \
18298 platforms/solaris/bacula-dir"
18299 if test x$DISTVER = x5.6 ; then
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE_OLD_SOCKOPT 1
18307 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18309 TAPEDRIVE="/dev/nst0"
18310 PSCMD="ps -e -o pid,command"
18311 PFILES="${PFILES} \
18312 platforms/suse/Makefile \
18313 platforms/suse/bacula-fd \
18314 platforms/suse/bacula-sd \
18315 platforms/suse/bacula-dir \
18316 platforms/suse/bacula \
18317 platforms/suse/bacula.spec"
18322 TAPEDRIVE="/dev/nst0"
18323 PSCMD="ps -e -o pid,command"
18324 PFILES="${PFILES} \
18325 platforms/suse/Makefile \
18326 platforms/suse/bacula-fd \
18327 platforms/suse/bacula-sd \
18328 platforms/suse/bacula-dir"
18332 TAPEDRIVE="/dev/nst0"
18335 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18341 LIBS="$PTHREAD_LIB $LIBS"
18343 cat >>confdefs.h <<_ACEOF
18347 cat >>confdefs.h <<_ACEOF
18358 MCOMMON=./autoconf/Make.common
18361 if test "x${subsysdir}" = "x${sbindir}" ; then
18364 echo "You have set both --sbindir and --with-subsys-dir"
18365 echo " equal to: ${subsysdir} "
18366 echo "This is not permitted. Please reconfigure."
18368 echo "Aborting configuration ..."
18374 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18375 ac_config_commands="$ac_config_commands default"
18376 cat >confcache <<\_ACEOF
18377 # This file is a shell script that caches the results of configure
18378 # tests run on this system so they can be shared between configure
18379 # scripts and configure runs, see configure's option --config-cache.
18380 # It is not useful on other systems. If it contains results you don't
18381 # want to keep, you may remove or edit it.
18383 # config.status only pays attention to the cache file if you give it
18384 # the --recheck option to rerun configure.
18386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18388 # following values.
18392 # The following way of writing the cache mishandles newlines in values,
18393 # but we know of no workaround that is simple, portable, and efficient.
18394 # So, don't put newlines in cache variables' values.
18395 # Ultrix sh set writes to stderr and can't be redirected directly,
18396 # and sets the high bit in the cache file unless we assign to the vars.
18399 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18401 # `set' does not quote correctly, so add quotes (double-quote
18402 # substitution turns \\\\ into \\, and sed turns \\ into \).
18405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18408 # `set' quotes correctly as required by POSIX, so do not add quotes.
18410 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18419 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18421 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18422 if test -w $cache_file; then
18423 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18424 cat confcache >$cache_file
18426 echo "not updating unwritable cache $cache_file"
18431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18432 # Let make expand exec_prefix.
18433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18435 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18436 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18437 # trailing colons and then remove the whole line if VPATH becomes empty
18438 # (actually we leave an empty line to preserve line numbers).
18439 if test "x$srcdir" = x.; then
18440 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18441 s/:*\$(srcdir):*/:/;
18442 s/:*\${srcdir}:*/:/;
18444 s/^\([^=]*=[ ]*\):*/\1/;
18450 DEFS=-DHAVE_CONFIG_H
18454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18455 # 1. Remove the extension, and $U if already installed.
18456 ac_i=`echo "$ac_i" |
18457 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18459 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18460 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18462 LIBOBJS=$ac_libobjs
18464 LTLIBOBJS=$ac_ltlibobjs
18468 : ${CONFIG_STATUS=./config.status}
18469 ac_clean_files_save=$ac_clean_files
18470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18473 cat >$CONFIG_STATUS <<_ACEOF
18475 # Generated by $as_me.
18476 # Run this file to recreate the current configuration.
18477 # Compiler output produced by configure, useful for debugging
18478 # configure, is in config.log if it exists.
18481 ac_cs_recheck=false
18483 SHELL=\${CONFIG_SHELL-$SHELL}
18486 cat >>$CONFIG_STATUS <<\_ACEOF
18487 ## --------------------- ##
18488 ## M4sh Initialization. ##
18489 ## --------------------- ##
18491 # Be Bourne compatible
18492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18495 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18496 # is contrary to our usage. Disable this feature.
18497 alias -g '${1+"$@"}'='"$@"'
18498 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18502 # Support unset when possible.
18503 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18510 # Work around bugs in pre-3.0 UWIN ksh.
18511 $as_unset ENV MAIL MAILPATH
18518 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18519 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18520 LC_TELEPHONE LC_TIME
18522 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18523 eval $as_var=C; export $as_var
18529 # Required to use basename.
18530 if expr a : '\(a\)' >/dev/null 2>&1; then
18536 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18537 as_basename=basename
18543 # Name of the executable.
18544 as_me=`$as_basename "$0" ||
18545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18546 X"$0" : 'X\(//\)$' \| \
18547 X"$0" : 'X\(/\)$' \| \
18548 . : '\(.\)' 2>/dev/null ||
18550 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18551 /^X\/\(\/\/\)$/{ s//\1/; q; }
18552 /^X\/\(\/\).*/{ s//\1/; q; }
18556 # PATH needs CR, and LINENO needs CR and PATH.
18557 # Avoid depending upon Character Ranges.
18558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18561 as_cr_digits='0123456789'
18562 as_cr_alnum=$as_cr_Letters$as_cr_digits
18564 # The user is always right.
18565 if test "${PATH_SEPARATOR+set}" != set; then
18566 echo "#! /bin/sh" >conf$$.sh
18567 echo "exit 0" >>conf$$.sh
18569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18578 as_lineno_1=$LINENO
18579 as_lineno_2=$LINENO
18580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18581 test "x$as_lineno_1" != "x$as_lineno_2" &&
18582 test "x$as_lineno_3" = "x$as_lineno_2" || {
18583 # Find who we are. Look in the path if we contain no path at all
18586 *[\\/]* ) as_myself=$0 ;;
18587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18591 test -z "$as_dir" && as_dir=.
18592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18597 # We did not find ourselves, most probably we were run as `sh COMMAND'
18598 # in which case we are not to be found in the path.
18599 if test "x$as_myself" = x; then
18602 if test ! -f "$as_myself"; then
18603 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18604 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18605 { (exit 1); exit 1; }; }
18607 case $CONFIG_SHELL in
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18613 test -z "$as_dir" && as_dir=.
18614 for as_base in sh bash ksh sh5; do
18617 if ("$as_dir/$as_base" -c '
18618 as_lineno_1=$LINENO
18619 as_lineno_2=$LINENO
18620 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18621 test "x$as_lineno_1" != "x$as_lineno_2" &&
18622 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18623 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18624 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18625 CONFIG_SHELL=$as_dir/$as_base
18626 export CONFIG_SHELL
18627 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18635 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18636 # uniformly replaced by the line number. The first 'sed' inserts a
18637 # line-number line before each line; the second 'sed' does the real
18638 # work. The second script uses 'N' to pair each line-number line
18639 # with the numbered line, and appends trailing '-' during
18640 # substitution so that $LINENO is not a special case at line end.
18641 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18642 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18643 sed '=' <$as_myself |
18648 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18651 s,^['$as_cr_digits']*\n,,
18652 ' >$as_me.lineno &&
18653 chmod +x $as_me.lineno ||
18654 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18655 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18656 { (exit 1); exit 1; }; }
18658 # Don't try to exec as it changes $[0], causing all sort of problems
18659 # (the dirname of $[0] is not the place where we might find the
18660 # original and so on. Autoconf is especially sensible to this).
18662 # Exit status is that of the last command.
18667 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18668 *c*,-n*) ECHO_N= ECHO_C='
18670 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18671 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18674 if expr a : '\(a\)' >/dev/null 2>&1; then
18680 rm -f conf$$ conf$$.exe conf$$.file
18682 if ln -s conf$$.file conf$$ 2>/dev/null; then
18683 # We could just check for DJGPP; but this test a) works b) is more generic
18684 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18685 if test -f conf$$.exe; then
18686 # Don't use ln at all; we don't have any links
18691 elif ln conf$$.file conf$$ 2>/dev/null; then
18696 rm -f conf$$ conf$$.exe conf$$.file
18698 if mkdir -p . 2>/dev/null; then
18704 as_executable_p="test -f"
18706 # Sed expression to map a string onto a valid CPP name.
18707 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18709 # Sed expression to map a string onto a valid variable name.
18710 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18714 # We need space, tab and new line, in precisely that order.
18724 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18725 # report actual input values of CONFIG_FILES etc. instead of their
18726 # values after options handling. Logging --version etc. is OK.
18730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18731 ## Running $as_me. ##
18736 This file was extended by $as_me, which was
18737 generated by GNU Autoconf 2.57. Invocation command line was
18739 CONFIG_FILES = $CONFIG_FILES
18740 CONFIG_HEADERS = $CONFIG_HEADERS
18741 CONFIG_LINKS = $CONFIG_LINKS
18742 CONFIG_COMMANDS = $CONFIG_COMMANDS
18746 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18750 # Files that config.status was made for.
18751 if test -n "$ac_config_files"; then
18752 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18755 if test -n "$ac_config_headers"; then
18756 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18759 if test -n "$ac_config_links"; then
18760 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18763 if test -n "$ac_config_commands"; then
18764 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18767 cat >>$CONFIG_STATUS <<\_ACEOF
18770 \`$as_me' instantiates files from templates according to the
18771 current configuration.
18773 Usage: $0 [OPTIONS] [FILE]...
18775 -h, --help print this help, then exit
18776 -V, --version print version number, then exit
18777 -q, --quiet do not print progress messages
18778 -d, --debug don't remove temporary files
18779 --recheck update $as_me by reconfiguring in the same conditions
18780 --file=FILE[:TEMPLATE]
18781 instantiate the configuration file FILE
18782 --header=FILE[:TEMPLATE]
18783 instantiate the configuration header FILE
18785 Configuration files:
18788 Configuration headers:
18791 Configuration commands:
18794 Report bugs to <bug-autoconf@gnu.org>."
18797 cat >>$CONFIG_STATUS <<_ACEOF
18800 configured by $0, generated by GNU Autoconf 2.57,
18801 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18803 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18804 Free Software Foundation, Inc.
18805 This config.status script is free software; the Free Software Foundation
18806 gives unlimited permission to copy, distribute and modify it."
18811 cat >>$CONFIG_STATUS <<\_ACEOF
18812 # If no file are specified by the user, then we need to provide default
18813 # value. By we need to know if files were specified by the user.
18819 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18820 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18828 *) # This is not an option, so the user has probably given explicit
18831 ac_need_defaults=false;;
18835 # Handling of the options.
18837 cat >>$CONFIG_STATUS <<\_ACEOF
18838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18840 --version | --vers* | -V )
18841 echo "$ac_cs_version"; exit 0 ;;
18843 # Conflict between --help and --header
18844 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18845 Try \`$0 --help' for more information." >&5
18846 echo "$as_me: error: ambiguous option: $1
18847 Try \`$0 --help' for more information." >&2;}
18848 { (exit 1); exit 1; }; };;
18849 --help | --hel | -h )
18850 echo "$ac_cs_usage"; exit 0 ;;
18851 --debug | --d* | -d )
18853 --file | --fil | --fi | --f )
18855 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18856 ac_need_defaults=false;;
18857 --header | --heade | --head | --hea )
18859 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18860 ac_need_defaults=false;;
18861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18862 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18865 # This is an error.
18866 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18867 Try \`$0 --help' for more information." >&5
18868 echo "$as_me: error: unrecognized option: $1
18869 Try \`$0 --help' for more information." >&2;}
18870 { (exit 1); exit 1; }; } ;;
18872 *) ac_config_targets="$ac_config_targets $1" ;;
18878 ac_configure_extra_args=
18880 if $ac_cs_silent; then
18882 ac_configure_extra_args="$ac_configure_extra_args --silent"
18886 cat >>$CONFIG_STATUS <<_ACEOF
18887 if \$ac_cs_recheck; then
18888 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18889 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18898 cat >>$CONFIG_STATUS <<\_ACEOF
18899 for ac_config_target in $ac_config_targets
18901 case "$ac_config_target" in
18902 # Handling of arguments.
18903 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18904 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18905 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18906 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18907 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18908 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18909 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18910 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18911 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18912 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18913 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18914 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18915 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18916 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18917 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18918 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18919 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18920 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18921 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18922 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18923 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18924 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18925 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18926 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18927 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18928 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18929 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18930 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18931 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18932 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18933 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18934 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18935 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18936 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18937 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18938 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18939 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18940 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18941 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18942 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18943 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18944 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18945 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18946 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18947 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18948 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18949 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18950 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18951 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18952 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18953 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18954 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18955 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18956 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18957 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18958 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18959 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18960 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18961 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18962 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18963 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18964 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18965 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18966 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18967 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18968 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18969 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18970 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18971 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18972 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18973 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18974 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18975 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18976 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18977 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18978 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18979 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18980 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18981 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18982 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18983 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18984 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18985 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18986 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18987 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18988 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18989 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18990 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18991 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18992 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18995 { (exit 1); exit 1; }; };;
18999 # If the user did not use the arguments to specify the items to instantiate,
19000 # then the envvar interface is used. Set only those that are not.
19001 # We use the long form for the default assignment because of an extremely
19002 # bizarre bug on SunOS 4.1.3.
19003 if $ac_need_defaults; then
19004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19009 # Have a temporary directory for convenience. Make it in the build tree
19010 # simply because there is no reason to put it here, and in addition,
19011 # creating and moving files from /tmp can sometimes cause problems.
19012 # Create a temporary directory, and hook for its removal unless debugging.
19015 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19016 trap '{ (exit 1); exit 1; }' 1 2 13 15
19019 # Create a (secure) tmp directory for tmp files.
19022 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19023 test -n "$tmp" && test -d "$tmp"
19026 tmp=./confstat$$-$RANDOM
19027 (umask 077 && mkdir $tmp)
19030 echo "$me: cannot create a temporary directory in ." >&2
19031 { (exit 1); exit 1; }
19036 cat >>$CONFIG_STATUS <<_ACEOF
19039 # CONFIG_FILES section.
19042 # No need to generate the scripts if there are no CONFIG_FILES.
19043 # This happens for instance when ./config.status config.h
19044 if test -n "\$CONFIG_FILES"; then
19045 # Protect against being on the right side of a sed subst in config.status.
19046 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19047 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19048 s,@SHELL@,$SHELL,;t t
19049 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19050 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19051 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19052 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19053 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19054 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19055 s,@exec_prefix@,$exec_prefix,;t t
19056 s,@prefix@,$prefix,;t t
19057 s,@program_transform_name@,$program_transform_name,;t t
19058 s,@bindir@,$bindir,;t t
19059 s,@sbindir@,$sbindir,;t t
19060 s,@libexecdir@,$libexecdir,;t t
19061 s,@datadir@,$datadir,;t t
19062 s,@sysconfdir@,$sysconfdir,;t t
19063 s,@sharedstatedir@,$sharedstatedir,;t t
19064 s,@localstatedir@,$localstatedir,;t t
19065 s,@libdir@,$libdir,;t t
19066 s,@includedir@,$includedir,;t t
19067 s,@oldincludedir@,$oldincludedir,;t t
19068 s,@infodir@,$infodir,;t t
19069 s,@mandir@,$mandir,;t t
19070 s,@build_alias@,$build_alias,;t t
19071 s,@host_alias@,$host_alias,;t t
19072 s,@target_alias@,$target_alias,;t t
19073 s,@DEFS@,$DEFS,;t t
19074 s,@ECHO_C@,$ECHO_C,;t t
19075 s,@ECHO_N@,$ECHO_N,;t t
19076 s,@ECHO_T@,$ECHO_T,;t t
19077 s,@LIBS@,$LIBS,;t t
19078 s,@BUILD_DIR@,$BUILD_DIR,;t t
19079 s,@TRUEPRG@,$TRUEPRG,;t t
19080 s,@FALSEPRG@,$FALSEPRG,;t t
19081 s,@VERSION@,$VERSION,;t t
19082 s,@DATE@,$DATE,;t t
19083 s,@LSMDATE@,$LSMDATE,;t t
19085 s,@CFLAGS@,$CFLAGS,;t t
19086 s,@LDFLAGS@,$LDFLAGS,;t t
19087 s,@CPPFLAGS@,$CPPFLAGS,;t t
19088 s,@ac_ct_CC@,$ac_ct_CC,;t t
19089 s,@EXEEXT@,$EXEEXT,;t t
19090 s,@OBJEXT@,$OBJEXT,;t t
19092 s,@CXXFLAGS@,$CXXFLAGS,;t t
19093 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19095 s,@EGREP@,$EGREP,;t t
19096 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19097 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19098 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19099 s,@RANLIB@,$RANLIB,;t t
19100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19106 s,@ECHO@,$ECHO,;t t
19110 s,@OPENSSL@,$OPENSSL,;t t
19112 s,@PKGCONFIG@,$PKGCONFIG,;t t
19113 s,@WXCONFIG@,$WXCONFIG,;t t
19114 s,@ARFLAGS@,$ARFLAGS,;t t
19115 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19116 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19117 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19118 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19119 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19120 s,@build@,$build,;t t
19121 s,@build_cpu@,$build_cpu,;t t
19122 s,@build_vendor@,$build_vendor,;t t
19123 s,@build_os@,$build_os,;t t
19124 s,@host@,$host,;t t
19125 s,@host_cpu@,$host_cpu,;t t
19126 s,@host_vendor@,$host_vendor,;t t
19127 s,@host_os@,$host_os,;t t
19128 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19129 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19130 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19131 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19132 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19133 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19134 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19135 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19136 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19137 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19138 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19139 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19140 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19141 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19142 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19143 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19144 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19145 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19146 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19147 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19148 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19149 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19150 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19151 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19152 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19153 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19154 s,@MSGFMT@,$MSGFMT,;t t
19155 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19156 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19157 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19158 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19159 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19160 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19161 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19162 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19163 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19164 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19165 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19166 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19167 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19168 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19169 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19170 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19171 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19172 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19173 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19174 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19175 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19176 s,@GNOME_DIR@,$GNOME_DIR,;t t
19177 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19178 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19179 s,@WX_DIR@,$WX_DIR,;t t
19180 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19181 s,@STATIC_FD@,$STATIC_FD,;t t
19182 s,@STATIC_SD@,$STATIC_SD,;t t
19183 s,@STATIC_DIR@,$STATIC_DIR,;t t
19184 s,@STATIC_CONS@,$STATIC_CONS,;t t
19185 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19186 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19187 s,@ALL_DIRS@,$ALL_DIRS,;t t
19188 s,@CONS_INC@,$CONS_INC,;t t
19189 s,@CONS_OBJ@,$CONS_OBJ,;t t
19190 s,@CONS_SRC@,$CONS_SRC,;t t
19191 s,@CONS_LIBS@,$CONS_LIBS,;t t
19192 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19193 s,@READLINE_SRC@,$READLINE_SRC,;t t
19194 s,@working_dir@,$working_dir,;t t
19195 s,@scriptdir@,$scriptdir,;t t
19196 s,@dump_email@,$dump_email,;t t
19197 s,@job_email@,$job_email,;t t
19198 s,@smtp_host@,$smtp_host,;t t
19199 s,@piddir@,$piddir,;t t
19200 s,@subsysdir@,$subsysdir,;t t
19201 s,@baseport@,$baseport,;t t
19202 s,@dir_port@,$dir_port,;t t
19203 s,@fd_port@,$fd_port,;t t
19204 s,@sd_port@,$sd_port,;t t
19205 s,@dir_password@,$dir_password,;t t
19206 s,@fd_password@,$fd_password,;t t
19207 s,@sd_password@,$sd_password,;t t
19208 s,@dir_user@,$dir_user,;t t
19209 s,@dir_group@,$dir_group,;t t
19210 s,@sd_user@,$sd_user,;t t
19211 s,@sd_group@,$sd_group,;t t
19212 s,@fd_user@,$fd_user,;t t
19213 s,@fd_group@,$fd_group,;t t
19214 s,@SBINPERM@,$SBINPERM,;t t
19215 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19216 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19217 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19218 s,@cats@,$cats,;t t
19219 s,@DB_NAME@,$DB_NAME,;t t
19220 s,@GETCONF@,$GETCONF,;t t
19221 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19222 s,@X_CFLAGS@,$X_CFLAGS,;t t
19223 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19224 s,@X_LIBS@,$X_LIBS,;t t
19225 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19226 s,@LIBOBJS@,$LIBOBJS,;t t
19227 s,@ALLOCA@,$ALLOCA,;t t
19228 s,@FDLIBS@,$FDLIBS,;t t
19229 s,@DEBUG@,$DEBUG,;t t
19230 s,@DINCLUDE@,$DINCLUDE,;t t
19231 s,@DLIB@,$DLIB,;t t
19232 s,@DB_LIBS@,$DB_LIBS,;t t
19233 s,@WCFLAGS@,$WCFLAGS,;t t
19234 s,@WLDFLAGS@,$WLDFLAGS,;t t
19235 s,@OBJLIST@,$OBJLIST,;t t
19236 s,@hostname@,$hostname,;t t
19237 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19238 s,@PSCMD@,$PSCMD,;t t
19239 s,@WIN32@,$WIN32,;t t
19240 s,@MACOSX@,$MACOSX,;t t
19241 s,@DISTNAME@,$DISTNAME,;t t
19242 s,@DISTVER@,$DISTVER,;t t
19243 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19244 /@MCOMMON@/r $MCOMMON
19250 cat >>$CONFIG_STATUS <<\_ACEOF
19251 # Split the substitutions into bite-sized pieces for seds with
19252 # small command number limits, like on Digital OSF/1 and HP-UX.
19253 ac_max_sed_lines=48
19254 ac_sed_frag=1 # Number of current file.
19255 ac_beg=1 # First line for current file.
19256 ac_end=$ac_max_sed_lines # Line after last line for current file.
19259 while $ac_more_lines; do
19260 if test $ac_beg -gt 1; then
19261 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19263 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19265 if test ! -s $tmp/subs.frag; then
19266 ac_more_lines=false
19268 # The purpose of the label and of the branching condition is to
19269 # speed up the sed processing (if there are no `@' at all, there
19270 # is no need to browse any of the substitutions).
19271 # These are the two extra sed commands mentioned above.
19273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19274 if test -z "$ac_sed_cmds"; then
19275 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19277 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19279 ac_sed_frag=`expr $ac_sed_frag + 1`
19281 ac_end=`expr $ac_end + $ac_max_sed_lines`
19284 if test -z "$ac_sed_cmds"; then
19287 fi # test -n "$CONFIG_FILES"
19290 cat >>$CONFIG_STATUS <<\_ACEOF
19291 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19294 - | *:- | *:-:* ) # input from stdin
19296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19300 * ) ac_file_in=$ac_file.in ;;
19303 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19306 X"$ac_file" : 'X\(//\)[^/]' \| \
19307 X"$ac_file" : 'X\(//\)$' \| \
19308 X"$ac_file" : 'X\(/\)' \| \
19309 . : '\(.\)' 2>/dev/null ||
19311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19313 /^X\(\/\/\)$/{ s//\1/; q; }
19314 /^X\(\/\).*/{ s//\1/; q; }
19316 { if $as_mkdir_p; then
19321 while test ! -d "$as_dir"; do
19322 as_dirs="$as_dir $as_dirs"
19323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19325 X"$as_dir" : 'X\(//\)[^/]' \| \
19326 X"$as_dir" : 'X\(//\)$' \| \
19327 X"$as_dir" : 'X\(/\)' \| \
19328 . : '\(.\)' 2>/dev/null ||
19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19332 /^X\(\/\/\)$/{ s//\1/; q; }
19333 /^X\(\/\).*/{ s//\1/; q; }
19336 test ! -n "$as_dirs" || mkdir $as_dirs
19337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19339 { (exit 1); exit 1; }; }; }
19343 if test "$ac_dir" != .; then
19344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19345 # A "../" for each directory in $ac_dir_suffix.
19346 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19348 ac_dir_suffix= ac_top_builddir=
19352 .) # No --srcdir option. We are building in place.
19354 if test -z "$ac_top_builddir"; then
19357 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19359 [\\/]* | ?:[\\/]* ) # Absolute path.
19360 ac_srcdir=$srcdir$ac_dir_suffix;
19361 ac_top_srcdir=$srcdir ;;
19362 *) # Relative path.
19363 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19364 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19366 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19368 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19369 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19370 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19371 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19376 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19379 if test x"$ac_file" != x-; then
19380 { echo "$as_me:$LINENO: creating $ac_file" >&5
19381 echo "$as_me: creating $ac_file" >&6;}
19384 # Let's still pretend it is `configure' which instantiates (i.e., don't
19385 # use $as_me), people would be surprised to read:
19386 # /* config.h. Generated by config.status. */
19387 if test x"$ac_file" = x-; then
19390 configure_input="$ac_file. "
19392 configure_input=$configure_input"Generated from `echo $ac_file_in |
19393 sed 's,.*/,,'` by configure."
19395 # First look for the input files in the build tree, otherwise in the
19397 ac_file_inputs=`IFS=:
19398 for f in $ac_file_in; do
19400 -) echo $tmp/stdin ;;
19402 # Absolute (can't be DOS-style, as IFS=:)
19403 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19404 echo "$as_me: error: cannot find input file: $f" >&2;}
19405 { (exit 1); exit 1; }; }
19408 if test -f "$f"; then
19411 elif test -f "$srcdir/$f"; then
19416 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19417 echo "$as_me: error: cannot find input file: $f" >&2;}
19418 { (exit 1); exit 1; }; }
19421 done` || { (exit 1); exit 1; }
19423 cat >>$CONFIG_STATUS <<_ACEOF
19427 cat >>$CONFIG_STATUS <<\_ACEOF
19429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19430 s,@configure_input@,$configure_input,;t t
19431 s,@srcdir@,$ac_srcdir,;t t
19432 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19433 s,@top_srcdir@,$ac_top_srcdir,;t t
19434 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19435 s,@builddir@,$ac_builddir,;t t
19436 s,@abs_builddir@,$ac_abs_builddir,;t t
19437 s,@top_builddir@,$ac_top_builddir,;t t
19438 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19439 s,@INSTALL@,$ac_INSTALL,;t t
19440 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19442 if test x"$ac_file" != x-; then
19443 mv $tmp/out $ac_file
19451 cat >>$CONFIG_STATUS <<\_ACEOF
19454 # CONFIG_HEADER section.
19457 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19458 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19460 # ac_d sets the value in "#define NAME VALUE" lines.
19461 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19462 ac_dB='[ ].*$,\1#\2'
19465 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19466 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19467 ac_uB='$,\1#\2define\3'
19471 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19474 - | *:- | *:-:* ) # input from stdin
19476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19480 * ) ac_file_in=$ac_file.in ;;
19483 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19484 echo "$as_me: creating $ac_file" >&6;}
19486 # First look for the input files in the build tree, otherwise in the
19488 ac_file_inputs=`IFS=:
19489 for f in $ac_file_in; do
19491 -) echo $tmp/stdin ;;
19493 # Absolute (can't be DOS-style, as IFS=:)
19494 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19495 echo "$as_me: error: cannot find input file: $f" >&2;}
19496 { (exit 1); exit 1; }; }
19499 if test -f "$f"; then
19502 elif test -f "$srcdir/$f"; then
19507 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19508 echo "$as_me: error: cannot find input file: $f" >&2;}
19509 { (exit 1); exit 1; }; }
19512 done` || { (exit 1); exit 1; }
19513 # Remove the trailing spaces.
19514 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19518 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19519 # `conftest.undefs', that substitutes the proper values into
19520 # config.h.in to produce config.h. The first handles `#define'
19521 # templates, and the second `#undef' templates.
19522 # And first: Protect against being on the right side of a sed subst in
19523 # config.status. Protect against being in an unquoted here document
19524 # in config.status.
19525 rm -f conftest.defines conftest.undefs
19526 # Using a here document instead of a string reduces the quoting nightmare.
19527 # Putting comments in sed scripts is not portable.
19529 # `end' is used to avoid that the second main sed command (meant for
19530 # 0-ary CPP macros) applies to n-ary macro definitions.
19531 # See the Autoconf documentation for `clear'.
19532 cat >confdef2sed.sed <<\_ACEOF
19537 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19539 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19542 # If some macros were called several times there might be several times
19543 # the same #defines, which is useless. Nevertheless, we may not want to
19544 # sort them, since we want the *last* AC-DEFINE to be honored.
19545 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19546 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19547 rm -f confdef2sed.sed
19549 # This sed command replaces #undef with comments. This is necessary, for
19550 # example, in the case of _POSIX_SOURCE, which is predefined and required
19551 # on some systems where configure will not decide to define it.
19552 cat >>conftest.undefs <<\_ACEOF
19553 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19556 # Break up conftest.defines because some shells have a limit on the size
19557 # of here documents, and old seds have small limits too (100 cmds).
19558 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19559 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19560 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19561 echo ' :' >>$CONFIG_STATUS
19562 rm -f conftest.tail
19563 while grep . conftest.defines >/dev/null
19565 # Write a limited-size here document to $tmp/defines.sed.
19566 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19567 # Speed up: don't consider the non `#define' lines.
19568 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19569 # Work around the forget-to-reset-the-flag bug.
19570 echo 't clr' >>$CONFIG_STATUS
19571 echo ': clr' >>$CONFIG_STATUS
19572 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19574 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19576 mv $tmp/out $tmp/in
19578 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19579 rm -f conftest.defines
19580 mv conftest.tail conftest.defines
19582 rm -f conftest.defines
19583 echo ' fi # grep' >>$CONFIG_STATUS
19584 echo >>$CONFIG_STATUS
19586 # Break up conftest.undefs because some shells have a limit on the size
19587 # of here documents, and old seds have small limits too (100 cmds).
19588 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19589 rm -f conftest.tail
19590 while grep . conftest.undefs >/dev/null
19592 # Write a limited-size here document to $tmp/undefs.sed.
19593 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19594 # Speed up: don't consider the non `#undef'
19595 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19596 # Work around the forget-to-reset-the-flag bug.
19597 echo 't clr' >>$CONFIG_STATUS
19598 echo ': clr' >>$CONFIG_STATUS
19599 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19601 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19603 mv $tmp/out $tmp/in
19605 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19606 rm -f conftest.undefs
19607 mv conftest.tail conftest.undefs
19609 rm -f conftest.undefs
19611 cat >>$CONFIG_STATUS <<\_ACEOF
19612 # Let's still pretend it is `configure' which instantiates (i.e., don't
19613 # use $as_me), people would be surprised to read:
19614 # /* config.h. Generated by config.status. */
19615 if test x"$ac_file" = x-; then
19616 echo "/* Generated by configure. */" >$tmp/config.h
19618 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19620 cat $tmp/in >>$tmp/config.h
19622 if test x"$ac_file" != x-; then
19623 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19625 echo "$as_me: $ac_file is unchanged" >&6;}
19627 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19629 X"$ac_file" : 'X\(//\)[^/]' \| \
19630 X"$ac_file" : 'X\(//\)$' \| \
19631 X"$ac_file" : 'X\(/\)' \| \
19632 . : '\(.\)' 2>/dev/null ||
19634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19636 /^X\(\/\/\)$/{ s//\1/; q; }
19637 /^X\(\/\).*/{ s//\1/; q; }
19639 { if $as_mkdir_p; then
19644 while test ! -d "$as_dir"; do
19645 as_dirs="$as_dir $as_dirs"
19646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19648 X"$as_dir" : 'X\(//\)[^/]' \| \
19649 X"$as_dir" : 'X\(//\)$' \| \
19650 X"$as_dir" : 'X\(/\)' \| \
19651 . : '\(.\)' 2>/dev/null ||
19653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19655 /^X\(\/\/\)$/{ s//\1/; q; }
19656 /^X\(\/\).*/{ s//\1/; q; }
19659 test ! -n "$as_dirs" || mkdir $as_dirs
19660 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19662 { (exit 1); exit 1; }; }; }
19665 mv $tmp/config.h $ac_file
19669 rm -f $tmp/config.h
19673 cat >>$CONFIG_STATUS <<\_ACEOF
19676 # CONFIG_COMMANDS section.
19678 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19681 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19682 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19683 X"$ac_dest" : 'X\(//\)[^/]' \| \
19684 X"$ac_dest" : 'X\(//\)$' \| \
19685 X"$ac_dest" : 'X\(/\)' \| \
19686 . : '\(.\)' 2>/dev/null ||
19688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19690 /^X\(\/\/\)$/{ s//\1/; q; }
19691 /^X\(\/\).*/{ s//\1/; q; }
19695 if test "$ac_dir" != .; then
19696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19697 # A "../" for each directory in $ac_dir_suffix.
19698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19700 ac_dir_suffix= ac_top_builddir=
19704 .) # No --srcdir option. We are building in place.
19706 if test -z "$ac_top_builddir"; then
19709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19711 [\\/]* | ?:[\\/]* ) # Absolute path.
19712 ac_srcdir=$srcdir$ac_dir_suffix;
19713 ac_top_srcdir=$srcdir ;;
19714 *) # Relative path.
19715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19718 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19720 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19721 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19722 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19723 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19726 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19727 echo "$as_me: executing $ac_dest commands" >&6;}
19729 default ) (echo "Doing make of dependencies"; make depend;)
19735 cat >>$CONFIG_STATUS <<\_ACEOF
19737 { (exit 0); exit 0; }
19739 chmod +x $CONFIG_STATUS
19740 ac_clean_files=$ac_clean_files_save
19743 # configure is writing to config.log, and then calls config.status.
19744 # config.status does its own redirection, appending to config.log.
19745 # Unfortunately, on DOS this fails, as config.log is still kept open
19746 # by configure, so config.status won't be able to write to it; its
19747 # output is simply discarded. So we exec the FD to /dev/null,
19748 # effectively closing config.log, so it can be properly (re)opened and
19749 # appended to by config.status. When coming back to configure, we
19750 # need to make the FD available again.
19751 if test "$no_create" != yes; then
19753 ac_config_status_args=
19754 test "$silent" = yes &&
19755 ac_config_status_args="$ac_config_status_args --quiet"
19757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19760 # would make configure fail if this is the last instruction.
19761 $ac_cs_success || { (exit 1); exit 1; }
19766 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19767 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19772 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19773 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19775 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19776 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19778 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19779 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19781 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19782 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19784 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19785 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19787 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19788 chmod 755 $c/sqlite
19791 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19792 largefile_support="yes"
19796 # A whole lot of hand springs to get the compiler version.
19797 # This is because gcc changed the output in version 3.0
19799 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19800 if test "x${CCVERSION}" = "x" ; then
19801 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19803 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19804 if test x"${CXXVERSION}" = x ; then
19805 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19808 if test "x${subsysdir}" = "x${sbindir}" ; then
19811 echo "You have set --sbindir and --with-subsys-dir"
19812 echo " both equal to: ${subsysdir} "
19813 echo " This is not permitted. Please reconfigure."
19814 echo "Aborting configuration ..."
19821 Configuration on `date`:
19823 Host: $host -- ${DISTNAME} ${DISTVER}
19824 Bacula version: ${VERSION} (${DATE})
19825 Source code location: ${srcdir}
19826 Install binaries: ${sbindir}
19827 Install config files: ${sysconfdir}
19828 Scripts directory: ${scriptdir}
19829 Working directory: ${working_dir}
19830 PID directory: ${piddir}
19831 Subsys directory: ${subsysdir}
19832 C Compiler: ${CC} ${CCVERSION}
19833 C++ Compiler: ${CXX} ${CXXVERSION}
19834 Compiler flags: ${WCFLAGS} ${CFLAGS}
19835 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19837 Statically Linked Tools: ${support_static_tools}
19838 Statically Linked FD: ${support_static_fd}
19839 Statically Linked SD: ${support_static_sd}
19840 Statically Linked DIR: ${support_static_dir}
19841 Statically Linked CONS: ${support_static_cons}
19842 Database type: ${db_name}
19843 Database lib: ${DB_LIBS}
19845 Job Output Email: ${job_email}
19846 Traceback Email: ${dump_email}
19847 SMTP Host Address: ${smtp_host}
19849 Director Port: ${dir_port}
19850 File daemon Port: ${fd_port}
19851 Storage daemon Port: ${sd_port}
19853 Director User: ${dir_user}
19854 Director Group: ${dir_group}
19855 Storage Daemon User: ${sd_user}
19856 Storage DaemonGroup: ${sd_group}
19857 File Daemon User: ${fd_user}
19858 File Daemon Group: ${fd_group}
19860 SQL binaries Directory ${SQL_BINDIR}
19862 Large file support: $largefile_support
19863 Bacula conio support: ${got_conio} ${CONS_LIBS}
19864 readline support: ${got_readline} ${PRTREADLINE_SRC}
19865 TCP Wrappers support: ${TCPW_MSG}
19866 ZLIB support: ${have_zlib}
19867 enable-smartalloc: ${support_smartalloc}
19868 enable-gnome: ${support_gnome} ${gnome_version}
19869 enable-wx-console: ${support_wx_console}
19870 client-only: ${build_client_only}
19871 ACL support: ${have_acl}
19878 # cweb support: ${got_cweb} ${CWEB_SRC}
19879 # gmp support: ${got_gmp} ${GMP_SRC}