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/whitebox-release
4183 elif test -f /etc/redhat-release
4186 elif test -f /etc/gentoo-release
4189 elif test -f /etc/debian_version
4192 elif test -f /etc/slackware-version
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4198 elif test -f /etc/engarde-version
4201 elif test "$CYGWIN" = yes
4204 cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4211 echo "$as_me:$LINENO: result: \" \"" >&5
4212 echo "${ECHO_T}\" \"" >&6
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4221 INSIDE_GNOME_COMMON_TRUE=
4222 INSIDE_GNOME_COMMON_FALSE='#'
4224 INSIDE_GNOME_COMMON_TRUE='#'
4225 INSIDE_GNOME_COMMON_FALSE=
4228 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4230 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4233 # ------------------------------------------------------------------
4234 # If the user has not set --prefix, we set our default to nothing.
4235 # In this case, if the user has not set --sysconfdir, we set it
4236 # to the package default of /etc/bacula. If either --prefix or
4237 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241 sysconfdir=/etc/bacula
4245 sysconfdir=`eval echo ${sysconfdir}`
4247 # -------------------------------------------------------------------------
4248 # If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251 exec_prefix=${prefix}
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258 sbindir=${exec_prefix}/sbin
4260 sbindir=`eval echo ${sbindir}`
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 # language is separated by a space.
4265 # ------------------------------------------------------------------
4268 for ac_prog in msgfmt
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 MSGFMT=$ac_cv_path_MSGFMT
4301 if test -n "$MSGFMT"; then
4302 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 test -n "$MSGFMT" && break
4311 test -n "$MSGFMT" || MSGFMT="no"
4313 if test "$MSGFMT" = "no"
4315 echo 'msgfmt program not found, disabling NLS !'
4317 USE_INCLUDED_LIBINTL=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4330 support_wx_console=no
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348 enableval="$enable_gnome"
4349 if test x$enableval = xyes; then
4355 if test x$support_gnome = xyes; then
4356 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4358 if test $pkg = 0; then
4359 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4367 GNOME_DIR=src/gnome2-console
4368 gnome_version="Version 2.x"
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383 withval="$with_gnome_includes"
4385 CFLAGS="$CFLAGS -I$withval"
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392 withval="$with_gnome_libs"
4394 LDFLAGS="$LDFLAGS -L$withval"
4395 gnome_prefix=$withval
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402 withval="$with_gnome"
4403 if test x$withval = xyes; then
4407 if test "x$withval" = xno; then
4411 LDFLAGS="$LDFLAGS -L$withval/lib"
4412 CFLAGS="$CFLAGS -I$withval/include"
4413 gnome_prefix=$withval/lib
4420 if test "x$want_gnome" = xyes; then
4422 # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 case $GNOME_CONFIG in
4431 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4454 if test -n "$GNOME_CONFIG"; then
4455 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4462 if test "$GNOME_CONFIG" = "no"; then
4463 no_gnome_config="yes"
4465 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4472 # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 case $ORBIT_CONFIG in
4481 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4504 if test -n "$ORBIT_CONFIG"; then
4505 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4544 if test -n "$ORBIT_IDL"; then
4545 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559 gnome_cv_orbit_found=no
4561 gnome_cv_orbit_found=yes
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4569 if test x$gnome_cv_orbit_found = xyes; then
4571 HAVE_ORBIT_FALSE='#'
4576 if test x$gnome_cv_orbit_found = xyes; then
4578 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4583 if test xfail = xfailure; then
4584 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586 { (exit 1); exit 1; }; }
4590 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 gnome_cv_gnorba_found=no
4597 if test x$gnome_cv_orbit_found = xyes; then
4598 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600 if test -n "$GNORBA_LIBS"; then
4601 gnome_cv_gnorba_found=yes
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4610 if test x$gnome_cv_gnorba_found = xyes; then
4612 HAVE_GNORBA_FALSE='#'
4614 HAVE_GNORBA_TRUE='#'
4617 if test x$gnome_cv_orbit_found = xyes; then
4619 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4624 if test xfail = xfailure; then
4625 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627 { (exit 1); exit 1; }; }
4631 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4640 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642 no_gnome_config="yes"
4646 if test x$exec_prefix = xNONE; then
4647 if test x$prefix = xNONE; then
4648 gnome_prefix=$ac_default_prefix/lib
4650 gnome_prefix=$prefix/lib
4653 gnome_prefix=`eval echo \`echo $libdir\``
4656 if test "$no_gnome_config" = "yes"; then
4657 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659 if test -f $gnome_prefix/gnomeConf.sh; then
4660 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662 echo "loading gnome configuration from" \
4663 "$gnome_prefix/gnomeConf.sh"
4664 . $gnome_prefix/gnomeConf.sh
4667 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669 if test xfail = xfail; then
4670 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672 { (exit 1); exit 1; }; }
4681 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4686 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4691 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4696 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4700 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4703 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4709 GNOME_DIR=src/gnome-console
4710 gnome_version="Version 1.4"
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721 enableval="$enable_wx_console"
4722 if test x$enableval = xyes; then
4723 support_wx_console=yes
4728 if test x$support_wx_console = xyes; then
4729 abc=`$WXCONFIG --cppflags`
4731 if test $pkg = 0; then
4732 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4736 WX_DIR=src/wx-console
4739 echo "wx-config program not found. wx-console disabled."
4741 support_wx_console=no
4748 # -------------------------------------------
4749 # smartalloc (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4752 if test "${enable_smartalloc+set}" = set; then
4753 enableval="$enable_smartalloc"
4754 if test x$enableval = xno; then
4755 support_smartalloc=no
4759 if test x$support_smartalloc = xyes; then
4760 cat >>confdefs.h <<\_ACEOF
4761 #define SMARTALLOC 1
4766 # -------------------------------------------
4767 # static-tools (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-static-tools or --disable-static-tools was given.
4770 if test "${enable_static_tools+set}" = set; then
4771 enableval="$enable_static_tools"
4772 if test x$enableval = xyes; then
4773 support_static_tools=yes
4778 if test x$support_static_tools = xyes; then
4779 TTOOL_LDFLAGS="-static"
4783 # -------------------------------------------
4784 # static-fd (default off)
4785 # -------------------------------------------
4786 # Check whether --enable-static-fd or --disable-static-fd was given.
4787 if test "${enable_static_fd+set}" = set; then
4788 enableval="$enable_static_fd"
4789 if test x$enableval = xyes; then
4790 support_static_fd=yes
4795 if test x$support_static_fd = xyes; then
4796 STATIC_FD="static-bacula-fd"
4800 # -------------------------------------------
4801 # static-sd (default off)
4802 # -------------------------------------------
4803 # Check whether --enable-static-sd or --disable-static-sd was given.
4804 if test "${enable_static_sd+set}" = set; then
4805 enableval="$enable_static_sd"
4806 if test x$enableval = xyes; then
4807 support_static_sd=yes
4812 if test x$support_static_sd = xyes; then
4813 STATIC_SD="static-bacula-sd"
4817 # -------------------------------------------
4818 # static-dir (default off)
4819 # -------------------------------------------
4820 # Check whether --enable-static-dir or --disable-static-dir was given.
4821 if test "${enable_static_dir+set}" = set; then
4822 enableval="$enable_static_dir"
4823 if test x$enableval = xyes; then
4824 support_static_dir=yes
4829 if test x$support_static_dir = xyes; then
4830 STATIC_DIR="static-bacula-dir"
4834 # -------------------------------------------
4835 # static-cons (default off)
4836 # -------------------------------------------
4837 # Check whether --enable-static-cons or --disable-static-cons was given.
4838 if test "${enable_static_cons+set}" = set; then
4839 enableval="$enable_static_cons"
4840 if test x$enableval = xyes; then
4841 support_static_cons=yes
4848 if test x$support_static_cons = xyes; then
4849 STATIC_CONS="static-bconsole"
4850 STATIC_GNOME_CONS="static-gnome-console"
4851 STATIC_WX_CONS="static-wx-console"
4857 # -------------------------------------------
4858 # client_only (default off)
4859 # -------------------------------------------
4860 # Check whether --enable-client-only or --disable-client-only was given.
4861 if test "${enable_client_only+set}" = set; then
4862 enableval="$enable_client_only"
4863 if test x$enableval = xyes; then
4864 build_client_only=yes
4869 if test x$build_client_only = xno; then
4876 # ---------------------------------------------------
4877 # Check for conio (Bacula readline substitute)(
4878 # ---------------------------------------------------
4879 # this allows you to turn it completely off
4880 # Check whether --enable-conio or --disable-conio was given.
4881 if test "${enable_conio+set}" = set; then
4882 enableval="$enable_conio"
4883 if test x$enableval = xno; then
4889 if test x$support_conio = xyes; then
4890 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4892 if test "${ac_cv_header_stdc+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_header_stdc=yes
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_cv_header_stdc=no
4934 rm -f conftest.$ac_objext conftest.$ac_ext
4936 if test $ac_cv_header_stdc = yes; then
4937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938 cat >conftest.$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949 $EGREP "memchr" >/dev/null 2>&1; then
4952 ac_cv_header_stdc=no
4958 if test $ac_cv_header_stdc = yes; then
4959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "free" >/dev/null 2>&1; then
4974 ac_cv_header_stdc=no
4980 if test $ac_cv_header_stdc = yes; then
4981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982 if test "$cross_compiling" = yes; then
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 #if ((' ' & 0x0FF) == 0x020)
4994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4997 # define ISLOWER(c) \
4998 (('a' <= (c) && (c) <= 'i') \
4999 || ('j' <= (c) && (c) <= 'r') \
5000 || ('s' <= (c) && (c) <= 'z'))
5001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5009 for (i = 0; i < 256; i++)
5010 if (XOR (islower (i), ISLOWER (i))
5011 || toupper (i) != TOUPPER (i))
5016 rm -f conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5029 echo "$as_me: program exited with status $ac_status" >&5
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_cv_header_stdc=no
5036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5042 if test $ac_cv_header_stdc = yes; then
5044 cat >>confdefs.h <<\_ACEOF
5045 #define STDC_HEADERS 1
5050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5061 inttypes.h stdint.h unistd.h
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 cat >conftest.$ac_ext <<_ACEOF
5070 #line $LINENO "configure"
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 #include <$ac_header>
5080 rm -f conftest.$ac_objext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 eval "$as_ac_Header=yes"
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 eval "$as_ac_Header=no"
5099 rm -f conftest.$ac_objext conftest.$ac_ext
5101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104 cat >>confdefs.h <<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5113 if test "${ac_cv_header_termcap_h+set}" = set; then
5114 echo "$as_me:$LINENO: checking for termcap.h" >&5
5115 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5116 if test "${ac_cv_header_termcap_h+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5122 # Is the header compilable?
5123 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5124 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5133 #include <termcap.h>
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_header_compiler=yes
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_header_compiler=no
5154 rm -f conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 echo "${ECHO_T}$ac_header_compiler" >&6
5158 # Is the header present?
5159 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5160 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <termcap.h>
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5173 grep -v '^ *+' conftest.er1 >conftest.err
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null; then
5178 if test -s conftest.err; then
5179 ac_cpp_err=$ac_c_preproc_warn_flag
5186 if test -z "$ac_cpp_err"; then
5187 ac_header_preproc=yes
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_header_preproc=no
5194 rm -f conftest.err conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 echo "${ECHO_T}$ac_header_preproc" >&6
5198 # So? What about this header?
5199 case $ac_header_compiler:$ac_header_preproc in
5201 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5202 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5207 ## ------------------------------------ ##
5208 ## Report this to bug-autoconf@gnu.org. ##
5209 ## ------------------------------------ ##
5212 sed "s/^/$as_me: WARNING: /" >&2
5215 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5216 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5218 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5220 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5223 ## ------------------------------------ ##
5224 ## Report this to bug-autoconf@gnu.org. ##
5225 ## ------------------------------------ ##
5228 sed "s/^/$as_me: WARNING: /" >&2
5231 echo "$as_me:$LINENO: checking for termcap.h" >&5
5232 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5233 if test "${ac_cv_header_termcap_h+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_cv_header_termcap_h=$ac_header_preproc
5238 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5239 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5242 if test $ac_cv_header_termcap_h = yes; then
5243 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5244 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5245 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-ltermcap $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5258 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_lib_termcap_tgetent=yes
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ac_cv_lib_termcap_tgetent=no
5292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5295 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5296 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5297 if test $ac_cv_lib_termcap_tgetent = yes; then
5298 CONS_LIBS="-ltermcap"
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_CONIO 1
5310 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5311 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5312 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 ac_check_lib_save_LIBS=$LIBS
5316 LIBS="-lncurses $LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5325 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342 (eval $ac_link) 2>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -s conftest$ac_exeext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_lib_ncurses_tgetent=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_cv_lib_ncurses_tgetent=no
5359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5363 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5364 if test $ac_cv_lib_ncurses_tgetent = yes; then
5365 CONS_LIBS="-lncurses"
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_CONIO 1
5377 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5385 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5392 # ---------------------------------------------------
5393 # Check for readline support/directory (default off)
5394 # ---------------------------------------------------
5395 # this allows you to turn it completely off
5396 # Check whether --enable-readline or --disable-readline was given.
5397 if test "${enable_readline+set}" = set; then
5398 enableval="$enable_readline"
5399 if test x$enableval = xno; then
5406 if test x$support_readline = xyes; then
5408 # Check whether --with-readline or --without-readline was given.
5409 if test "${with_readline+set}" = set; then
5410 withval="$with_readline"
5412 case "$with_readline" in
5415 if test "$with_readline" != "yes"; then
5416 CONS_INC="-I${with_readline}"
5417 CONS_LDFLAGS="-L$with_readline"
5419 with_readline="/usr/include/readline"
5421 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5424 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431 # Is the header compilable?
5432 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5433 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5442 #include <${with_readline}/readline.h>
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_header_compiler=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_header_compiler=no
5463 rm -f conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 echo "${ECHO_T}$ac_header_compiler" >&6
5467 # Is the header present?
5468 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5469 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <${with_readline}/readline.h>
5479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5482 grep -v '^ *+' conftest.er1 >conftest.err
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev/null; then
5487 if test -s conftest.err; then
5488 ac_cpp_err=$ac_c_preproc_warn_flag
5495 if test -z "$ac_cpp_err"; then
5496 ac_header_preproc=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_header_preproc=no
5503 rm -f conftest.err conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6
5507 # So? What about this header?
5508 case $ac_header_compiler:$ac_header_preproc in
5510 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5516 ## ------------------------------------ ##
5517 ## Report this to bug-autoconf@gnu.org. ##
5518 ## ------------------------------------ ##
5521 sed "s/^/$as_me: WARNING: /" >&2
5524 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5529 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5532 ## ------------------------------------ ##
5533 ## Report this to bug-autoconf@gnu.org. ##
5534 ## ------------------------------------ ##
5537 sed "s/^/$as_me: WARNING: /" >&2
5540 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5541 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 eval "$as_ac_Header=$ac_header_preproc"
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_READLINE 1
5556 CONS_LIBS="-lreadline -ltermcap"
5561 echo "readline.h not found. readline turned off ..."
5573 # check for standard readline library
5574 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5575 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5576 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5577 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5581 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5583 # Is the header compilable?
5584 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5585 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 $ac_includes_default
5594 #include </usr/include/readline/readline.h>
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest.$ac_objext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_header_compiler=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_header_compiler=no
5615 rm -f conftest.$ac_objext conftest.$ac_ext
5616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5617 echo "${ECHO_T}$ac_header_compiler" >&6
5619 # Is the header present?
5620 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5621 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 #include </usr/include/readline/readline.h>
5631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev/null; then
5639 if test -s conftest.err; then
5640 ac_cpp_err=$ac_c_preproc_warn_flag
5647 if test -z "$ac_cpp_err"; then
5648 ac_header_preproc=yes
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ac_header_preproc=no
5655 rm -f conftest.err conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5657 echo "${ECHO_T}$ac_header_preproc" >&6
5659 # So? What about this header?
5660 case $ac_header_compiler:$ac_header_preproc in
5662 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5663 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5665 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5668 ## ------------------------------------ ##
5669 ## Report this to bug-autoconf@gnu.org. ##
5670 ## ------------------------------------ ##
5673 sed "s/^/$as_me: WARNING: /" >&2
5676 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5679 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5680 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5681 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5684 ## ------------------------------------ ##
5685 ## Report this to bug-autoconf@gnu.org. ##
5686 ## ------------------------------------ ##
5689 sed "s/^/$as_me: WARNING: /" >&2
5692 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5693 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5694 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5699 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5700 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5703 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5704 cat >>confdefs.h <<\_ACEOF
5705 #define HAVE_READLINE 1
5709 CONS_INC="-I/usr/include/readline"
5710 CONS_LIBS="-lreadline -ltermcap"
5714 # Did not find standard library, so try Bacula's default
5715 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5718 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5725 # Is the header compilable?
5726 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5727 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 $ac_includes_default
5736 #include <${TOP_DIR}/depkgs/readline/readline.h>
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_header_compiler=yes
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_header_compiler=no
5757 rm -f conftest.$ac_objext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5759 echo "${ECHO_T}$ac_header_compiler" >&6
5761 # Is the header present?
5762 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5763 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <${TOP_DIR}/depkgs/readline/readline.h>
5773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } >/dev/null; then
5781 if test -s conftest.err; then
5782 ac_cpp_err=$ac_c_preproc_warn_flag
5789 if test -z "$ac_cpp_err"; then
5790 ac_header_preproc=yes
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 ac_header_preproc=no
5797 rm -f conftest.err conftest.$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799 echo "${ECHO_T}$ac_header_preproc" >&6
5801 # So? What about this header?
5802 case $ac_header_compiler:$ac_header_preproc in
5804 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5805 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5810 ## ------------------------------------ ##
5811 ## Report this to bug-autoconf@gnu.org. ##
5812 ## ------------------------------------ ##
5815 sed "s/^/$as_me: WARNING: /" >&2
5818 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5820 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5821 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5822 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5823 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5826 ## ------------------------------------ ##
5827 ## Report this to bug-autoconf@gnu.org. ##
5828 ## ------------------------------------ ##
5831 sed "s/^/$as_me: WARNING: /" >&2
5834 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5835 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 eval "$as_ac_Header=$ac_header_preproc"
5841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_READLINE 1
5851 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5852 CONS_LIBS="-lreadline -lhistory -ltermcap"
5853 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5854 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5858 echo "readline.h not found. readline turned off ..."
5884 # Minimal stuff for readline Makefile configuration
5888 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5889 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5890 if test "${ac_cv_header_stat_broken+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <sys/types.h>
5901 #include <sys/stat.h>
5903 #if defined(S_ISBLK) && defined(S_IFDIR)
5904 # if S_ISBLK (S_IFDIR)
5909 #if defined(S_ISBLK) && defined(S_IFCHR)
5910 # if S_ISBLK (S_IFCHR)
5915 #if defined(S_ISLNK) && defined(S_IFREG)
5916 # if S_ISLNK (S_IFREG)
5921 #if defined(S_ISSOCK) && defined(S_IFREG)
5922 # if S_ISSOCK (S_IFREG)
5928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5929 $EGREP "You lose" >/dev/null 2>&1; then
5930 ac_cv_header_stat_broken=yes
5932 ac_cv_header_stat_broken=no
5937 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5938 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5939 if test $ac_cv_header_stat_broken = yes; then
5941 cat >>confdefs.h <<\_ACEOF
5942 #define STAT_MACROS_BROKEN 1
5953 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5954 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5955 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5956 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line $LINENO "configure"
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <sys/types.h>
5979 rm -f conftest.$ac_objext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 eval "$as_ac_Header=yes"
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 eval "$as_ac_Header=no"
5998 rm -f conftest.$ac_objext conftest.$ac_ext
6000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6003 cat >>confdefs.h <<_ACEOF
6004 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6007 ac_header_dirent=$ac_hdr; break
6011 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6012 if test $ac_header_dirent = dirent.h; then
6013 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6014 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6015 if test "${ac_cv_search_opendir+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_func_search_save_LIBS=$LIBS
6019 ac_cv_search_opendir=no
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6028 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045 (eval $ac_link) 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -s conftest$ac_exeext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_search_opendir="none required"
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_opendir" = no; then
6063 for ac_lib in dir; do
6064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 /* Override any gcc2 internal prototype to avoid an error. */
6077 /* We use char because int might match the return type of a gcc2
6078 builtin and then its argument prototype would still apply. */
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090 (eval $ac_link) 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_search_opendir="-l$ac_lib"
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6110 LIBS=$ac_func_search_save_LIBS
6112 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6113 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6114 if test "$ac_cv_search_opendir" != no; then
6115 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6120 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6122 if test "${ac_cv_search_opendir+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 ac_func_search_save_LIBS=$LIBS
6126 ac_cv_search_opendir=no
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6135 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_search_opendir="none required"
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 if test "$ac_cv_search_opendir" = no; then
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -s conftest$ac_exeext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 ac_cv_search_opendir="-l$ac_lib"
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 LIBS=$ac_func_search_save_LIBS
6219 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6220 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6221 if test "$ac_cv_search_opendir" != no; then
6222 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6237 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6240 echo "$as_me:$LINENO: checking for $ac_func" >&5
6241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6242 if eval "test \"\${$as_ac_var+set}\" = set"; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 /* System header to define __stub macros and hopefully few prototypes,
6253 which can conflict with char $ac_func (); below.
6254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255 <limits.h> exists even on freestanding compilers. */
6257 # include <limits.h>
6259 # include <assert.h>
6261 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6269 /* The GNU C library defines this for functions which it implements
6270 to always fail with ENOSYS. Some functions are actually named
6271 something starting with __ and the normal name is an alias. */
6272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6275 char (*f) () = $ac_func;
6284 return f != $ac_func;
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291 (eval $ac_link) 2>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -s conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 eval "$as_ac_var=yes"
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 eval "$as_ac_var=no"
6308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6312 if test `eval echo '${'$as_ac_var'}'` = yes; then
6313 cat >>confdefs.h <<_ACEOF
6314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6322 for ac_func in nanosleep nl_langinfo
6324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6327 if eval "test \"\${$as_ac_var+set}\" = set"; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func (); below.
6339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340 <limits.h> exists even on freestanding compilers. */
6342 # include <limits.h>
6344 # include <assert.h>
6346 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6354 /* The GNU C library defines this for functions which it implements
6355 to always fail with ENOSYS. Some functions are actually named
6356 something starting with __ and the normal name is an alias. */
6357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6360 char (*f) () = $ac_func;
6369 return f != $ac_func;
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 eval "$as_ac_var=yes"
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 eval "$as_ac_var=no"
6393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6397 if test `eval echo '${'$as_ac_var'}'` = yes; then
6398 cat >>confdefs.h <<_ACEOF
6399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6407 for ac_header in varargs.h
6409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 # Is the header compilable?
6420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line $LINENO "configure"
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6430 #include <$ac_header>
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6459 #line $LINENO "configure"
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <$ac_header>
6467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6470 grep -v '^ *+' conftest.er1 >conftest.err
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev/null; then
6475 if test -s conftest.err; then
6476 ac_cpp_err=$ac_c_preproc_warn_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc in
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504 ## ------------------------------------ ##
6505 ## Report this to bug-autoconf@gnu.org. ##
6506 ## ------------------------------------ ##
6509 sed "s/^/$as_me: WARNING: /" >&2
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520 ## ------------------------------------ ##
6521 ## Report this to bug-autoconf@gnu.org. ##
6522 ## ------------------------------------ ##
6525 sed "s/^/$as_me: WARNING: /" >&2
6528 echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 eval "$as_ac_Header=$ac_header_preproc"
6535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6540 cat >>confdefs.h <<_ACEOF
6541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 # End of readline/conio stuff
6550 # -----------------------------------------------------------------------
6553 # ---------------------------------------------------
6554 # Check for GMP support/directory
6555 # ---------------------------------------------------
6559 # [ --with-gmp[=DIR] Specify gmp library directory],
6561 # case "$with_gmp" in
6564 # if test "$with_gmp" != "yes"; then
6565 # GMP_INC="-I$with_gmp"
6567 # GMP_LDFLAGS="-L$with_gmp"
6569 # with_gmp="/usr/include"
6571 # AC_CHECK_HEADER($with_gmp/gmp.h,
6572 # [ AC_MSG_RESULT(yes)
6573 # AC_DEFINE(HAVE_GMP)
6577 # [ AC_MSG_ERROR([*** gmp library missing])
6583 # # check for standard gmp library
6584 # AC_CHECK_HEADER(/usr/include/gmp.h,
6585 # [ AC_MSG_RESULT(yes)
6586 # AC_DEFINE(HAVE_GMP)
6591 # # Did not find standard library, so use our own
6592 # AC_MSG_RESULT(yes)
6593 # AC_DEFINE(HAVE_GMP)
6596 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6598 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6599 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6605 #AC_SUBST(GMP_LDFLAGS)
6609 # -----------------------------------------------------------------------
6612 # ---------------------------------------------------
6613 # Check for CWEB support/directory
6614 # ---------------------------------------------------
6619 # [ --with-cweb[=DIR] Specify cweb library directory],
6621 # case "$with_cweb" in
6624 # if test "$with_cweb" != "yes"; then
6625 # CWEB_INC="-I$with_cweb"
6626 # CWEB_LIBS="-lcweb"
6627 # CWEB_LDFLAGS="-L$with_cweb"
6629 # with_cweb="/usr/include"
6631 # AC_CHECK_HEADER($with_cweb/cweb.h,
6632 # [ AC_MSG_RESULT(yes)
6633 # AC_DEFINE(HAVE_CWEB)
6634 # CWEB_LIBS="-lcweb"
6637 # [ AC_MSG_ERROR([*** cweb library missing])
6643 # # check for standard cweb library
6644 # AC_CHECK_HEADER(/usr/include/cweb.h,
6645 # [ AC_MSG_RESULT(yes)
6646 # AC_DEFINE(HAVE_CWEB)
6649 # CWEB_LIBS="-lcweb"
6651 # # Did not find starndard library, so use our own
6652 # AC_MSG_RESULT(yes)
6653 # AC_DEFINE(HAVE_CWEB)
6656 # CWEB=${TOP_DIR}/depkgs/cweb
6657 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6658 # CWEB_LIBS="-lcweb"
6659 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6660 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6666 #AC_SUBST(CWEB_LIBS)
6667 #AC_SUBST(CWEB_LDFLAGS)
6671 # -----------------------------------------------------------------------
6675 # -----------------------------------------------------------
6676 # Check whether user wants TCP wrappers support (default off)
6677 # -----------------------------------------------------------
6680 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6681 if test "${with_tcp_wrappers+set}" = set; then
6682 withval="$with_tcp_wrappers"
6684 if test "x$withval" != "xno" ; then
6686 LIBS="$saved_LIBS -lwrap"
6687 echo "$as_me:$LINENO: checking for libwrap" >&5
6688 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6697 int deny_severity = 0;
6698 int allow_severity = 0;
6699 struct request_info *req;
6708 rm -f conftest.$ac_objext conftest$ac_exeext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710 (eval $ac_link) 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } &&
6714 { ac_try='test -s conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6721 echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_LIBWRAP 1
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6734 LIBS="$saved_LIBS -lwrap -lnsl"
6735 cat >conftest.$ac_ext <<_ACEOF
6736 #line $LINENO "configure"
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 int deny_severity = 0;
6744 int allow_severity = 0;
6745 struct request_info *req;
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756 (eval $ac_link) 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try='test -s conftest$ac_exeext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6767 echo "$as_me:$LINENO: result: yes" >&5
6768 echo "${ECHO_T}yes" >&6
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_LIBWRAP 1
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6780 echo "$as_me: error: *** libwrap missing" >&2;}
6781 { (exit 1); exit 1; }; }
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6793 # ------------------------------------------
6794 # Where to place working dir
6795 # ------------------------------------------
6796 working_dir=`eval echo ${prefix}/var/bacula/working`
6798 # Check whether --with-working-dir or --without-working-dir was given.
6799 if test "${with_working_dir+set}" = set; then
6800 withval="$with_working_dir"
6802 if test "x$withval" != "xno" ; then
6803 working_dir=$withval
6812 # ------------------------------------------
6813 # Where to place scriptdir (script files)
6814 # ------------------------------------------
6815 scriptdir=`eval echo ${sysconfdir}`
6817 # Check whether --with-scriptdir or --without-scriptdir was given.
6818 if test "${with_scriptdir+set}" = set; then
6819 withval="$with_scriptdir"
6821 if test "x$withval" != "xno" ; then
6831 # ------------------------------------------
6832 # Where to send dump email
6833 # ------------------------------------------
6834 dump_email=root@localhost
6836 # Check whether --with-dump-email or --without-dump-email was given.
6837 if test "${with_dump_email+set}" = set; then
6838 withval="$with_dump_email"
6840 if test "x$withval" != "xno" ; then
6849 # ------------------------------------------
6850 # Where to send job email
6851 # ------------------------------------------
6852 job_email=root@localhost
6854 # Check whether --with-job-email or --without-job-email was given.
6855 if test "${with_job_email+set}" = set; then
6856 withval="$with_job_email"
6858 if test "x$withval" != "xno" ; then
6867 # ------------------------------------------
6868 # Where to find smtp host
6869 # ------------------------------------------
6872 # Check whether --with-smtp_host or --without-smtp_host was given.
6873 if test "${with_smtp_host+set}" = set; then
6874 withval="$with_smtp_host"
6876 if test "x$withval" != "xno" ; then
6886 # ------------------------------------
6887 # Where to place pid files
6888 # ------------------------------------
6891 # Check whether --with-pid-dir or --without-pid-dir was given.
6892 if test "${with_pid_dir+set}" = set; then
6893 withval="$with_pid_dir"
6895 if test "x$withval" != "xno" ; then
6902 cat >>confdefs.h <<_ACEOF
6903 #define _PATH_BACULA_PIDDIR "$piddir"
6909 # ------------------------------------
6910 # Where to place subsys "lock file"
6911 # ------------------------------------
6912 subsysdir=/var/run/subsys
6914 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6915 if test "${with_subsys_dir+set}" = set; then
6916 withval="$with_subsys_dir"
6918 if test "x$withval" != "xno" ; then
6929 # ------------------------------------
6930 # Where to start assigning ports
6931 # ------------------------------------
6934 # Check whether --with-baseport or --without-baseport was given.
6935 if test "${with_baseport+set}" = set; then
6936 withval="$with_baseport"
6938 if test "x$withval" != "xno" ; then
6946 dir_port=`expr $baseport`
6947 fd_port=`expr $baseport + 1`
6948 sd_port=`expr $fd_port + 1`
6955 # ------------------------------------------
6956 # Generate passwords
6957 # ------------------------------------------
6960 # Check whether --with-dir-password or --without-dir-password was given.
6961 if test "${with_dir_password+set}" = set; then
6962 withval="$with_dir_password"
6964 if test "x$withval" != "xno" ; then
6965 dir_password=$withval
6971 if test "x$dir_password" = "x" ; then
6972 if test "x$OPENSSL" = "xnone" ; then
6973 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6974 key=`autoconf/randpass 33`
6976 key=`openssl rand -base64 33`
6983 # Check whether --with-fd-password or --without-fd-password was given.
6984 if test "${with_fd_password+set}" = set; then
6985 withval="$with_fd_password"
6987 if test "x$withval" != "xno" ; then
6988 fd_password=$withval
6994 if test "x$fd_password" = "x" ; then
6995 if test "x$OPENSSL" = "xnone" ; then
6996 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6997 key=`autoconf/randpass 37`
6999 key=`openssl rand -base64 33`
7006 # Check whether --with-sd-password or --without-sd-password was given.
7007 if test "${with_sd_password+set}" = set; then
7008 withval="$with_sd_password"
7010 if test "x$withval" != "xno" ; then
7011 sd_password=$withval
7017 if test "x$sd_password" = "x" ; then
7018 if test "x$OPENSSL" = "xnone" ; then
7019 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7020 key=`autoconf/randpass 41`
7022 key=`openssl rand -base64 33`
7034 # Handle users and groups for each daemon
7038 # Check whether --with-dir_user or --without-dir_user was given.
7039 if test "${with_dir_user+set}" = set; then
7040 withval="$with_dir_user"
7042 if test "x$withval" != "x" ; then
7051 # Check whether --with-dir_group or --without-dir_group was given.
7052 if test "${with_dir_group+set}" = set; then
7053 withval="$with_dir_group"
7055 if test "x$withval" != "x" ; then
7064 # Check whether --with-sd_user or --without-sd_user was given.
7065 if test "${with_sd_user+set}" = set; then
7066 withval="$with_sd_user"
7068 if test "x$withval" != "x" ; then
7077 # Check whether --with-sd_group or --without-sd_group was given.
7078 if test "${with_sd_group+set}" = set; then
7079 withval="$with_sd_group"
7081 if test "x$withval" != "x" ; then
7090 # Check whether --with-fd_user or --without-fd_user was given.
7091 if test "${with_fd_user+set}" = set; then
7092 withval="$with_fd_user"
7094 if test "x$withval" != "x" ; then
7103 # Check whether --with-fd_group or --without-fd_group was given.
7104 if test "${with_fd_group+set}" = set; then
7105 withval="$with_fd_group"
7107 if test "x$withval" != "x" ; then
7125 # allow setting default executable permissions
7129 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7130 if test "${with_sbin_perm+set}" = set; then
7131 withval="$with_sbin_perm"
7133 if test "x$withval" != "x" ; then
7142 # ------------------------------------------------
7143 # Bacula check for various SQL database engines
7144 # ------------------------------------------------
7147 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7148 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7150 # Check whether --with-postgresql or --without-postgresql was given.
7151 if test "${with_postgresql+set}" = set; then
7152 withval="$with_postgresql"
7154 if test "$withval" != "no"; then
7155 if test "$db_found" = "yes"; then
7156 echo "$as_me:$LINENO: result: error" >&5
7157 echo "${ECHO_T}error" >&6
7158 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7159 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7160 { (exit 1); exit 1; }; };
7162 if test "$withval" = "yes"; then
7163 if test -f /usr/local/include/libpq-fe.h; then
7164 POSTGRESQL_INCDIR=/usr/local/include
7165 POSTGRESQL_LIBDIR=/usr/local/lib
7166 POSTGRESQL_BINDIR=/usr/local/bin
7167 elif test -f /usr/include/libpq-fe.h; then
7168 POSTGRESQL_INCDIR=/usr/include
7169 POSTGRESQL_LIBDIR=/usr/lib
7170 POSTGRESQL_BINDIR=/usr/bin
7171 elif test -f /usr/include/pgsql/libpq-fe.h; then
7172 POSTGRESQL_INCDIR=/usr/include/pgsql
7173 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7174 POSTGRESQL_BINDIR=/usr/bin
7175 elif test -f /usr/include/postgresql/libpq-fe.h; then
7176 POSTGRESQL_INCDIR=/usr/include/postgresql
7177 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7178 POSTGRESQL_BINDIR=/usr/bin
7180 echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7182 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7183 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7184 { (exit 1); exit 1; }; }
7186 elif test -f $withval/include/libpq-fe.h; then
7187 POSTGRESQL_INCDIR=$withval/include
7188 POSTGRESQL_LIBDIR=$withval/lib
7189 POSTGRESQL_BINDIR=$withval/bin
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7194 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7195 { (exit 1); exit 1; }; }
7197 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7198 echo "$as_me:$LINENO: checking for crypt" >&5
7199 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7200 if test "${ac_cv_func_crypt+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 cat >conftest.$ac_ext <<_ACEOF
7204 #line $LINENO "configure"
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 /* System header to define __stub macros and hopefully few prototypes,
7211 which can conflict with char crypt (); below.
7212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7213 <limits.h> exists even on freestanding compilers. */
7215 # include <limits.h>
7217 # include <assert.h>
7219 /* Override any gcc2 internal prototype to avoid an error. */
7224 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */
7227 /* The GNU C library defines this for functions which it implements
7228 to always fail with ENOSYS. Some functions are actually named
7229 something starting with __ and the normal name is an alias. */
7230 #if defined (__stub_crypt) || defined (__stub___crypt)
7233 char (*f) () = crypt;
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7249 (eval $ac_link) 2>&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -s conftest$ac_exeext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_cv_func_crypt=yes
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7269 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7270 if test $ac_cv_func_crypt = yes; then
7273 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7274 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7275 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 ac_check_lib_save_LIBS=$LIBS
7279 LIBS="-lcrypt $LIBS"
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7288 /* Override any gcc2 internal prototype to avoid an error. */
7292 /* We use char because int might match the return type of a gcc2
7293 builtin and then its argument prototype would still apply. */
7303 rm -f conftest.$ac_objext conftest$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -s conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 ac_cv_lib_crypt_crypt=yes
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 ac_cv_lib_crypt_crypt=no
7322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7323 LIBS=$ac_check_lib_save_LIBS
7325 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7326 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7327 if test $ac_cv_lib_crypt_crypt = yes; then
7328 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7333 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7334 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7335 SQL_BINDIR=$POSTGRESQL_BINDIR
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_POSTGRESQL 1
7340 echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6
7343 support_postgresql=yes
7347 echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7353 echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6
7365 echo "$as_me:$LINENO: checking for MySQL support" >&5
7366 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7368 # Check whether --with-mysql or --without-mysql was given.
7369 if test "${with_mysql+set}" = set; then
7370 withval="$with_mysql"
7372 if test "$withval" != "no"; then
7373 if test "$withval" = "yes"; then
7374 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7375 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7376 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7377 MYSQL_BINDIR=/usr/local/mysql/bin
7378 elif test -f /usr/include/mysql/mysql.h; then
7379 MYSQL_INCDIR=/usr/include/mysql
7380 MYSQL_LIBDIR=/usr/lib/mysql
7381 MYSQL_BINDIR=/usr/bin
7382 elif test -f /usr/include/mysql.h; then
7383 MYSQL_INCDIR=/usr/include
7384 MYSQL_LIBDIR=/usr/lib
7385 MYSQL_BINDIR=/usr/bin
7386 elif test -f /usr/local/include/mysql/mysql.h; then
7387 MYSQL_INCDIR=/usr/local/include/mysql
7388 MYSQL_LIBDIR=/usr/local/lib/mysql
7389 MYSQL_BINDIR=/usr/local/bin
7390 elif test -f /usr/local/include/mysql.h; then
7391 MYSQL_INCDIR=/usr/local/include
7392 MYSQL_LIBDIR=/usr/local/lib
7393 MYSQL_BINDIR=/usr/local/bin
7395 echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7397 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7398 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7399 { (exit 1); exit 1; }; }
7402 if test -f $withval/include/mysql/mysql.h; then
7403 MYSQL_INCDIR=$withval/include/mysql
7404 MYSQL_LIBDIR=$withval/lib/mysql
7405 MYSQL_BINDIR=$withval/bin
7406 elif test -f $withval/include/mysql.h; then
7407 MYSQL_INCDIR=$withval/include
7408 MYSQL_LIBDIR=$withval/lib
7409 MYSQL_BINDIR=$withval/bin
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7414 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7415 { (exit 1); exit 1; }; }
7418 SQL_INCLUDE=-I$MYSQL_INCDIR
7419 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7420 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7421 cat >>confdefs.h <<\_ACEOF
7422 #define HAVE_THREAD_SAFE_MYSQL 1
7426 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7428 SQL_BINDIR=$MYSQL_BINDIR
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_MYSQL 1
7434 echo "$as_me:$LINENO: result: yes" >&5
7435 echo "${ECHO_T}yes" >&6
7442 echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7454 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7455 if test "${with_embedded_mysql+set}" = set; then
7456 withval="$with_embedded_mysql"
7458 if test "$withval" != "no"; then
7459 if test "$withval" = "yes"; then
7460 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7461 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7462 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7463 MYSQL_BINDIR=/usr/local/mysql/bin
7464 elif test -f /usr/include/mysql/mysql.h; then
7465 MYSQL_INCDIR=/usr/include/mysql
7466 MYSQL_LIBDIR=/usr/lib/mysql
7467 MYSQL_BINDIR=/usr/bin
7468 elif test -f /usr/include/mysql.h; then
7469 MYSQL_INCDIR=/usr/include
7470 MYSQL_LIBDIR=/usr/lib
7471 MYSQL_BINDIR=/usr/bin
7472 elif test -f /usr/local/include/mysql/mysql.h; then
7473 MYSQL_INCDIR=/usr/local/include/mysql
7474 MYSQL_LIBDIR=/usr/local/lib/mysql
7475 MYSQL_BINDIR=/usr/local/bin
7476 elif test -f /usr/local/include/mysql.h; then
7477 MYSQL_INCDIR=/usr/local/include
7478 MYSQL_LIBDIR=/usr/local/lib
7479 MYSQL_BINDIR=/usr/local/bin
7481 echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7484 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7485 { (exit 1); exit 1; }; }
7488 if test -f $withval/include/mysql/mysql.h; then
7489 MYSQL_INCDIR=$withval/include/mysql
7490 MYSQL_LIBDIR=$withval/lib/mysql
7491 MYSQL_BINDIR=$withval/bin
7492 elif test -f $withval/include/mysql.h; then
7493 MYSQL_INCDIR=$withval/include
7494 MYSQL_LIBDIR=$withval/lib
7495 MYSQL_BINDIR=$withval/bin
7497 echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7500 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7501 { (exit 1); exit 1; }; }
7504 SQL_INCLUDE=-I$MYSQL_INCDIR
7505 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7506 SQL_BINDIR=$MYSQL_BINDIR
7508 cat >>confdefs.h <<\_ACEOF
7509 #define HAVE_MYSQL 1
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_EMBEDDED_MYSQL 1
7516 echo "$as_me:$LINENO: result: yes" >&5
7517 echo "${ECHO_T}yes" >&6
7524 echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7544 echo "$as_me:$LINENO: checking for SQLite support" >&5
7545 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7547 # Check whether --with-sqlite or --without-sqlite was given.
7548 if test "${with_sqlite+set}" = set; then
7549 withval="$with_sqlite"
7551 if test "$withval" != "no"; then
7552 if test "$withval" = "yes"; then
7553 if test -f /usr/local/include/sqlite.h; then
7554 SQLITE_INCDIR=/usr/local/include
7555 SQLITE_LIBDIR=/usr/local/lib
7556 SQLITE_BINDIR=/usr/local/bin
7557 elif test -f /usr/include/sqlite.h; then
7558 SQLITE_INCDIR=/usr/include
7559 SQLITE_LIBDIR=/usr/lib
7560 SQLITE_BINDIR=/usr/bin
7562 echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6
7564 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7565 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7566 { (exit 1); exit 1; }; }
7569 if test -f $withval/sqlite.h; then
7570 SQLITE_INCDIR=$withval
7571 SQLITE_LIBDIR=$withval
7572 SQLITE_BINDIR=$withval
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7577 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7578 { (exit 1); exit 1; }; }
7581 SQL_INCLUDE=-I$SQLITE_INCDIR
7582 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7583 SQL_BINDIR=$SQLITE_BINDIR
7585 cat >>confdefs.h <<\_ACEOF
7586 #define HAVE_SQLITE 1
7589 echo "$as_me:$LINENO: result: yes" >&5
7590 echo "${ECHO_T}yes" >&6
7597 echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7616 cat >>confdefs.h <<\_ACEOF
7617 #define PROTOTYPES 1
7621 if test -z "$CFLAGS"; then
7622 if test -z "$CCOPTS"; then
7631 largefile_support="no"
7633 # Check whether --enable-largefile or --disable-largefile was given.
7634 if test "${enable_largefile+set}" = set; then
7635 enableval="$enable_largefile"
7638 if test "$enable_largefile" != no; then
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7642 echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 if test "${ac_cv_prog_GETCONF+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 if test -n "$GETCONF"; then
7648 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 GETCONF=$ac_cv_prog_GETCONF
7667 if test -n "$GETCONF"; then
7668 echo "$as_me:$LINENO: result: $GETCONF" >&5
7669 echo "${ECHO_T}$GETCONF" >&6
7671 echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6
7676 if test -z "$ac_cv_prog_GETCONF"; then
7677 ac_ct_GETCONF=$GETCONF
7678 # Extract the first word of "getconf", so it can be a program name with args.
7679 set dummy getconf; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 if test -n "$ac_ct_GETCONF"; then
7686 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_ac_ct_GETCONF="getconf"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7705 if test -n "$ac_ct_GETCONF"; then
7706 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7707 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7709 echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7713 GETCONF=$ac_ct_GETCONF
7715 GETCONF="$ac_cv_prog_GETCONF"
7718 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7719 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7720 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7724 ac_cv_sys_largefile_CFLAGS=no
7726 # IRIX 6.2 and later require cc -n32.
7727 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7728 if test "$GCC" != yes; then
7729 ac_cv_sys_largefile_CFLAGS=-n32
7732 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line $LINENO "configure"
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_cv_sys_largefile_CFLAGS=no
7768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7774 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7775 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7776 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7777 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7781 ac_cv_sys_largefile_LDFLAGS=no
7785 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7786 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7787 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7788 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7789 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7793 ac_cv_sys_largefile_LIBS=no
7797 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7798 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7800 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7803 -D_FILE_OFFSET_BITS=*) ;;
7804 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7805 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7811 '') CPPFLAGS="$ac_flag" ;;
7812 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7820 '') CFLAGS="$ac_flag" ;;
7821 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7826 case "$ac_cv_sys_largefile_LDFLAGS" in
7830 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7831 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7834 case "$ac_cv_sys_largefile_LIBS" in
7838 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7839 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7842 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7843 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7844 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 ac_cv_sys_file_offset_bits=no
7849 # HP-UX 10.20 and later
7850 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7851 ac_cv_sys_file_offset_bits=64 ;;
7853 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7855 -D_FILE_OFFSET_BITS)
7856 ac_cv_sys_file_offset_bits=1 ;;
7857 -D_FILE_OFFSET_BITS=*)
7858 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7863 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7864 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7865 if test "$ac_cv_sys_file_offset_bits" != no; then
7867 cat >>confdefs.h <<_ACEOF
7868 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7872 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7873 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7874 if test "${ac_cv_sys_largefile_source+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_cv_sys_largefile_source=no
7879 # HP-UX 10.20 and later
7880 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7881 ac_cv_sys_largefile_source=1 ;;
7883 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7885 -D_LARGEFILE_SOURCE)
7886 ac_cv_sys_largefile_source=1 ;;
7887 -D_LARGEFILE_SOURCE=*)
7888 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7893 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7894 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7895 if test "$ac_cv_sys_largefile_source" != no; then
7897 cat >>confdefs.h <<_ACEOF
7898 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7902 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7903 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7904 if test "${ac_cv_sys_large_files+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 ac_cv_sys_large_files=no
7910 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7911 ac_cv_sys_large_files=1 ;;
7913 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7916 ac_cv_sys_large_files=1 ;;
7918 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7923 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7924 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7925 if test "$ac_cv_sys_large_files" != no; then
7927 cat >>confdefs.h <<_ACEOF
7928 #define _LARGE_FILES $ac_cv_sys_large_files
7936 echo "$as_me:$LINENO: checking for X" >&5
7937 echo $ECHO_N "checking for X... $ECHO_C" >&6
7940 # Check whether --with-x or --without-x was given.
7941 if test "${with_x+set}" = set; then
7945 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7946 if test "x$with_x" = xno; then
7947 # The user explicitly disabled X.
7950 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7951 # Both variables are already set.
7954 if test "${ac_cv_have_x+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 # One or both of the vars are not set, and there is no cached value.
7958 ac_x_includes=no ac_x_libraries=no
7960 if mkdir conftest.dir; then
7962 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7963 cat >Imakefile <<'_ACEOF'
7965 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7967 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7969 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7970 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7971 for ac_extension in a so sl; do
7972 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7973 test -f $ac_im_libdir/libX11.$ac_extension; then
7974 ac_im_usrlibdir=$ac_im_libdir; break
7977 # Screen out bogus values from the imake configuration. They are
7978 # bogus both because they are the default anyway, and because
7979 # using them would break gcc on systems where it needs fixed includes.
7980 case $ac_im_incroot in
7982 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7984 case $ac_im_usrlibdir in
7986 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7993 # Standard set of common directories for X headers.
7994 # Check X11 before X11Rn because it is often a symlink to the current release.
8006 /usr/local/X11/include
8007 /usr/local/X11R6/include
8008 /usr/local/X11R5/include
8009 /usr/local/X11R4/include
8011 /usr/local/include/X11
8012 /usr/local/include/X11R6
8013 /usr/local/include/X11R5
8014 /usr/local/include/X11R4
8018 /usr/XFree86/include/X11
8022 /usr/unsupported/include
8024 /usr/local/x11r5/include
8025 /usr/lpp/Xamples/include
8027 /usr/openwin/include
8028 /usr/openwin/share/include'
8030 if test "$ac_x_includes" = no; then
8031 # Guess where to find include files, by looking for Intrinsic.h.
8032 # First, try using that file with no special directory specified.
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 #include <X11/Intrinsic.h>
8042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8045 grep -v '^ *+' conftest.er1 >conftest.err
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } >/dev/null; then
8050 if test -s conftest.err; then
8051 ac_cpp_err=$ac_c_preproc_warn_flag
8058 if test -z "$ac_cpp_err"; then
8059 # We can compile using X headers with no special include directory.
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 for ac_dir in $ac_x_header_dirs; do
8066 if test -r "$ac_dir/X11/Intrinsic.h"; then
8067 ac_x_includes=$ac_dir
8072 rm -f conftest.err conftest.$ac_ext
8073 fi # $ac_x_includes = no
8075 if test "$ac_x_libraries" = no; then
8076 # Check for the libraries.
8077 # See if we find them without any special options.
8078 # Don't add to $LIBS permanently.
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <X11/Intrinsic.h>
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest$ac_exeext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8110 # We can link X programs with no special library path.
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8117 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8119 # Don't even attempt the hair of trying to link an X program!
8120 for ac_extension in a so sl; do
8121 if test -r $ac_dir/libXt.$ac_extension; then
8122 ac_x_libraries=$ac_dir
8128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8129 fi # $ac_x_libraries = no
8131 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8132 # Didn't find X anywhere. Cache the known absence of X.
8133 ac_cv_have_x="have_x=no"
8135 # Record where we found X for the cache.
8136 ac_cv_have_x="have_x=yes \
8137 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8142 eval "$ac_cv_have_x"
8145 if test "$have_x" != yes; then
8146 echo "$as_me:$LINENO: result: $have_x" >&5
8147 echo "${ECHO_T}$have_x" >&6
8150 # If each of the values was on the command line, it overrides each guess.
8151 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8152 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8153 # Update the cache value to reflect the command line values.
8154 ac_cv_have_x="have_x=yes \
8155 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8156 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8157 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8160 if test "$no_x" = yes; then
8161 # Not all programs may use this symbol, but it does not hurt to define it.
8163 cat >>confdefs.h <<\_ACEOF
8164 #define X_DISPLAY_MISSING 1
8167 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8169 if test -n "$x_includes"; then
8170 X_CFLAGS="$X_CFLAGS -I$x_includes"
8173 # It would also be nice to do this for all -L options, not just this one.
8174 if test -n "$x_libraries"; then
8175 X_LIBS="$X_LIBS -L$x_libraries"
8176 # For Solaris; some versions of Sun CC require a space after -R and
8177 # others require no space. Words are not sufficient . . . .
8178 case `(uname -sr) 2>/dev/null` in
8180 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8181 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8182 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8183 cat >conftest.$ac_ext <<_ACEOF
8184 #line $LINENO "configure"
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8219 if test $ac_R_nospace = yes; then
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8222 X_LIBS="$X_LIBS -R$x_libraries"
8224 LIBS="$ac_xsave_LIBS -R $x_libraries"
8225 cat >conftest.$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8261 if test $ac_R_space = yes; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8264 X_LIBS="$X_LIBS -R $x_libraries"
8266 echo "$as_me:$LINENO: result: neither works" >&5
8267 echo "${ECHO_T}neither works" >&6
8274 # Check for system-dependent libraries X programs must link with.
8275 # Do this before checking for the system-independent R6 libraries
8276 # (-lICE), since we may need -lsocket or whatever for X linking.
8278 if test "$ISC" = yes; then
8279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8281 # Martyn Johnson says this is needed for Ultrix, if the X
8282 # libraries were built with DECnet support. And Karl Berry says
8283 # the Alpha needs dnet_stub (dnet does not exist).
8284 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8285 cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8293 /* Override any gcc2 internal prototype to avoid an error. */
8297 /* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8299 char XOpenDisplay ();
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8326 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8327 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 ac_check_lib_save_LIBS=$LIBS
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -s conftest$ac_exeext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_lib_dnet_dnet_ntoa=yes
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 ac_cv_lib_dnet_dnet_ntoa=no
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8379 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8380 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8383 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8384 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8385 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8386 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-ldnet_stub $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_cv_lib_dnet_stub_dnet_ntoa=no
8433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8437 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8438 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8439 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445 LIBS="$ac_xsave_LIBS"
8447 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8448 # to get the SysV transport functions.
8449 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8451 # The nsl library prevents programs from opening the X display
8452 # on Irix 5.2, according to T.E. Dickey.
8453 # The functions gethostbyname, getservbyname, and inet_addr are
8454 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8455 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8456 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8457 if test "${ac_cv_func_gethostbyname+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 cat >conftest.$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 /* System header to define __stub macros and hopefully few prototypes,
8468 which can conflict with char gethostbyname (); below.
8469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8470 <limits.h> exists even on freestanding compilers. */
8472 # include <limits.h>
8474 # include <assert.h>
8476 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483 char gethostbyname ();
8484 /* The GNU C library defines this for functions which it implements
8485 to always fail with ENOSYS. Some functions are actually named
8486 something starting with __ and the normal name is an alias. */
8487 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8490 char (*f) () = gethostbyname;
8499 return f != gethostbyname;
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_func_gethostbyname=yes
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 ac_cv_func_gethostbyname=no
8523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8526 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8528 if test $ac_cv_func_gethostbyname = no; then
8529 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8530 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8531 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 ac_check_lib_save_LIBS=$LIBS
8536 cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8544 /* Override any gcc2 internal prototype to avoid an error. */
8548 /* We use char because int might match the return type of a gcc2
8549 builtin and then its argument prototype would still apply. */
8550 char gethostbyname ();
8559 rm -f conftest.$ac_objext conftest$ac_exeext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561 (eval $ac_link) 2>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -s conftest$ac_exeext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 ac_cv_lib_nsl_gethostbyname=yes
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_cv_lib_nsl_gethostbyname=no
8578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8582 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8583 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8587 if test $ac_cv_lib_nsl_gethostbyname = no; then
8588 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8589 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8590 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 ac_check_lib_save_LIBS=$LIBS
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any gcc2 internal prototype to avoid an error. */
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609 char gethostbyname ();
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_lib_bsd_gethostbyname=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_lib_bsd_gethostbyname=no
8637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8640 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8641 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8642 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8649 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8650 # socket/setsockopt and other routines are undefined under SCO ODT
8651 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8652 # on later versions), says Simon Leinen: it contains gethostby*
8653 # variants that don't use the name server (or something). -lsocket
8654 # must be given before -lnsl if both are needed. We assume that
8655 # if connect needs -lnsl, so does gethostbyname.
8656 echo "$as_me:$LINENO: checking for connect" >&5
8657 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8658 if test "${ac_cv_func_connect+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8662 #line $LINENO "configure"
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 /* System header to define __stub macros and hopefully few prototypes,
8669 which can conflict with char connect (); below.
8670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671 <limits.h> exists even on freestanding compilers. */
8673 # include <limits.h>
8675 # include <assert.h>
8677 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8685 /* The GNU C library defines this for functions which it implements
8686 to always fail with ENOSYS. Some functions are actually named
8687 something starting with __ and the normal name is an alias. */
8688 #if defined (__stub_connect) || defined (__stub___connect)
8691 char (*f) () = connect;
8700 return f != connect;
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_func_connect=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_func_connect=no
8724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8727 echo "${ECHO_T}$ac_cv_func_connect" >&6
8729 if test $ac_cv_func_connect = no; then
8730 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8731 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8732 if test "${ac_cv_lib_socket_connect+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 ac_check_lib_save_LIBS=$LIBS
8736 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 #line $LINENO "configure"
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8745 /* Override any gcc2 internal prototype to avoid an error. */
8749 /* We use char because int might match the return type of a gcc2
8750 builtin and then its argument prototype would still apply. */
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_lib_socket_connect=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_lib_socket_connect=no
8779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8780 LIBS=$ac_check_lib_save_LIBS
8782 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8783 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8784 if test $ac_cv_lib_socket_connect = yes; then
8785 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8790 # Guillermo Gomez says -lposix is necessary on A/UX.
8791 echo "$as_me:$LINENO: checking for remove" >&5
8792 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8793 if test "${ac_cv_func_remove+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 cat >conftest.$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 /* System header to define __stub macros and hopefully few prototypes,
8804 which can conflict with char remove (); below.
8805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8806 <limits.h> exists even on freestanding compilers. */
8808 # include <limits.h>
8810 # include <assert.h>
8812 /* Override any gcc2 internal prototype to avoid an error. */
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8820 /* The GNU C library defines this for functions which it implements
8821 to always fail with ENOSYS. Some functions are actually named
8822 something starting with __ and the normal name is an alias. */
8823 #if defined (__stub_remove) || defined (__stub___remove)
8826 char (*f) () = remove;
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_func_remove=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8857 ac_cv_func_remove=no
8859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8862 echo "${ECHO_T}$ac_cv_func_remove" >&6
8864 if test $ac_cv_func_remove = no; then
8865 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8866 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8867 if test "${ac_cv_lib_posix_remove+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-lposix $LIBS"
8872 cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8880 /* Override any gcc2 internal prototype to avoid an error. */
8884 /* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 ac_cv_lib_posix_remove=yes
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_cv_lib_posix_remove=no
8914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8915 LIBS=$ac_check_lib_save_LIBS
8917 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8918 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8919 if test $ac_cv_lib_posix_remove = yes; then
8920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8925 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8926 echo "$as_me:$LINENO: checking for shmat" >&5
8927 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8928 if test "${ac_cv_func_shmat+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8932 #line $LINENO "configure"
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 /* System header to define __stub macros and hopefully few prototypes,
8939 which can conflict with char shmat (); below.
8940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8941 <limits.h> exists even on freestanding compilers. */
8943 # include <limits.h>
8945 # include <assert.h>
8947 /* Override any gcc2 internal prototype to avoid an error. */
8952 /* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8955 /* The GNU C library defines this for functions which it implements
8956 to always fail with ENOSYS. Some functions are actually named
8957 something starting with __ and the normal name is an alias. */
8958 #if defined (__stub_shmat) || defined (__stub___shmat)
8961 char (*f) () = shmat;
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977 (eval $ac_link) 2>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_func_shmat=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8996 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8997 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8999 if test $ac_cv_func_shmat = no; then
9000 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9001 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9002 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 ac_check_lib_save_LIBS=$LIBS
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9015 /* Override any gcc2 internal prototype to avoid an error. */
9019 /* We use char because int might match the return type of a gcc2
9020 builtin and then its argument prototype would still apply. */
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -s conftest$ac_exeext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_cv_lib_ipc_shmat=yes
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_cv_lib_ipc_shmat=no
9049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9052 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9053 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9054 if test $ac_cv_lib_ipc_shmat = yes; then
9055 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9061 # Check for libraries that X11R6 Xt/Xaw programs need.
9062 ac_save_LDFLAGS=$LDFLAGS
9063 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9064 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9065 # check for ICE first), but we must link in the order -lSM -lICE or
9066 # we get undefined symbols. So assume we have SM if we have ICE.
9067 # These have to be linked with before -lX11, unlike the other
9068 # libraries we check for below, so use a different variable.
9069 # John Interrante, Karl Berry
9070 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9071 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9072 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 #line $LINENO "configure"
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9085 /* Override any gcc2 internal prototype to avoid an error. */
9089 /* We use char because int might match the return type of a gcc2
9090 builtin and then its argument prototype would still apply. */
9091 char IceConnectionNumber ();
9095 IceConnectionNumber ();
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -s conftest$ac_exeext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_lib_ICE_IceConnectionNumber=yes
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_cv_lib_ICE_IceConnectionNumber=no
9119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9122 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9123 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9124 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9125 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9128 LDFLAGS=$ac_save_LDFLAGS
9180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9182 echo "$as_me:$LINENO: checking for $ac_header" >&5
9183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190 # Is the header compilable?
9191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9194 #line $LINENO "configure"
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 $ac_includes_default
9201 #include <$ac_header>
9203 rm -f conftest.$ac_objext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205 (eval $ac_compile) 2>&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_header_compiler=yes
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 ac_header_compiler=no
9222 rm -f conftest.$ac_objext conftest.$ac_ext
9223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9224 echo "${ECHO_T}$ac_header_compiler" >&6
9226 # Is the header present?
9227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 #include <$ac_header>
9238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } >/dev/null; then
9246 if test -s conftest.err; then
9247 ac_cpp_err=$ac_c_preproc_warn_flag
9254 if test -z "$ac_cpp_err"; then
9255 ac_header_preproc=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_header_preproc=no
9262 rm -f conftest.err conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9264 echo "${ECHO_T}$ac_header_preproc" >&6
9266 # So? What about this header?
9267 case $ac_header_compiler:$ac_header_preproc in
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9275 ## ------------------------------------ ##
9276 ## Report this to bug-autoconf@gnu.org. ##
9277 ## ------------------------------------ ##
9280 sed "s/^/$as_me: WARNING: /" >&2
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291 ## ------------------------------------ ##
9292 ## Report this to bug-autoconf@gnu.org. ##
9293 ## ------------------------------------ ##
9296 sed "s/^/$as_me: WARNING: /" >&2
9299 echo "$as_me:$LINENO: checking for $ac_header" >&5
9300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 eval "$as_ac_Header=$ac_header_preproc"
9306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9311 cat >>confdefs.h <<_ACEOF
9312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9321 if test "${ac_cv_header_stdc+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -s conftest.$ac_objext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_header_stdc=yes
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_cv_header_stdc=no
9363 rm -f conftest.$ac_objext conftest.$ac_ext
9365 if test $ac_cv_header_stdc = yes; then
9366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9367 cat >conftest.$ac_ext <<_ACEOF
9368 #line $LINENO "configure"
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9378 $EGREP "memchr" >/dev/null 2>&1; then
9381 ac_cv_header_stdc=no
9387 if test $ac_cv_header_stdc = yes; then
9388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9400 $EGREP "free" >/dev/null 2>&1; then
9403 ac_cv_header_stdc=no
9409 if test $ac_cv_header_stdc = yes; then
9410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9411 if test "$cross_compiling" = yes; then
9414 cat >conftest.$ac_ext <<_ACEOF
9415 #line $LINENO "configure"
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9422 #if ((' ' & 0x0FF) == 0x020)
9423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9426 # define ISLOWER(c) \
9427 (('a' <= (c) && (c) <= 'i') \
9428 || ('j' <= (c) && (c) <= 'r') \
9429 || ('s' <= (c) && (c) <= 'z'))
9430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9438 for (i = 0; i < 256; i++)
9439 if (XOR (islower (i), ISLOWER (i))
9440 || toupper (i) != TOUPPER (i))
9445 rm -f conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9458 echo "$as_me: program exited with status $ac_status" >&5
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_cv_header_stdc=no
9465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9471 if test $ac_cv_header_stdc = yes; then
9473 cat >>confdefs.h <<\_ACEOF
9474 #define STDC_HEADERS 1
9479 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9480 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9481 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 #include <sys/types.h>
9495 return makedev(0, 0);
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_header_sys_types_h_makedev=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_header_sys_types_h_makedev=no
9519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9523 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9525 if test $ac_cv_header_sys_types_h_makedev = no; then
9526 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9527 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9528 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9529 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9533 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9535 # Is the header compilable?
9536 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9537 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9539 #line $LINENO "configure"
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 $ac_includes_default
9546 #include <sys/mkdev.h>
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_header_compiler=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_header_compiler=no
9567 rm -f conftest.$ac_objext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569 echo "${ECHO_T}$ac_header_compiler" >&6
9571 # Is the header present?
9572 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9573 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <sys/mkdev.h>
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null; then
9591 if test -s conftest.err; then
9592 ac_cpp_err=$ac_c_preproc_warn_flag
9599 if test -z "$ac_cpp_err"; then
9600 ac_header_preproc=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_header_preproc=no
9607 rm -f conftest.err conftest.$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9609 echo "${ECHO_T}$ac_header_preproc" >&6
9611 # So? What about this header?
9612 case $ac_header_compiler:$ac_header_preproc in
9614 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9615 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9620 ## ------------------------------------ ##
9621 ## Report this to bug-autoconf@gnu.org. ##
9622 ## ------------------------------------ ##
9625 sed "s/^/$as_me: WARNING: /" >&2
9628 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9636 ## ------------------------------------ ##
9637 ## Report this to bug-autoconf@gnu.org. ##
9638 ## ------------------------------------ ##
9641 sed "s/^/$as_me: WARNING: /" >&2
9644 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9645 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9646 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9652 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9655 if test $ac_cv_header_sys_mkdev_h = yes; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define MAJOR_IN_MKDEV 1
9665 if test $ac_cv_header_sys_mkdev_h = no; then
9666 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9667 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9668 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9669 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9673 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9675 # Is the header compilable?
9676 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9677 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679 #line $LINENO "configure"
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 $ac_includes_default
9686 #include <sys/sysmacros.h>
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690 (eval $ac_compile) 2>&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -s conftest.$ac_objext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_header_compiler=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_header_compiler=no
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9709 echo "${ECHO_T}$ac_header_compiler" >&6
9711 # Is the header present?
9712 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9713 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <sys/sysmacros.h>
9723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } >/dev/null; then
9731 if test -s conftest.err; then
9732 ac_cpp_err=$ac_c_preproc_warn_flag
9739 if test -z "$ac_cpp_err"; then
9740 ac_header_preproc=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_header_preproc=no
9747 rm -f conftest.err conftest.$ac_ext
9748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9749 echo "${ECHO_T}$ac_header_preproc" >&6
9751 # So? What about this header?
9752 case $ac_header_compiler:$ac_header_preproc in
9754 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9755 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9757 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9760 ## ------------------------------------ ##
9761 ## Report this to bug-autoconf@gnu.org. ##
9762 ## ------------------------------------ ##
9765 sed "s/^/$as_me: WARNING: /" >&2
9768 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9769 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9771 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9776 ## ------------------------------------ ##
9777 ## Report this to bug-autoconf@gnu.org. ##
9778 ## ------------------------------------ ##
9781 sed "s/^/$as_me: WARNING: /" >&2
9784 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9785 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9786 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9792 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9795 if test $ac_cv_header_sys_sysmacros_h = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define MAJOR_IN_SYSMACROS 1
9813 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9814 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9815 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9816 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <sys/types.h>
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -s conftest.$ac_objext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 eval "$as_ac_Header=yes"
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_Header=no"
9858 rm -f conftest.$ac_objext conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9867 ac_header_dirent=$ac_hdr; break
9871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9872 if test $ac_header_dirent = dirent.h; then
9873 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9875 if test "${ac_cv_search_opendir+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_func_search_save_LIBS=$LIBS
9879 ac_cv_search_opendir=no
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_search_opendir="none required"
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 if test "$ac_cv_search_opendir" = no; then
9923 for ac_lib in dir; do
9924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 #line $LINENO "configure"
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any gcc2 internal prototype to avoid an error. */
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_search_opendir="-l$ac_lib"
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_func_search_save_LIBS
9972 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9973 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9974 if test "$ac_cv_search_opendir" != no; then
9975 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9980 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9982 if test "${ac_cv_search_opendir+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 ac_func_search_save_LIBS=$LIBS
9986 ac_cv_search_opendir=no
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9995 /* Override any gcc2 internal prototype to avoid an error. */
9999 /* We use char because int might match the return type of a gcc2
10000 builtin and then its argument prototype would still apply. */
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -s conftest$ac_exeext'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_search_opendir="none required"
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 if test "$ac_cv_search_opendir" = no; then
10030 for ac_lib in x; do
10031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10032 cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_search_opendir="-l$ac_lib"
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_func_search_save_LIBS
10079 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10080 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10081 if test "$ac_cv_search_opendir" != no; then
10082 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10088 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10089 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10090 if test "${ac_cv_header_stat_broken+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 #include <sys/types.h>
10101 #include <sys/stat.h>
10103 #if defined(S_ISBLK) && defined(S_IFDIR)
10104 # if S_ISBLK (S_IFDIR)
10109 #if defined(S_ISBLK) && defined(S_IFCHR)
10110 # if S_ISBLK (S_IFCHR)
10115 #if defined(S_ISLNK) && defined(S_IFREG)
10116 # if S_ISLNK (S_IFREG)
10121 #if defined(S_ISSOCK) && defined(S_IFREG)
10122 # if S_ISSOCK (S_IFREG)
10128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10129 $EGREP "You lose" >/dev/null 2>&1; then
10130 ac_cv_header_stat_broken=yes
10132 ac_cv_header_stat_broken=no
10137 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10138 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10139 if test $ac_cv_header_stat_broken = yes; then
10141 cat >>confdefs.h <<\_ACEOF
10142 #define STAT_MACROS_BROKEN 1
10147 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10148 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10149 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 #include <sys/types.h>
10160 #include <sys/wait.h>
10161 #ifndef WEXITSTATUS
10162 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10165 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10173 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10178 rm -f conftest.$ac_objext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10180 (eval $ac_compile) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -s conftest.$ac_objext'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_header_sys_wait_h=yes
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 ac_cv_header_sys_wait_h=no
10197 rm -f conftest.$ac_objext conftest.$ac_ext
10199 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10200 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10201 if test $ac_cv_header_sys_wait_h = yes; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_SYS_WAIT_H 1
10209 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10210 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10211 if test "${ac_cv_header_time+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 #include <sys/types.h>
10222 #include <sys/time.h>
10228 if ((struct tm *) 0)
10234 rm -f conftest.$ac_objext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10236 (eval $ac_compile) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -s conftest.$ac_objext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 ac_cv_header_time=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_header_time=no
10253 rm -f conftest.$ac_objext conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10256 echo "${ECHO_T}$ac_cv_header_time" >&6
10257 if test $ac_cv_header_time = yes; then
10259 cat >>confdefs.h <<\_ACEOF
10260 #define TIME_WITH_SYS_TIME 1
10266 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10267 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10268 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 $ac_includes_default
10282 static struct stat ac_aggr;
10283 if (ac_aggr.st_blksize)
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -s conftest.$ac_objext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_member_struct_stat_st_blksize=yes
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10317 static struct stat ac_aggr;
10318 if (sizeof ac_aggr.st_blksize)
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_member_struct_stat_st_blksize=yes
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_cv_member_struct_stat_st_blksize=no
10343 rm -f conftest.$ac_objext conftest.$ac_ext
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10348 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10349 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_ST_BLKSIZE 1
10363 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10364 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10365 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10379 static struct stat ac_aggr;
10380 if (ac_aggr.st_blocks)
10386 rm -f conftest.$ac_objext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10388 (eval $ac_compile) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -s conftest.$ac_objext'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 ac_cv_member_struct_stat_st_blocks=yes
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 cat >conftest.$ac_ext <<_ACEOF
10404 #line $LINENO "configure"
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10414 static struct stat ac_aggr;
10415 if (sizeof ac_aggr.st_blocks)
10421 rm -f conftest.$ac_objext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -s conftest.$ac_objext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_cv_member_struct_stat_st_blocks=yes
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 ac_cv_member_struct_stat_st_blocks=no
10440 rm -f conftest.$ac_objext conftest.$ac_ext
10442 rm -f conftest.$ac_objext conftest.$ac_ext
10444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10445 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10446 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10453 cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_ST_BLOCKS 1
10458 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10462 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10463 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10464 if test "${ac_cv_struct_tm+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 cat >conftest.$ac_ext <<_ACEOF
10468 #line $LINENO "configure"
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 #include <sys/types.h>
10480 struct tm *tp; tp->tm_sec;
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487 (eval $ac_compile) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -s conftest.$ac_objext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 ac_cv_struct_tm=time.h
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_cv_struct_tm=sys/time.h
10504 rm -f conftest.$ac_objext conftest.$ac_ext
10506 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10507 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10508 if test $ac_cv_struct_tm = sys/time.h; then
10510 cat >>confdefs.h <<\_ACEOF
10511 #define TM_IN_SYS_TIME 1
10516 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10517 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10518 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 cat >conftest.$ac_ext <<_ACEOF
10522 #line $LINENO "configure"
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 #include <sys/types.h>
10529 #include <$ac_cv_struct_tm>
10535 static struct tm ac_aggr;
10536 if (ac_aggr.tm_zone)
10542 rm -f conftest.$ac_objext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -s conftest.$ac_objext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_member_struct_tm_tm_zone=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <sys/types.h>
10567 #include <$ac_cv_struct_tm>
10573 static struct tm ac_aggr;
10574 if (sizeof ac_aggr.tm_zone)
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_member_struct_tm_tm_zone=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_cv_member_struct_tm_tm_zone=no
10599 rm -f conftest.$ac_objext conftest.$ac_ext
10601 rm -f conftest.$ac_objext conftest.$ac_ext
10603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10605 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_STRUCT_TM_TM_ZONE 1
10614 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_TM_ZONE 1
10621 echo "$as_me:$LINENO: checking for tzname" >&5
10622 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10623 if test "${ac_cv_var_tzname+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 cat >conftest.$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10634 #ifndef tzname /* For SGI. */
10635 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_var_tzname=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_cv_var_tzname=no
10665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10668 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10669 if test $ac_cv_var_tzname = yes; then
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_TZNAME 1
10679 echo "$as_me:$LINENO: checking for utime.h" >&5
10680 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10681 if test "${ba_cv_header_utime_h+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10685 #line $LINENO "configure"
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10692 #include <sys/types.h>
10702 rm -f conftest.$ac_objext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10704 (eval $ac_compile) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ba_cv_header_utime_h=yes
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ba_cv_header_utime_h=no
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10724 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10725 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_UTIME_H 1
10730 echo "$as_me:$LINENO: checking for socklen_t" >&5
10731 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10732 if test "${ba_cv_header_socklen_t+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10743 #include <sys/types.h>
10744 #include <sys/socket.h>
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -s conftest.$ac_objext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ba_cv_header_socklen_t=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ba_cv_header_socklen_t=no
10772 rm -f conftest.$ac_objext conftest.$ac_ext
10774 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10775 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10776 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10777 #define HAVE_SOCKLEN_T 1
10781 echo "$as_me:$LINENO: checking for bigendian" >&5
10782 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10783 if test "${ba_cv_bigendian+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 if test "$cross_compiling" = yes; then
10789 cat >conftest.$ac_ext <<_ACEOF
10790 #line $LINENO "configure"
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10798 rm -f conftest$ac_exeext
10799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10800 (eval $ac_link) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ba_cv_bigendian=yes
10811 echo "$as_me: program exited with status $ac_status" >&5
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ( exit $ac_status )
10818 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10821 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10822 echo "${ECHO_T}$ba_cv_bigendian" >&6
10823 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10824 #define HAVE_BIGENDIAN 1
10829 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10830 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10831 if test "${ac_cv_c_const+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10845 /* FIXME: Include the comments suggested by Paul. */
10846 #ifndef __cplusplus
10847 /* Ultrix mips cc rejects this. */
10848 typedef int charset[2];
10850 /* SunOS 4.1.1 cc rejects this. */
10851 char const *const *ccp;
10853 /* NEC SVR4.0.2 mips cc rejects this. */
10854 struct point {int x, y;};
10855 static struct point const zero = {0,0};
10856 /* AIX XL C 1.02.0.0 rejects this.
10857 It does not let you subtract one const X* pointer from another in
10858 an arm of an if-expression whose if-part is not a constant
10860 const char *g = "string";
10861 ccp = &g + (g ? g-g : 0);
10862 /* HPUX 7.0 cc rejects these. */
10865 ccp = (char const *const *) p;
10866 { /* SCO 3.2v4 cc rejects this. */
10868 char const *s = 0 ? (char *) 0 : (char const *) 0;
10872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10873 int x[] = {25, 17};
10874 const int *foo = &x[0];
10877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10878 typedef const int *iptr;
10882 { /* AIX XL C 1.02.0.0 rejects this saying
10883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10884 struct s { int j; const int *ap[3]; };
10885 struct s *b; b->j = 5;
10887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10888 const int foo = 10;
10896 rm -f conftest.$ac_objext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -s conftest.$ac_objext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10915 rm -f conftest.$ac_objext conftest.$ac_ext
10917 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10918 echo "${ECHO_T}$ac_cv_c_const" >&6
10919 if test $ac_cv_c_const = no; then
10921 cat >>confdefs.h <<\_ACEOF
10929 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10930 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10932 # The order of these tests is important.
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 #include <sys/statvfs.h>
10941 #include <sys/fstyp.h>
10943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } >/dev/null; then
10951 if test -s conftest.err; then
10952 ac_cpp_err=$ac_c_preproc_warn_flag
10959 if test -z "$ac_cpp_err"; then
10960 cat >>confdefs.h <<\_ACEOF
10961 #define FSTYPE_STATVFS 1
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10970 rm -f conftest.err conftest.$ac_ext
10971 if test $fstype = no; then
10972 cat >conftest.$ac_ext <<_ACEOF
10973 #line $LINENO "configure"
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10979 #include <sys/statfs.h>
10980 #include <sys/fstyp.h>
10982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } >/dev/null; then
10990 if test -s conftest.err; then
10991 ac_cpp_err=$ac_c_preproc_warn_flag
10998 if test -z "$ac_cpp_err"; then
10999 cat >>confdefs.h <<\_ACEOF
11000 #define FSTYPE_USG_STATFS 1
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11009 rm -f conftest.err conftest.$ac_ext
11011 if test $fstype = no; then
11012 cat >conftest.$ac_ext <<_ACEOF
11013 #line $LINENO "configure"
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 #include <sys/statfs.h>
11020 #include <sys/vmount.h>
11022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11025 grep -v '^ *+' conftest.er1 >conftest.err
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } >/dev/null; then
11030 if test -s conftest.err; then
11031 ac_cpp_err=$ac_c_preproc_warn_flag
11038 if test -z "$ac_cpp_err"; then
11039 cat >>confdefs.h <<\_ACEOF
11040 #define FSTYPE_AIX_STATFS 1
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11049 rm -f conftest.err conftest.$ac_ext
11051 if test $fstype = no; then
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <mntent.h>
11061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } >/dev/null; then
11069 if test -s conftest.err; then
11070 ac_cpp_err=$ac_c_preproc_warn_flag
11077 if test -z "$ac_cpp_err"; then
11078 cat >>confdefs.h <<\_ACEOF
11079 #define FSTYPE_MNTENT 1
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11088 rm -f conftest.err conftest.$ac_ext
11090 if test $fstype = no; then
11091 cat >conftest.$ac_ext <<_ACEOF
11092 #line $LINENO "configure"
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 #include <sys/mount.h>
11101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11102 $EGREP "f_type;" >/dev/null 2>&1; then
11103 cat >>confdefs.h <<\_ACEOF
11104 #define FSTYPE_STATFS 1
11111 if test $fstype = no; then
11112 cat >conftest.$ac_ext <<_ACEOF
11113 #line $LINENO "configure"
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 #include <sys/mount.h>
11120 #include <sys/fs_types.h>
11122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null; then
11130 if test -s conftest.err; then
11131 ac_cpp_err=$ac_c_preproc_warn_flag
11138 if test -z "$ac_cpp_err"; then
11139 cat >>confdefs.h <<\_ACEOF
11140 #define FSTYPE_GETMNT 1
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11149 rm -f conftest.err conftest.$ac_ext
11151 echo "$as_me:$LINENO: result: $fstype" >&5
11152 echo "${ECHO_T}$fstype" >&6
11154 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11155 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11156 if test "${ac_cv_type_signal+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 #include <sys/types.h>
11167 #include <signal.h>
11172 extern "C" void (*signal (int, void (*)(int)))(int);
11174 void (*signal ()) ();
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -s conftest.$ac_objext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_type_signal=void
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_cv_type_signal=int
11204 rm -f conftest.$ac_objext conftest.$ac_ext
11206 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11207 echo "${ECHO_T}$ac_cv_type_signal" >&6
11209 cat >>confdefs.h <<_ACEOF
11210 #define RETSIGTYPE $ac_cv_type_signal
11215 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11216 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11217 if test "${bash_cv_signal_vintage+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 #include <signal.h>
11234 struct sigaction sa;
11235 sigemptyset(&ss); sigsuspend(&ss);
11236 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11237 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11243 rm -f conftest.$ac_objext conftest$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -s conftest$ac_exeext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 bash_cv_signal_vintage=posix
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11261 cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include <signal.h>
11273 int mask = sigmask(SIGINT);
11274 sigsetmask(mask); sigblock(mask); sigpause(mask);
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282 (eval $ac_link) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 bash_cv_signal_vintage=4.2bsd
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11298 cat >conftest.$ac_ext <<_ACEOF
11299 #line $LINENO "configure"
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11306 #include <signal.h>
11307 RETSIGTYPE foo() { }
11312 int mask = sigmask(SIGINT);
11313 sigset(SIGINT, foo); sigrelse(SIGINT);
11314 sighold(SIGINT); sigpause(SIGINT);
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -s conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 bash_cv_signal_vintage=svr3
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 bash_cv_signal_vintage=v7
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11350 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11351 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11352 if test "$bash_cv_signal_vintage" = posix; then
11353 cat >>confdefs.h <<\_ACEOF
11354 #define HAVE_POSIX_SIGNALS 1
11357 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_BSD_SIGNALS 1
11362 elif test "$bash_cv_signal_vintage" = svr3; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define HAVE_USG_SIGHOLD 1
11369 echo "$as_me:$LINENO: checking for mode_t" >&5
11370 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11371 if test "${ac_cv_type_mode_t+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11375 #line $LINENO "configure"
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 $ac_includes_default
11387 if (sizeof (mode_t))
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_cv_type_mode_t=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_cv_type_mode_t=no
11412 rm -f conftest.$ac_objext conftest.$ac_ext
11414 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11415 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11416 if test $ac_cv_type_mode_t = yes; then
11420 cat >>confdefs.h <<_ACEOF
11426 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11427 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11428 if test "${ac_cv_type_uid_t+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 cat >conftest.$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <sys/types.h>
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 $EGREP "uid_t" >/dev/null 2>&1; then
11443 ac_cv_type_uid_t=yes
11445 ac_cv_type_uid_t=no
11450 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11451 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11452 if test $ac_cv_type_uid_t = no; then
11454 cat >>confdefs.h <<\_ACEOF
11459 cat >>confdefs.h <<\_ACEOF
11465 echo "$as_me:$LINENO: checking for size_t" >&5
11466 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11467 if test "${ac_cv_type_size_t+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 cat >conftest.$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 $ac_includes_default
11483 if (sizeof (size_t))
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_type_size_t=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_cv_type_size_t=no
11508 rm -f conftest.$ac_objext conftest.$ac_ext
11510 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11511 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11512 if test $ac_cv_type_size_t = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define size_t unsigned
11522 echo "$as_me:$LINENO: checking for pid_t" >&5
11523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11524 if test "${ac_cv_type_pid_t+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11540 if (sizeof (pid_t))
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548 (eval $ac_compile) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_type_pid_t=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_cv_type_pid_t=no
11565 rm -f conftest.$ac_objext conftest.$ac_ext
11567 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11568 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11569 if test $ac_cv_type_pid_t = yes; then
11573 cat >>confdefs.h <<_ACEOF
11579 echo "$as_me:$LINENO: checking for off_t" >&5
11580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11581 if test "${ac_cv_type_off_t+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 cat >conftest.$ac_ext <<_ACEOF
11585 #line $LINENO "configure"
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 $ac_includes_default
11597 if (sizeof (off_t))
11603 rm -f conftest.$ac_objext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -s conftest.$ac_objext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 ac_cv_type_off_t=yes
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ac_cv_type_off_t=no
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11624 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11625 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11626 if test $ac_cv_type_off_t = yes; then
11630 cat >>confdefs.h <<_ACEOF
11636 echo "$as_me:$LINENO: checking for ino_t" >&5
11637 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11638 if test "${ac_cv_type_ino_t+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 $ac_includes_default
11654 if (sizeof (ino_t))
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_cv_type_ino_t=yes
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_cv_type_ino_t=no
11679 rm -f conftest.$ac_objext conftest.$ac_ext
11681 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11682 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11683 if test $ac_cv_type_ino_t = yes; then
11687 cat >>confdefs.h <<_ACEOF
11688 #define ino_t unsigned long
11693 echo "$as_me:$LINENO: checking for dev_t" >&5
11694 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11695 if test "${ac_cv_type_dev_t+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 $ac_includes_default
11711 if (sizeof (dev_t))
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_type_dev_t=yes
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_cv_type_dev_t=no
11736 rm -f conftest.$ac_objext conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11739 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11740 if test $ac_cv_type_dev_t = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define dev_t unsigned long
11750 echo "$as_me:$LINENO: checking for daddr_t" >&5
11751 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11752 if test "${ac_cv_type_daddr_t+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 $ac_includes_default
11768 if (sizeof (daddr_t))
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -s conftest.$ac_objext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_cv_type_daddr_t=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_cv_type_daddr_t=no
11793 rm -f conftest.$ac_objext conftest.$ac_ext
11795 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11796 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11797 if test $ac_cv_type_daddr_t = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define daddr_t long
11807 echo "$as_me:$LINENO: checking for major_t" >&5
11808 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11809 if test "${ac_cv_type_major_t+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 cat >conftest.$ac_ext <<_ACEOF
11813 #line $LINENO "configure"
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 $ac_includes_default
11825 if (sizeof (major_t))
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833 (eval $ac_compile) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -s conftest.$ac_objext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_cv_type_major_t=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_type_major_t=no
11850 rm -f conftest.$ac_objext conftest.$ac_ext
11852 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11853 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11854 if test $ac_cv_type_major_t = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define major_t int
11864 echo "$as_me:$LINENO: checking for minor_t" >&5
11865 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11866 if test "${ac_cv_type_minor_t+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 $ac_includes_default
11882 if (sizeof (minor_t))
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_type_minor_t=yes
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_type_minor_t=no
11907 rm -f conftest.$ac_objext conftest.$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11910 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11911 if test $ac_cv_type_minor_t = yes; then
11915 cat >>confdefs.h <<_ACEOF
11916 #define minor_t int
11921 echo "$as_me:$LINENO: checking for ssize_t" >&5
11922 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11923 if test "${ac_cv_type_ssize_t+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11939 if (sizeof (ssize_t))
11945 rm -f conftest.$ac_objext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947 (eval $ac_compile) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_type_ssize_t=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_type_ssize_t=no
11964 rm -f conftest.$ac_objext conftest.$ac_ext
11966 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11967 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11968 if test $ac_cv_type_ssize_t = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define ssize_t int
11978 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11979 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11980 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11994 static struct stat ac_aggr;
11995 if (ac_aggr.st_blocks)
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -s conftest.$ac_objext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 ac_cv_member_struct_stat_st_blocks=yes
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line $LINENO "configure"
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 $ac_includes_default
12029 static struct stat ac_aggr;
12030 if (sizeof ac_aggr.st_blocks)
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_member_struct_stat_st_blocks=yes
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_cv_member_struct_stat_st_blocks=no
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12057 rm -f conftest.$ac_objext conftest.$ac_ext
12059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12060 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12061 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12063 cat >>confdefs.h <<_ACEOF
12064 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12068 cat >>confdefs.h <<\_ACEOF
12069 #define HAVE_ST_BLOCKS 1
12073 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12078 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12079 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12080 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12084 #line $LINENO "configure"
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 $ac_includes_default
12094 static struct stat ac_aggr;
12095 if (ac_aggr.st_rdev)
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest.$ac_objext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_cv_member_struct_stat_st_rdev=yes
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12129 static struct stat ac_aggr;
12130 if (sizeof ac_aggr.st_rdev)
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_member_struct_stat_st_rdev=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_member_struct_stat_st_rdev=no
12155 rm -f conftest.$ac_objext conftest.$ac_ext
12157 rm -f conftest.$ac_objext conftest.$ac_ext
12159 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12160 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12161 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_STRUCT_STAT_ST_RDEV 1
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_ST_RDEV 1
12175 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12176 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12177 if test "${ac_cv_struct_tm+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 #include <sys/types.h>
12193 struct tm *tp; tp->tm_sec;
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_struct_tm=time.h
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12215 ac_cv_struct_tm=sys/time.h
12217 rm -f conftest.$ac_objext conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12220 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12221 if test $ac_cv_struct_tm = sys/time.h; then
12223 cat >>confdefs.h <<\_ACEOF
12224 #define TM_IN_SYS_TIME 1
12229 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12231 if test "${ac_cv_c_const+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 cat >conftest.$ac_ext <<_ACEOF
12235 #line $LINENO "configure"
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12245 /* FIXME: Include the comments suggested by Paul. */
12246 #ifndef __cplusplus
12247 /* Ultrix mips cc rejects this. */
12248 typedef int charset[2];
12250 /* SunOS 4.1.1 cc rejects this. */
12251 char const *const *ccp;
12253 /* NEC SVR4.0.2 mips cc rejects this. */
12254 struct point {int x, y;};
12255 static struct point const zero = {0,0};
12256 /* AIX XL C 1.02.0.0 rejects this.
12257 It does not let you subtract one const X* pointer from another in
12258 an arm of an if-expression whose if-part is not a constant
12260 const char *g = "string";
12261 ccp = &g + (g ? g-g : 0);
12262 /* HPUX 7.0 cc rejects these. */
12265 ccp = (char const *const *) p;
12266 { /* SCO 3.2v4 cc rejects this. */
12268 char const *s = 0 ? (char *) 0 : (char const *) 0;
12272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12273 int x[] = {25, 17};
12274 const int *foo = &x[0];
12277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12278 typedef const int *iptr;
12282 { /* AIX XL C 1.02.0.0 rejects this saying
12283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12284 struct s { int j; const int *ap[3]; };
12285 struct s *b; b->j = 5;
12287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12288 const int foo = 10;
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298 (eval $ac_compile) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12315 rm -f conftest.$ac_objext conftest.$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12318 echo "${ECHO_T}$ac_cv_c_const" >&6
12319 if test $ac_cv_c_const = no; then
12321 cat >>confdefs.h <<\_ACEOF
12329 echo "$as_me:$LINENO: checking for char" >&5
12330 echo $ECHO_N "checking for char... $ECHO_C" >&6
12331 if test "${ac_cv_type_char+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_type_char=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12372 rm -f conftest.$ac_objext conftest.$ac_ext
12374 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12375 echo "${ECHO_T}$ac_cv_type_char" >&6
12377 echo "$as_me:$LINENO: checking size of char" >&5
12378 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12379 if test "${ac_cv_sizeof_char+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 if test "$ac_cv_type_char" = yes; then
12383 # The cast to unsigned long works around a bug in the HP C Compiler
12384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12386 # This bug is HP SR number 8606223364.
12387 if test "$cross_compiling" = yes; then
12388 # Depending upon the size, compute the lo and hi bounds.
12389 cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 $ac_includes_default
12400 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409 (eval $ac_compile) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -s conftest.$ac_objext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12421 cat >conftest.$ac_ext <<_ACEOF
12422 #line $LINENO "configure"
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 $ac_includes_default
12432 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -s conftest.$ac_objext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_hi=$ac_mid; break
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_lo=`expr $ac_mid + 1`
12457 if test $ac_lo -le $ac_mid; then
12461 ac_mid=`expr 2 '*' $ac_mid + 1`
12463 rm -f conftest.$ac_objext conftest.$ac_ext
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 cat >conftest.$ac_ext <<_ACEOF
12470 #line $LINENO "configure"
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 $ac_includes_default
12480 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12487 rm -f conftest.$ac_objext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489 (eval $ac_compile) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12501 cat >conftest.$ac_ext <<_ACEOF
12502 #line $LINENO "configure"
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 $ac_includes_default
12512 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -s conftest.$ac_objext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_lo=$ac_mid; break
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 ac_hi=`expr '(' $ac_mid ')' - 1`
12537 if test $ac_mid -le $ac_hi; then
12541 ac_mid=`expr 2 '*' $ac_mid`
12543 rm -f conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12551 rm -f conftest.$ac_objext conftest.$ac_ext
12553 rm -f conftest.$ac_objext conftest.$ac_ext
12554 # Binary search between lo and hi bounds.
12555 while test "x$ac_lo" != "x$ac_hi"; do
12556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12557 cat >conftest.$ac_ext <<_ACEOF
12558 #line $LINENO "configure"
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 $ac_includes_default
12568 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_lo=`expr '(' $ac_mid ')' + 1`
12594 rm -f conftest.$ac_objext conftest.$ac_ext
12597 ?*) ac_cv_sizeof_char=$ac_lo;;
12598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12599 See \`config.log' for more details." >&5
12600 echo "$as_me: error: cannot compute sizeof (char), 77
12601 See \`config.log' for more details." >&2;}
12602 { (exit 1); exit 1; }; } ;;
12605 if test "$cross_compiling" = yes; then
12606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12607 See \`config.log' for more details." >&5
12608 echo "$as_me: error: cannot run test program while cross compiling
12609 See \`config.log' for more details." >&2;}
12610 { (exit 1); exit 1; }; }
12612 cat >conftest.$ac_ext <<_ACEOF
12613 #line $LINENO "configure"
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 long longval () { return (long) (sizeof (char)); }
12621 unsigned long ulongval () { return (long) (sizeof (char)); }
12623 #include <stdlib.h>
12628 FILE *f = fopen ("conftest.val", "w");
12631 if (((long) (sizeof (char))) < 0)
12633 long i = longval ();
12634 if (i != ((long) (sizeof (char))))
12636 fprintf (f, "%ld\n", i);
12640 unsigned long i = ulongval ();
12641 if (i != ((long) (sizeof (char))))
12643 fprintf (f, "%lu\n", i);
12645 exit (ferror (f) || fclose (f) != 0);
12651 rm -f conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_sizeof_char=`cat conftest.val`
12664 echo "$as_me: program exited with status $ac_status" >&5
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ( exit $ac_status )
12669 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12670 See \`config.log' for more details." >&5
12671 echo "$as_me: error: cannot compute sizeof (char), 77
12672 See \`config.log' for more details." >&2;}
12673 { (exit 1); exit 1; }; }
12675 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12680 ac_cv_sizeof_char=0
12683 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12684 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12685 cat >>confdefs.h <<_ACEOF
12686 #define SIZEOF_CHAR $ac_cv_sizeof_char
12690 echo "$as_me:$LINENO: checking for short int" >&5
12691 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12692 if test "${ac_cv_type_short_int+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 $ac_includes_default
12706 if ((short int *) 0)
12708 if (sizeof (short int))
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_type_short_int=yes
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 ac_cv_type_short_int=no
12733 rm -f conftest.$ac_objext conftest.$ac_ext
12735 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12736 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12738 echo "$as_me:$LINENO: checking size of short int" >&5
12739 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12740 if test "${ac_cv_sizeof_short_int+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 if test "$ac_cv_type_short_int" = yes; then
12744 # The cast to unsigned long works around a bug in the HP C Compiler
12745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12747 # This bug is HP SR number 8606223364.
12748 if test "$cross_compiling" = yes; then
12749 # Depending upon the size, compute the lo and hi bounds.
12750 cat >conftest.$ac_ext <<_ACEOF
12751 #line $LINENO "configure"
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 $ac_includes_default
12761 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12768 rm -f conftest.$ac_objext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -s conftest.$ac_objext'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12782 cat >conftest.$ac_ext <<_ACEOF
12783 #line $LINENO "configure"
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12793 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } &&
12806 { ac_try='test -s conftest.$ac_objext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_hi=$ac_mid; break
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_lo=`expr $ac_mid + 1`
12818 if test $ac_lo -le $ac_mid; then
12822 ac_mid=`expr 2 '*' $ac_mid + 1`
12824 rm -f conftest.$ac_objext conftest.$ac_ext
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 cat >conftest.$ac_ext <<_ACEOF
12831 #line $LINENO "configure"
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 $ac_includes_default
12841 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12862 cat >conftest.$ac_ext <<_ACEOF
12863 #line $LINENO "configure"
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 $ac_includes_default
12873 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12880 rm -f conftest.$ac_objext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12882 (eval $ac_compile) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -s conftest.$ac_objext'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }; then
12892 ac_lo=$ac_mid; break
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 ac_hi=`expr '(' $ac_mid ')' - 1`
12898 if test $ac_mid -le $ac_hi; then
12902 ac_mid=`expr 2 '*' $ac_mid`
12904 rm -f conftest.$ac_objext conftest.$ac_ext
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12912 rm -f conftest.$ac_objext conftest.$ac_ext
12914 rm -f conftest.$ac_objext conftest.$ac_ext
12915 # Binary search between lo and hi bounds.
12916 while test "x$ac_lo" != "x$ac_hi"; do
12917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12918 cat >conftest.$ac_ext <<_ACEOF
12919 #line $LINENO "configure"
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12929 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938 (eval $ac_compile) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -s conftest.$ac_objext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 ac_lo=`expr '(' $ac_mid ')' + 1`
12955 rm -f conftest.$ac_objext conftest.$ac_ext
12958 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12959 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12960 See \`config.log' for more details." >&5
12961 echo "$as_me: error: cannot compute sizeof (short int), 77
12962 See \`config.log' for more details." >&2;}
12963 { (exit 1); exit 1; }; } ;;
12966 if test "$cross_compiling" = yes; then
12967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12968 See \`config.log' for more details." >&5
12969 echo "$as_me: error: cannot run test program while cross compiling
12970 See \`config.log' for more details." >&2;}
12971 { (exit 1); exit 1; }; }
12973 cat >conftest.$ac_ext <<_ACEOF
12974 #line $LINENO "configure"
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 $ac_includes_default
12981 long longval () { return (long) (sizeof (short int)); }
12982 unsigned long ulongval () { return (long) (sizeof (short int)); }
12984 #include <stdlib.h>
12989 FILE *f = fopen ("conftest.val", "w");
12992 if (((long) (sizeof (short int))) < 0)
12994 long i = longval ();
12995 if (i != ((long) (sizeof (short int))))
12997 fprintf (f, "%ld\n", i);
13001 unsigned long i = ulongval ();
13002 if (i != ((long) (sizeof (short int))))
13004 fprintf (f, "%lu\n", i);
13006 exit (ferror (f) || fclose (f) != 0);
13012 rm -f conftest$ac_exeext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13014 (eval $ac_link) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_sizeof_short_int=`cat conftest.val`
13025 echo "$as_me: program exited with status $ac_status" >&5
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ( exit $ac_status )
13030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13031 See \`config.log' for more details." >&5
13032 echo "$as_me: error: cannot compute sizeof (short int), 77
13033 See \`config.log' for more details." >&2;}
13034 { (exit 1); exit 1; }; }
13036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13041 ac_cv_sizeof_short_int=0
13044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13045 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13046 cat >>confdefs.h <<_ACEOF
13047 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13051 echo "$as_me:$LINENO: checking for int" >&5
13052 echo $ECHO_N "checking for int... $ECHO_C" >&6
13053 if test "${ac_cv_type_int+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 cat >conftest.$ac_ext <<_ACEOF
13057 #line $LINENO "configure"
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13063 $ac_includes_default
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077 (eval $ac_compile) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13094 rm -f conftest.$ac_objext conftest.$ac_ext
13096 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13097 echo "${ECHO_T}$ac_cv_type_int" >&6
13099 echo "$as_me:$LINENO: checking size of int" >&5
13100 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13101 if test "${ac_cv_sizeof_int+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 if test "$ac_cv_type_int" = yes; then
13105 # The cast to unsigned long works around a bug in the HP C Compiler
13106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13108 # This bug is HP SR number 8606223364.
13109 if test "$cross_compiling" = yes; then
13110 # Depending upon the size, compute the lo and hi bounds.
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line $LINENO "configure"
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13122 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest.$ac_objext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13143 cat >conftest.$ac_ext <<_ACEOF
13144 #line $LINENO "configure"
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 $ac_includes_default
13154 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_hi=$ac_mid; break
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_lo=`expr $ac_mid + 1`
13179 if test $ac_lo -le $ac_mid; then
13183 ac_mid=`expr 2 '*' $ac_mid + 1`
13185 rm -f conftest.$ac_objext conftest.$ac_ext
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 $ac_includes_default
13202 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -s conftest.$ac_objext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13223 cat >conftest.$ac_ext <<_ACEOF
13224 #line $LINENO "configure"
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 $ac_includes_default
13234 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_lo=$ac_mid; break
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 ac_hi=`expr '(' $ac_mid ')' - 1`
13259 if test $ac_mid -le $ac_hi; then
13263 ac_mid=`expr 2 '*' $ac_mid`
13265 rm -f conftest.$ac_objext conftest.$ac_ext
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13273 rm -f conftest.$ac_objext conftest.$ac_ext
13275 rm -f conftest.$ac_objext conftest.$ac_ext
13276 # Binary search between lo and hi bounds.
13277 while test "x$ac_lo" != "x$ac_hi"; do
13278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13279 cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13290 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_lo=`expr '(' $ac_mid ')' + 1`
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13319 ?*) ac_cv_sizeof_int=$ac_lo;;
13320 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13321 See \`config.log' for more details." >&5
13322 echo "$as_me: error: cannot compute sizeof (int), 77
13323 See \`config.log' for more details." >&2;}
13324 { (exit 1); exit 1; }; } ;;
13327 if test "$cross_compiling" = yes; then
13328 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13329 See \`config.log' for more details." >&5
13330 echo "$as_me: error: cannot run test program while cross compiling
13331 See \`config.log' for more details." >&2;}
13332 { (exit 1); exit 1; }; }
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 $ac_includes_default
13342 long longval () { return (long) (sizeof (int)); }
13343 unsigned long ulongval () { return (long) (sizeof (int)); }
13345 #include <stdlib.h>
13350 FILE *f = fopen ("conftest.val", "w");
13353 if (((long) (sizeof (int))) < 0)
13355 long i = longval ();
13356 if (i != ((long) (sizeof (int))))
13358 fprintf (f, "%ld\n", i);
13362 unsigned long i = ulongval ();
13363 if (i != ((long) (sizeof (int))))
13365 fprintf (f, "%lu\n", i);
13367 exit (ferror (f) || fclose (f) != 0);
13373 rm -f conftest$ac_exeext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13375 (eval $ac_link) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_cv_sizeof_int=`cat conftest.val`
13386 echo "$as_me: program exited with status $ac_status" >&5
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 ( exit $ac_status )
13391 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13392 See \`config.log' for more details." >&5
13393 echo "$as_me: error: cannot compute sizeof (int), 77
13394 See \`config.log' for more details." >&2;}
13395 { (exit 1); exit 1; }; }
13397 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13405 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13406 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13407 cat >>confdefs.h <<_ACEOF
13408 #define SIZEOF_INT $ac_cv_sizeof_int
13412 echo "$as_me:$LINENO: checking for long int" >&5
13413 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13414 if test "${ac_cv_type_long_int+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line $LINENO "configure"
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13424 $ac_includes_default
13428 if ((long int *) 0)
13430 if (sizeof (long int))
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_type_long_int=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_type_long_int=no
13455 rm -f conftest.$ac_objext conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13458 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13460 echo "$as_me:$LINENO: checking size of long int" >&5
13461 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13462 if test "${ac_cv_sizeof_long_int+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 if test "$ac_cv_type_long_int" = yes; then
13466 # The cast to unsigned long works around a bug in the HP C Compiler
13467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13469 # This bug is HP SR number 8606223364.
13470 if test "$cross_compiling" = yes; then
13471 # Depending upon the size, compute the lo and hi bounds.
13472 cat >conftest.$ac_ext <<_ACEOF
13473 #line $LINENO "configure"
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 $ac_includes_default
13483 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492 (eval $ac_compile) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13504 cat >conftest.$ac_ext <<_ACEOF
13505 #line $LINENO "configure"
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13515 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_hi=$ac_mid; break
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_lo=`expr $ac_mid + 1`
13540 if test $ac_lo -le $ac_mid; then
13544 ac_mid=`expr 2 '*' $ac_mid + 1`
13546 rm -f conftest.$ac_objext conftest.$ac_ext
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 $ac_includes_default
13563 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13584 cat >conftest.$ac_ext <<_ACEOF
13585 #line $LINENO "configure"
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13595 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_lo=$ac_mid; break
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13619 ac_hi=`expr '(' $ac_mid ')' - 1`
13620 if test $ac_mid -le $ac_hi; then
13624 ac_mid=`expr 2 '*' $ac_mid`
13626 rm -f conftest.$ac_objext conftest.$ac_ext
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13634 rm -f conftest.$ac_objext conftest.$ac_ext
13636 rm -f conftest.$ac_objext conftest.$ac_ext
13637 # Binary search between lo and hi bounds.
13638 while test "x$ac_lo" != "x$ac_hi"; do
13639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13640 cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 $ac_includes_default
13651 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 ac_lo=`expr '(' $ac_mid ')' + 1`
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13680 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13682 See \`config.log' for more details." >&5
13683 echo "$as_me: error: cannot compute sizeof (long int), 77
13684 See \`config.log' for more details." >&2;}
13685 { (exit 1); exit 1; }; } ;;
13688 if test "$cross_compiling" = yes; then
13689 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13690 See \`config.log' for more details." >&5
13691 echo "$as_me: error: cannot run test program while cross compiling
13692 See \`config.log' for more details." >&2;}
13693 { (exit 1); exit 1; }; }
13695 cat >conftest.$ac_ext <<_ACEOF
13696 #line $LINENO "configure"
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 $ac_includes_default
13703 long longval () { return (long) (sizeof (long int)); }
13704 unsigned long ulongval () { return (long) (sizeof (long int)); }
13706 #include <stdlib.h>
13711 FILE *f = fopen ("conftest.val", "w");
13714 if (((long) (sizeof (long int))) < 0)
13716 long i = longval ();
13717 if (i != ((long) (sizeof (long int))))
13719 fprintf (f, "%ld\n", i);
13723 unsigned long i = ulongval ();
13724 if (i != ((long) (sizeof (long int))))
13726 fprintf (f, "%lu\n", i);
13728 exit (ferror (f) || fclose (f) != 0);
13734 rm -f conftest$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_sizeof_long_int=`cat conftest.val`
13747 echo "$as_me: program exited with status $ac_status" >&5
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ( exit $ac_status )
13752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13753 See \`config.log' for more details." >&5
13754 echo "$as_me: error: cannot compute sizeof (long int), 77
13755 See \`config.log' for more details." >&2;}
13756 { (exit 1); exit 1; }; }
13758 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13763 ac_cv_sizeof_long_int=0
13766 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13767 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13768 cat >>confdefs.h <<_ACEOF
13769 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13773 echo "$as_me:$LINENO: checking for long long int" >&5
13774 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13775 if test "${ac_cv_type_long_long_int+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 $ac_includes_default
13789 if ((long long int *) 0)
13791 if (sizeof (long long int))
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809 ac_cv_type_long_long_int=yes
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ac_cv_type_long_long_int=no
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13819 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13821 echo "$as_me:$LINENO: checking size of long long int" >&5
13822 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13823 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 if test "$ac_cv_type_long_long_int" = yes; then
13827 # The cast to unsigned long works around a bug in the HP C Compiler
13828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13830 # This bug is HP SR number 8606223364.
13831 if test "$cross_compiling" = yes; then
13832 # Depending upon the size, compute the lo and hi bounds.
13833 cat >conftest.$ac_ext <<_ACEOF
13834 #line $LINENO "configure"
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 $ac_includes_default
13844 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13851 rm -f conftest.$ac_objext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13853 (eval $ac_compile) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -s conftest.$ac_objext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13865 cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13876 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885 (eval $ac_compile) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -s conftest.$ac_objext'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_hi=$ac_mid; break
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_lo=`expr $ac_mid + 1`
13901 if test $ac_lo -le $ac_mid; then
13905 ac_mid=`expr 2 '*' $ac_mid + 1`
13907 rm -f conftest.$ac_objext conftest.$ac_ext
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 $ac_includes_default
13924 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13945 cat >conftest.$ac_ext <<_ACEOF
13946 #line $LINENO "configure"
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952 $ac_includes_default
13956 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13963 rm -f conftest.$ac_objext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965 (eval $ac_compile) 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
13969 { ac_try='test -s conftest.$ac_objext'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_lo=$ac_mid; break
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_hi=`expr '(' $ac_mid ')' - 1`
13981 if test $ac_mid -le $ac_hi; then
13985 ac_mid=`expr 2 '*' $ac_mid`
13987 rm -f conftest.$ac_objext conftest.$ac_ext
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13995 rm -f conftest.$ac_objext conftest.$ac_ext
13997 rm -f conftest.$ac_objext conftest.$ac_ext
13998 # Binary search between lo and hi bounds.
13999 while test "x$ac_lo" != "x$ac_hi"; do
14000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14001 cat >conftest.$ac_ext <<_ACEOF
14002 #line $LINENO "configure"
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14012 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_lo=`expr '(' $ac_mid ')' + 1`
14038 rm -f conftest.$ac_objext conftest.$ac_ext
14041 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14042 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14043 See \`config.log' for more details." >&5
14044 echo "$as_me: error: cannot compute sizeof (long long int), 77
14045 See \`config.log' for more details." >&2;}
14046 { (exit 1); exit 1; }; } ;;
14049 if test "$cross_compiling" = yes; then
14050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14051 See \`config.log' for more details." >&5
14052 echo "$as_me: error: cannot run test program while cross compiling
14053 See \`config.log' for more details." >&2;}
14054 { (exit 1); exit 1; }; }
14056 cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 $ac_includes_default
14064 long longval () { return (long) (sizeof (long long int)); }
14065 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14067 #include <stdlib.h>
14072 FILE *f = fopen ("conftest.val", "w");
14075 if (((long) (sizeof (long long int))) < 0)
14077 long i = longval ();
14078 if (i != ((long) (sizeof (long long int))))
14080 fprintf (f, "%ld\n", i);
14084 unsigned long i = ulongval ();
14085 if (i != ((long) (sizeof (long long int))))
14087 fprintf (f, "%lu\n", i);
14089 exit (ferror (f) || fclose (f) != 0);
14095 rm -f conftest$ac_exeext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097 (eval $ac_link) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_sizeof_long_long_int=`cat conftest.val`
14108 echo "$as_me: program exited with status $ac_status" >&5
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ( exit $ac_status )
14113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14114 See \`config.log' for more details." >&5
14115 echo "$as_me: error: cannot compute sizeof (long long int), 77
14116 See \`config.log' for more details." >&2;}
14117 { (exit 1); exit 1; }; }
14119 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14124 ac_cv_sizeof_long_long_int=0
14127 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14128 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14129 cat >>confdefs.h <<_ACEOF
14130 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14134 echo "$as_me:$LINENO: checking for int *" >&5
14135 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14136 if test "${ac_cv_type_int_p+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 cat >conftest.$ac_ext <<_ACEOF
14140 #line $LINENO "configure"
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14152 if (sizeof (int *))
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -s conftest.$ac_objext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_type_int_p=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_type_int_p=no
14177 rm -f conftest.$ac_objext conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14180 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14182 echo "$as_me:$LINENO: checking size of int *" >&5
14183 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14184 if test "${ac_cv_sizeof_int_p+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 if test "$ac_cv_type_int_p" = yes; then
14188 # The cast to unsigned long works around a bug in the HP C Compiler
14189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14191 # This bug is HP SR number 8606223364.
14192 if test "$cross_compiling" = yes; then
14193 # Depending upon the size, compute the lo and hi bounds.
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14205 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14212 rm -f conftest.$ac_objext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14214 (eval $ac_compile) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 $ac_includes_default
14237 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -s conftest.$ac_objext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_hi=$ac_mid; break
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_lo=`expr $ac_mid + 1`
14262 if test $ac_lo -le $ac_mid; then
14266 ac_mid=`expr 2 '*' $ac_mid + 1`
14268 rm -f conftest.$ac_objext conftest.$ac_ext
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 cat >conftest.$ac_ext <<_ACEOF
14275 #line $LINENO "configure"
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 $ac_includes_default
14285 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14306 cat >conftest.$ac_ext <<_ACEOF
14307 #line $LINENO "configure"
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14317 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14324 rm -f conftest.$ac_objext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326 (eval $ac_compile) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_lo=$ac_mid; break
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_hi=`expr '(' $ac_mid ')' - 1`
14342 if test $ac_mid -le $ac_hi; then
14346 ac_mid=`expr 2 '*' $ac_mid`
14348 rm -f conftest.$ac_objext conftest.$ac_ext
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14356 rm -f conftest.$ac_objext conftest.$ac_ext
14358 rm -f conftest.$ac_objext conftest.$ac_ext
14359 # Binary search between lo and hi bounds.
14360 while test "x$ac_lo" != "x$ac_hi"; do
14361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14373 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -s conftest.$ac_objext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_lo=`expr '(' $ac_mid ')' + 1`
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14402 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14403 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14404 See \`config.log' for more details." >&5
14405 echo "$as_me: error: cannot compute sizeof (int *), 77
14406 See \`config.log' for more details." >&2;}
14407 { (exit 1); exit 1; }; } ;;
14410 if test "$cross_compiling" = yes; then
14411 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14412 See \`config.log' for more details." >&5
14413 echo "$as_me: error: cannot run test program while cross compiling
14414 See \`config.log' for more details." >&2;}
14415 { (exit 1); exit 1; }; }
14417 cat >conftest.$ac_ext <<_ACEOF
14418 #line $LINENO "configure"
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 $ac_includes_default
14425 long longval () { return (long) (sizeof (int *)); }
14426 unsigned long ulongval () { return (long) (sizeof (int *)); }
14428 #include <stdlib.h>
14433 FILE *f = fopen ("conftest.val", "w");
14436 if (((long) (sizeof (int *))) < 0)
14438 long i = longval ();
14439 if (i != ((long) (sizeof (int *))))
14441 fprintf (f, "%ld\n", i);
14445 unsigned long i = ulongval ();
14446 if (i != ((long) (sizeof (int *))))
14448 fprintf (f, "%lu\n", i);
14450 exit (ferror (f) || fclose (f) != 0);
14456 rm -f conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458 (eval $ac_link) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_sizeof_int_p=`cat conftest.val`
14469 echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ( exit $ac_status )
14474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14475 See \`config.log' for more details." >&5
14476 echo "$as_me: error: cannot compute sizeof (int *), 77
14477 See \`config.log' for more details." >&2;}
14478 { (exit 1); exit 1; }; }
14480 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14485 ac_cv_sizeof_int_p=0
14488 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14489 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14490 cat >>confdefs.h <<_ACEOF
14491 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14496 # Check for sys/types.h types
14497 echo "$as_me:$LINENO: checking for u_int type" >&5
14498 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14499 if test "${ac_cv_have_u_int+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <sys/types.h>
14519 rm -f conftest.$ac_objext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521 (eval $ac_compile) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_have_u_int="yes"
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_cv_have_u_int="no"
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14542 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14543 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14544 if test "x$ac_cv_have_u_int" = "xyes" ; then
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_U_INT 1
14552 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14553 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14554 if test "${ac_cv_have_intmax_t+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <sys/types.h>
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_cv_have_intmax_t="yes"
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14592 cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 #include <stdint.h>
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_cv_have_intmax_t="yes"
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_cv_have_intmax_t="no"
14628 rm -f conftest.$ac_objext conftest.$ac_ext
14632 rm -f conftest.$ac_objext conftest.$ac_ext
14636 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14637 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14638 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14639 cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_INTMAX_T 1
14647 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14648 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14649 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 cat >conftest.$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 #include <sys/types.h>
14664 u_intmax_t a; a = 1;
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671 (eval $ac_compile) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_have_u_intmax_t="yes"
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14687 cat >conftest.$ac_ext <<_ACEOF
14688 #line $LINENO "configure"
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 #include <stdint.h>
14698 u_intmax_t a; a = 1;
14703 rm -f conftest.$ac_objext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705 (eval $ac_compile) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -s conftest.$ac_objext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_have_u_intmax_t="yes"
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_have_u_intmax_t="no"
14723 rm -f conftest.$ac_objext conftest.$ac_ext
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14730 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14731 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14732 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14733 cat >>confdefs.h <<\_ACEOF
14734 #define HAVE_U_INTMAX_T 1
14741 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14742 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14743 if test "${ac_cv_have_intxx_t+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 cat >conftest.$ac_ext <<_ACEOF
14748 #line $LINENO "configure"
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <sys/types.h>
14758 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14763 rm -f conftest.$ac_objext
14764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_have_intxx_t="yes"
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_have_intxx_t="no"
14783 rm -f conftest.$ac_objext conftest.$ac_ext
14786 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14787 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14788 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_INTXX_T 1
14796 echo "$as_me:$LINENO: checking for int64_t type" >&5
14797 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14798 if test "${ac_cv_have_int64_t+set}" = set; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 cat >conftest.$ac_ext <<_ACEOF
14803 #line $LINENO "configure"
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <sys/types.h>
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_cv_have_int64_t="yes"
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_cv_have_int64_t="no"
14838 rm -f conftest.$ac_objext conftest.$ac_ext
14841 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14842 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14843 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_INT64_T 1
14851 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14852 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14853 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #include <sys/types.h>
14868 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_have_u_intxx_t="yes"
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_cv_have_u_intxx_t="no"
14893 rm -f conftest.$ac_objext conftest.$ac_ext
14896 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14897 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14898 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14899 cat >>confdefs.h <<\_ACEOF
14900 #define HAVE_U_INTXX_T 1
14906 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14907 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14908 if test "${ac_cv_have_u_int64_t+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 cat >conftest.$ac_ext <<_ACEOF
14913 #line $LINENO "configure"
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <sys/types.h>
14923 u_int64_t a; a = 1;
14928 rm -f conftest.$ac_objext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14930 (eval $ac_compile) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_have_u_int64_t="yes"
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_cv_have_u_int64_t="no"
14948 rm -f conftest.$ac_objext conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14952 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14953 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14954 cat >>confdefs.h <<\_ACEOF
14955 #define HAVE_U_INT64_T 1
14961 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14962 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14964 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14965 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14967 #line $LINENO "configure"
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <sys/bitypes.h>
14977 int8_t a; int16_t b; int32_t c;
14978 u_int8_t e; u_int16_t f; u_int32_t g;
14979 a = b = c = e = f = g = 1;
14984 rm -f conftest.$ac_objext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986 (eval $ac_compile) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -s conftest.$ac_objext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_U_INTXX_T 1
15000 cat >>confdefs.h <<\_ACEOF
15001 #define HAVE_INTXX_T 1
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_SYS_BITYPES_H 1
15008 echo "$as_me:$LINENO: result: yes" >&5
15009 echo "${ECHO_T}yes" >&6
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 echo "$as_me:$LINENO: result: no" >&5
15015 echo "${ECHO_T}no" >&6
15018 rm -f conftest.$ac_objext conftest.$ac_ext
15021 if test -z "$have_u_intxx_t" ; then
15022 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15023 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15024 if test "${ac_cv_have_uintxx_t+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <sys/types.h>
15039 uint8_t a; uint16_t b;
15040 uint32_t c; a = b = c = 1;
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -s conftest.$ac_objext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_cv_have_uintxx_t="yes"
15059 echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15062 ac_cv_have_uintxx_t="no"
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15068 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15069 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15070 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15071 cat >>confdefs.h <<\_ACEOF
15072 #define HAVE_UINTXX_T 1
15108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 echo "$as_me:$LINENO: checking for $ac_func" >&5
15110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_var+set}\" = set"; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line $LINENO "configure"
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 /* System header to define __stub macros and hopefully few prototypes,
15122 which can conflict with char $ac_func (); below.
15123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15124 <limits.h> exists even on freestanding compilers. */
15126 # include <limits.h>
15128 # include <assert.h>
15130 /* Override any gcc2 internal prototype to avoid an error. */
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15138 /* The GNU C library defines this for functions which it implements
15139 to always fail with ENOSYS. Some functions are actually named
15140 something starting with __ and the normal name is an alias. */
15141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15144 char (*f) () = $ac_func;
15153 return f != $ac_func;
15158 rm -f conftest.$ac_objext conftest$ac_exeext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160 (eval $ac_link) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -s conftest$ac_exeext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 eval "$as_ac_var=yes"
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 eval "$as_ac_var=no"
15177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15181 if test `eval echo '${'$as_ac_var'}'` = yes; then
15182 cat >>confdefs.h <<_ACEOF
15183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15187 echo 'configure: cannot find needed function.'; exit 1
15194 for ac_func in fchdir
15196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15197 echo "$as_me:$LINENO: checking for $ac_func" >&5
15198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15199 if eval "test \"\${$as_ac_var+set}\" = set"; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 cat >conftest.$ac_ext <<_ACEOF
15203 #line $LINENO "configure"
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 /* System header to define __stub macros and hopefully few prototypes,
15210 which can conflict with char $ac_func (); below.
15211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15212 <limits.h> exists even on freestanding compilers. */
15214 # include <limits.h>
15216 # include <assert.h>
15218 /* Override any gcc2 internal prototype to avoid an error. */
15223 /* We use char because int might match the return type of a gcc2
15224 builtin and then its argument prototype would still apply. */
15226 /* The GNU C library defines this for functions which it implements
15227 to always fail with ENOSYS. Some functions are actually named
15228 something starting with __ and the normal name is an alias. */
15229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15232 char (*f) () = $ac_func;
15241 return f != $ac_func;
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -s conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 eval "$as_ac_var=yes"
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 eval "$as_ac_var=no"
15265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15269 if test `eval echo '${'$as_ac_var'}'` = yes; then
15270 cat >>confdefs.h <<_ACEOF
15271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15273 cat >>confdefs.h <<\_ACEOF
15274 #define HAVE_FCHDIR 1
15281 for ac_func in strtoll
15283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15284 echo "$as_me:$LINENO: checking for $ac_func" >&5
15285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15286 if eval "test \"\${$as_ac_var+set}\" = set"; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 cat >conftest.$ac_ext <<_ACEOF
15290 #line $LINENO "configure"
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 /* System header to define __stub macros and hopefully few prototypes,
15297 which can conflict with char $ac_func (); below.
15298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15299 <limits.h> exists even on freestanding compilers. */
15301 # include <limits.h>
15303 # include <assert.h>
15305 /* Override any gcc2 internal prototype to avoid an error. */
15310 /* We use char because int might match the return type of a gcc2
15311 builtin and then its argument prototype would still apply. */
15313 /* The GNU C library defines this for functions which it implements
15314 to always fail with ENOSYS. Some functions are actually named
15315 something starting with __ and the normal name is an alias. */
15316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15319 char (*f) () = $ac_func;
15328 return f != $ac_func;
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335 (eval $ac_link) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 eval "$as_ac_var=yes"
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 eval "$as_ac_var=no"
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15356 if test `eval echo '${'$as_ac_var'}'` = yes; then
15357 cat >>confdefs.h <<_ACEOF
15358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_STRTOLL 1
15369 for ac_func in chflags
15371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15372 echo "$as_me:$LINENO: checking for $ac_func" >&5
15373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_var+set}\" = set"; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15378 #line $LINENO "configure"
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 /* System header to define __stub macros and hopefully few prototypes,
15385 which can conflict with char $ac_func (); below.
15386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15387 <limits.h> exists even on freestanding compilers. */
15389 # include <limits.h>
15391 # include <assert.h>
15393 /* Override any gcc2 internal prototype to avoid an error. */
15398 /* We use char because int might match the return type of a gcc2
15399 builtin and then its argument prototype would still apply. */
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15407 char (*f) () = $ac_func;
15416 return f != $ac_func;
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15423 (eval $ac_link) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -s conftest$ac_exeext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 eval "$as_ac_var=yes"
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 eval "$as_ac_var=no"
15440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15444 if test `eval echo '${'$as_ac_var'}'` = yes; then
15445 cat >>confdefs.h <<_ACEOF
15446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15457 for ac_func in snprintf vsnprintf gethostid getdomainname
15459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15460 echo "$as_me:$LINENO: checking for $ac_func" >&5
15461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15462 if eval "test \"\${$as_ac_var+set}\" = set"; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 /* System header to define __stub macros and hopefully few prototypes,
15473 which can conflict with char $ac_func (); below.
15474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15475 <limits.h> exists even on freestanding compilers. */
15477 # include <limits.h>
15479 # include <assert.h>
15481 /* Override any gcc2 internal prototype to avoid an error. */
15486 /* We use char because int might match the return type of a gcc2
15487 builtin and then its argument prototype would still apply. */
15489 /* The GNU C library defines this for functions which it implements
15490 to always fail with ENOSYS. Some functions are actually named
15491 something starting with __ and the normal name is an alias. */
15492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15495 char (*f) () = $ac_func;
15504 return f != $ac_func;
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511 (eval $ac_link) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -s conftest$ac_exeext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 eval "$as_ac_var=yes"
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 eval "$as_ac_var=no"
15528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15532 if test `eval echo '${'$as_ac_var'}'` = yes; then
15533 cat >>confdefs.h <<_ACEOF
15534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15545 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15548 echo "$as_me:$LINENO: checking for $ac_func" >&5
15549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15550 if eval "test \"\${$as_ac_var+set}\" = set"; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15554 #line $LINENO "configure"
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15560 /* System header to define __stub macros and hopefully few prototypes,
15561 which can conflict with char $ac_func (); below.
15562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15563 <limits.h> exists even on freestanding compilers. */
15565 # include <limits.h>
15567 # include <assert.h>
15569 /* Override any gcc2 internal prototype to avoid an error. */
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15583 char (*f) () = $ac_func;
15592 return f != $ac_func;
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 eval "$as_ac_var=yes"
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 eval "$as_ac_var=no"
15616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15620 if test `eval echo '${'$as_ac_var'}'` = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15629 # If resolver functions are not in libc check for -lnsl or -lresolv.
15630 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15631 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15632 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 cat >conftest.$ac_ext <<_ACEOF
15636 #line $LINENO "configure"
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* System header to define __stub macros and hopefully few prototypes,
15643 which can conflict with char gethostbyname_r (); below.
15644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15645 <limits.h> exists even on freestanding compilers. */
15647 # include <limits.h>
15649 # include <assert.h>
15651 /* Override any gcc2 internal prototype to avoid an error. */
15656 /* We use char because int might match the return type of a gcc2
15657 builtin and then its argument prototype would still apply. */
15658 char gethostbyname_r ();
15659 /* The GNU C library defines this for functions which it implements
15660 to always fail with ENOSYS. Some functions are actually named
15661 something starting with __ and the normal name is an alias. */
15662 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15665 char (*f) () = gethostbyname_r;
15674 return f != gethostbyname_r;
15679 rm -f conftest.$ac_objext conftest$ac_exeext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_cv_func_gethostbyname_r=yes
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 ac_cv_func_gethostbyname_r=no
15698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15701 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15702 if test $ac_cv_func_gethostbyname_r = yes; then
15703 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15704 echo "${ECHO_T}using libc's resolver" >&6
15707 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15708 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15709 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 ac_check_lib_save_LIBS=$LIBS
15714 cat >conftest.$ac_ext <<_ACEOF
15715 #line $LINENO "configure"
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15722 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15728 char gethostbyname_r ();
15732 gethostbyname_r ();
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739 (eval $ac_link) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_lib_nsl_gethostbyname_r=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_cv_lib_nsl_gethostbyname_r=no
15756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15757 LIBS=$ac_check_lib_save_LIBS
15759 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15760 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15761 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define HAVE_LIBNSL 1
15771 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15772 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15773 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 ac_check_lib_save_LIBS=$LIBS
15777 LIBS="-lresolv $LIBS"
15778 cat >conftest.$ac_ext <<_ACEOF
15779 #line $LINENO "configure"
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15786 /* Override any gcc2 internal prototype to avoid an error. */
15790 /* We use char because int might match the return type of a gcc2
15791 builtin and then its argument prototype would still apply. */
15792 char gethostbyname_r ();
15796 gethostbyname_r ();
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -s conftest$ac_exeext'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 ac_cv_lib_resolv_gethostbyname_r=yes
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_cv_lib_resolv_gethostbyname_r=no
15820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15823 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15824 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15825 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15826 cat >>confdefs.h <<_ACEOF
15827 #define HAVE_LIBRESOLV 1
15830 LIBS="-lresolv $LIBS"
15838 # Find where sockets are (especially for Solaris)
15839 echo "$as_me:$LINENO: checking for socket" >&5
15840 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15841 if test "${ac_cv_func_socket+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 cat >conftest.$ac_ext <<_ACEOF
15845 #line $LINENO "configure"
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 /* System header to define __stub macros and hopefully few prototypes,
15852 which can conflict with char socket (); below.
15853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15854 <limits.h> exists even on freestanding compilers. */
15856 # include <limits.h>
15858 # include <assert.h>
15860 /* Override any gcc2 internal prototype to avoid an error. */
15865 /* We use char because int might match the return type of a gcc2
15866 builtin and then its argument prototype would still apply. */
15868 /* The GNU C library defines this for functions which it implements
15869 to always fail with ENOSYS. Some functions are actually named
15870 something starting with __ and the normal name is an alias. */
15871 #if defined (__stub_socket) || defined (__stub___socket)
15874 char (*f) () = socket;
15883 return f != socket;
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890 (eval $ac_link) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -s conftest$ac_exeext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_cv_func_socket=yes
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_cv_func_socket=no
15907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15909 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15910 echo "${ECHO_T}$ac_cv_func_socket" >&6
15911 if test $ac_cv_func_socket = yes; then
15912 echo "$as_me:$LINENO: result: using libc's socket" >&5
15913 echo "${ECHO_T}using libc's socket" >&6
15916 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15917 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15918 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 ac_check_lib_save_LIBS=$LIBS
15922 LIBS="-lxnet $LIBS"
15923 cat >conftest.$ac_ext <<_ACEOF
15924 #line $LINENO "configure"
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15931 /* Override any gcc2 internal prototype to avoid an error. */
15935 /* We use char because int might match the return type of a gcc2
15936 builtin and then its argument prototype would still apply. */
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15948 (eval $ac_link) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_cv_lib_xnet_socket=yes
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_cv_lib_xnet_socket=no
15965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15966 LIBS=$ac_check_lib_save_LIBS
15968 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15969 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15970 if test $ac_cv_lib_xnet_socket = yes; then
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_LIBXNET 1
15975 LIBS="-lxnet $LIBS"
15980 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15981 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15982 if test "${ac_cv_lib_socket_socket+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 ac_check_lib_save_LIBS=$LIBS
15986 LIBS="-lsocket $LIBS"
15987 cat >conftest.$ac_ext <<_ACEOF
15988 #line $LINENO "configure"
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15995 /* Override any gcc2 internal prototype to avoid an error. */
15999 /* We use char because int might match the return type of a gcc2
16000 builtin and then its argument prototype would still apply. */
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012 (eval $ac_link) 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -s conftest$ac_exeext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_cv_lib_socket_socket=yes
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_cv_lib_socket_socket=no
16029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16030 LIBS=$ac_check_lib_save_LIBS
16032 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16033 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16034 if test $ac_cv_lib_socket_socket = yes; then
16035 cat >>confdefs.h <<_ACEOF
16036 #define HAVE_LIBSOCKET 1
16039 LIBS="-lsocket $LIBS"
16044 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16045 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16046 if test "${ac_cv_lib_inet_socket+set}" = set; then
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16049 ac_check_lib_save_LIBS=$LIBS
16050 LIBS="-linet $LIBS"
16051 cat >conftest.$ac_ext <<_ACEOF
16052 #line $LINENO "configure"
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16059 /* Override any gcc2 internal prototype to avoid an error. */
16063 /* We use char because int might match the return type of a gcc2
16064 builtin and then its argument prototype would still apply. */
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16076 (eval $ac_link) 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_lib_inet_socket=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_lib_inet_socket=no
16093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16096 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16097 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16098 if test $ac_cv_lib_inet_socket = yes; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define HAVE_LIBINET 1
16103 LIBS="-linet $LIBS"
16111 for ac_func in inet_pton
16113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16114 echo "$as_me:$LINENO: checking for $ac_func" >&5
16115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16116 if eval "test \"\${$as_ac_var+set}\" = set"; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 cat >conftest.$ac_ext <<_ACEOF
16120 #line $LINENO "configure"
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 /* System header to define __stub macros and hopefully few prototypes,
16127 which can conflict with char $ac_func (); below.
16128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129 <limits.h> exists even on freestanding compilers. */
16131 # include <limits.h>
16133 # include <assert.h>
16135 /* Override any gcc2 internal prototype to avoid an error. */
16140 /* We use char because int might match the return type of a gcc2
16141 builtin and then its argument prototype would still apply. */
16143 /* The GNU C library defines this for functions which it implements
16144 to always fail with ENOSYS. Some functions are actually named
16145 something starting with __ and the normal name is an alias. */
16146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16149 char (*f) () = $ac_func;
16158 return f != $ac_func;
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16165 (eval $ac_link) 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } &&
16169 { ac_try='test -s conftest$ac_exeext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 eval "$as_ac_var=yes"
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 eval "$as_ac_var=no"
16182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16186 if test `eval echo '${'$as_ac_var'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16190 cat >>confdefs.h <<\_ACEOF
16191 #define HAVE_INET_PTON 1
16199 for ac_func in strftime
16201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16202 echo "$as_me:$LINENO: checking for $ac_func" >&5
16203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16204 if eval "test \"\${$as_ac_var+set}\" = set"; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 cat >conftest.$ac_ext <<_ACEOF
16208 #line $LINENO "configure"
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 /* System header to define __stub macros and hopefully few prototypes,
16215 which can conflict with char $ac_func (); below.
16216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16217 <limits.h> exists even on freestanding compilers. */
16219 # include <limits.h>
16221 # include <assert.h>
16223 /* Override any gcc2 internal prototype to avoid an error. */
16228 /* We use char because int might match the return type of a gcc2
16229 builtin and then its argument prototype would still apply. */
16231 /* The GNU C library defines this for functions which it implements
16232 to always fail with ENOSYS. Some functions are actually named
16233 something starting with __ and the normal name is an alias. */
16234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16237 char (*f) () = $ac_func;
16246 return f != $ac_func;
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253 (eval $ac_link) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try='test -s conftest$ac_exeext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 eval "$as_ac_var=yes"
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16268 eval "$as_ac_var=no"
16270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16274 if test `eval echo '${'$as_ac_var'}'` = yes; then
16275 cat >>confdefs.h <<_ACEOF
16276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280 # strftime is in -lintl on SCO UNIX.
16281 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16282 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16283 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-lintl $LIBS"
16288 cat >conftest.$ac_ext <<_ACEOF
16289 #line $LINENO "configure"
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16296 /* Override any gcc2 internal prototype to avoid an error. */
16300 /* We use char because int might match the return type of a gcc2
16301 builtin and then its argument prototype would still apply. */
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16313 (eval $ac_link) 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -s conftest$ac_exeext'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_cv_lib_intl_strftime=yes
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16328 ac_cv_lib_intl_strftime=no
16330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16331 LIBS=$ac_check_lib_save_LIBS
16333 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16334 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16335 if test $ac_cv_lib_intl_strftime = yes; then
16336 cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_STRFTIME 1
16340 LIBS="-lintl $LIBS"
16347 for ac_func in vprintf
16349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16352 if eval "test \"\${$as_ac_var+set}\" = set"; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16356 #line $LINENO "configure"
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 /* System header to define __stub macros and hopefully few prototypes,
16363 which can conflict with char $ac_func (); below.
16364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16365 <limits.h> exists even on freestanding compilers. */
16367 # include <limits.h>
16369 # include <assert.h>
16371 /* Override any gcc2 internal prototype to avoid an error. */
16376 /* We use char because int might match the return type of a gcc2
16377 builtin and then its argument prototype would still apply. */
16379 /* The GNU C library defines this for functions which it implements
16380 to always fail with ENOSYS. Some functions are actually named
16381 something starting with __ and the normal name is an alias. */
16382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 char (*f) () = $ac_func;
16394 return f != $ac_func;
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16401 (eval $ac_link) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -s conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 eval "$as_ac_var=yes"
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 eval "$as_ac_var=no"
16418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16422 if test `eval echo '${'$as_ac_var'}'` = yes; then
16423 cat >>confdefs.h <<_ACEOF
16424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 echo "$as_me:$LINENO: checking for _doprnt" >&5
16428 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16429 if test "${ac_cv_func__doprnt+set}" = set; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 cat >conftest.$ac_ext <<_ACEOF
16433 #line $LINENO "configure"
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 /* System header to define __stub macros and hopefully few prototypes,
16440 which can conflict with char _doprnt (); below.
16441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16442 <limits.h> exists even on freestanding compilers. */
16444 # include <limits.h>
16446 # include <assert.h>
16448 /* Override any gcc2 internal prototype to avoid an error. */
16453 /* We use char because int might match the return type of a gcc2
16454 builtin and then its argument prototype would still apply. */
16456 /* The GNU C library defines this for functions which it implements
16457 to always fail with ENOSYS. Some functions are actually named
16458 something starting with __ and the normal name is an alias. */
16459 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16462 char (*f) () = _doprnt;
16471 return f != _doprnt;
16476 rm -f conftest.$ac_objext conftest$ac_exeext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16478 (eval $ac_link) 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -s conftest$ac_exeext'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_func__doprnt=yes
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_cv_func__doprnt=no
16495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16497 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16498 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16499 if test $ac_cv_func__doprnt = yes; then
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_DOPRNT 1
16511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16512 # for constant arguments. Useless!
16513 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16514 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16515 if test "${ac_cv_working_alloca_h+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 #include <alloca.h>
16529 char *p = (char *) alloca (2 * sizeof (int));
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16536 (eval $ac_link) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
16540 { ac_try='test -s conftest$ac_exeext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_working_alloca_h=yes
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_cv_working_alloca_h=no
16553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16555 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16557 if test $ac_cv_working_alloca_h = yes; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_ALLOCA_H 1
16565 echo "$as_me:$LINENO: checking for alloca" >&5
16566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16567 if test "${ac_cv_func_alloca_works+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16578 # define alloca __builtin_alloca
16581 # include <malloc.h>
16582 # define alloca _alloca
16585 # include <alloca.h>
16590 # ifndef alloca /* predefined by HP cc +Olibcalls */
16601 char *p = (char *) alloca (1);
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608 (eval $ac_link) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
16612 { ac_try='test -s conftest$ac_exeext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_func_alloca_works=yes
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_cv_func_alloca_works=no
16625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16627 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16628 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16630 if test $ac_cv_func_alloca_works = yes; then
16632 cat >>confdefs.h <<\_ACEOF
16633 #define HAVE_ALLOCA 1
16637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16638 # that cause trouble. Some versions do not even contain alloca or
16639 # contain a buggy version. If you still want to use their alloca,
16640 # use ar to extract alloca.o from them instead of compiling alloca.c.
16642 ALLOCA=alloca.$ac_objext
16644 cat >>confdefs.h <<\_ACEOF
16649 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16650 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16651 if test "${ac_cv_os_cray+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 #if defined(CRAY) && ! defined(CRAY2)
16668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16669 $EGREP "webecray" >/dev/null 2>&1; then
16677 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16678 echo "${ECHO_T}$ac_cv_os_cray" >&6
16679 if test $ac_cv_os_cray = yes; then
16680 for ac_func in _getb67 GETB67 getb67; do
16681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16684 if eval "test \"\${$as_ac_var+set}\" = set"; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 /* System header to define __stub macros and hopefully few prototypes,
16695 which can conflict with char $ac_func (); below.
16696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 <limits.h> exists even on freestanding compilers. */
16699 # include <limits.h>
16701 # include <assert.h>
16703 /* Override any gcc2 internal prototype to avoid an error. */
16708 /* We use char because int might match the return type of a gcc2
16709 builtin and then its argument prototype would still apply. */
16711 /* The GNU C library defines this for functions which it implements
16712 to always fail with ENOSYS. Some functions are actually named
16713 something starting with __ and the normal name is an alias. */
16714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16717 char (*f) () = $ac_func;
16726 return f != $ac_func;
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733 (eval $ac_link) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -s conftest$ac_exeext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 eval "$as_ac_var=yes"
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 eval "$as_ac_var=no"
16750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16754 if test `eval echo '${'$as_ac_var'}'` = yes; then
16756 cat >>confdefs.h <<_ACEOF
16757 #define CRAY_STACKSEG_END $ac_func
16766 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16767 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16768 if test "${ac_cv_c_stack_direction+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 if test "$cross_compiling" = yes; then
16772 ac_cv_c_stack_direction=0
16774 cat >conftest.$ac_ext <<_ACEOF
16775 #line $LINENO "configure"
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16782 find_stack_direction ()
16784 static char *addr = 0;
16789 return find_stack_direction ();
16792 return (&dummy > addr) ? 1 : -1;
16798 exit (find_stack_direction () < 0);
16801 rm -f conftest$ac_exeext
16802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16803 (eval $ac_link) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_cv_c_stack_direction=1
16814 echo "$as_me: program exited with status $ac_status" >&5
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ( exit $ac_status )
16819 ac_cv_c_stack_direction=-1
16821 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16824 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16825 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16827 cat >>confdefs.h <<_ACEOF
16828 #define STACK_DIRECTION $ac_cv_c_stack_direction
16834 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16835 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16836 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16837 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 ac_check_lib_save_LIBS=$LIBS
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line $LINENO "configure"
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16850 /* Override any gcc2 internal prototype to avoid an error. */
16854 /* We use char because int might match the return type of a gcc2
16855 builtin and then its argument prototype would still apply. */
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest$ac_exeext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_cv_lib_sun_getmntent=yes
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_cv_lib_sun_getmntent=no
16884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16887 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16888 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16889 if test $ac_cv_lib_sun_getmntent = yes; then
16892 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16893 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16894 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 ac_check_lib_save_LIBS=$LIBS
16899 cat >conftest.$ac_ext <<_ACEOF
16900 #line $LINENO "configure"
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16907 /* Override any gcc2 internal prototype to avoid an error. */
16911 /* We use char because int might match the return type of a gcc2
16912 builtin and then its argument prototype would still apply. */
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -s conftest$ac_exeext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_lib_seq_getmntent=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ac_cv_lib_seq_getmntent=no
16941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16942 LIBS=$ac_check_lib_save_LIBS
16944 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16945 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16946 if test $ac_cv_lib_seq_getmntent = yes; then
16949 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16950 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16951 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 ac_check_lib_save_LIBS=$LIBS
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16964 /* Override any gcc2 internal prototype to avoid an error. */
16968 /* We use char because int might match the return type of a gcc2
16969 builtin and then its argument prototype would still apply. */
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16981 (eval $ac_link) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_lib_gen_getmntent=yes
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_cv_lib_gen_getmntent=no
16998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16999 LIBS=$ac_check_lib_save_LIBS
17001 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17002 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17003 if test $ac_cv_lib_gen_getmntent = yes; then
17012 for ac_func in getmntent
17014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17015 echo "$as_me:$LINENO: checking for $ac_func" >&5
17016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17017 if eval "test \"\${$as_ac_var+set}\" = set"; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 /* System header to define __stub macros and hopefully few prototypes,
17028 which can conflict with char $ac_func (); below.
17029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030 <limits.h> exists even on freestanding compilers. */
17032 # include <limits.h>
17034 # include <assert.h>
17036 /* Override any gcc2 internal prototype to avoid an error. */
17041 /* We use char because int might match the return type of a gcc2
17042 builtin and then its argument prototype would still apply. */
17044 /* The GNU C library defines this for functions which it implements
17045 to always fail with ENOSYS. Some functions are actually named
17046 something starting with __ and the normal name is an alias. */
17047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17050 char (*f) () = $ac_func;
17059 return f != $ac_func;
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17066 (eval $ac_link) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 eval "$as_ac_var=yes"
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 eval "$as_ac_var=no"
17083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17087 if test `eval echo '${'$as_ac_var'}'` = yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17096 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17097 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17098 if test "${ac_cv_func_closedir_void+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17101 if test "$cross_compiling" = yes; then
17102 ac_cv_func_closedir_void=yes
17104 cat >conftest.$ac_ext <<_ACEOF
17105 #line $LINENO "configure"
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 $ac_includes_default
17112 #include <$ac_header_dirent>
17113 #ifndef __cplusplus
17120 exit (closedir (opendir (".")) != 0);
17125 rm -f conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_func_closedir_void=no
17138 echo "$as_me: program exited with status $ac_status" >&5
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17142 ( exit $ac_status )
17143 ac_cv_func_closedir_void=yes
17145 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17148 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17149 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17150 if test $ac_cv_func_closedir_void = yes; then
17152 cat >>confdefs.h <<\_ACEOF
17153 #define CLOSEDIR_VOID 1
17158 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17159 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17160 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 if test "$cross_compiling" = yes; then
17164 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17165 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17166 { (exit 1); exit 1; }; }
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17176 # include <unistd.h>
17182 /* If this system has a BSD-style setpgrp which takes arguments,
17183 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17184 exit successfully. */
17185 exit (setpgrp (1,1) == -1 ? 0 : 1);
17190 rm -f conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 ac_cv_func_setpgrp_void=no
17203 echo "$as_me: program exited with status $ac_status" >&5
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ( exit $ac_status )
17208 ac_cv_func_setpgrp_void=yes
17210 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17213 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17214 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17215 if test $ac_cv_func_setpgrp_void = yes; then
17217 cat >>confdefs.h <<\_ACEOF
17218 #define SETPGRP_VOID 1
17222 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17223 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17224 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 # Some versions of Solaris, SCO, and the GNU C Library
17228 # have a broken or incompatible fnmatch.
17229 # So we run a test program. If we are cross-compiling, take no chance.
17230 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17231 if test "$cross_compiling" = yes; then
17232 ac_cv_func_fnmatch_works=cross
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 #include <fnmatch.h>
17242 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17243 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17249 (!(y ("a*", "abc", 0)
17250 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17251 && y ("a\\\\bc", "abc", 0)
17252 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17253 && y ("*x", ".x", 0)
17254 && n ("*x", ".x", FNM_PERIOD)
17260 rm -f conftest$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262 (eval $ac_link) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_func_fnmatch_works=yes
17273 echo "$as_me: program exited with status $ac_status" >&5
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ( exit $ac_status )
17278 ac_cv_func_fnmatch_works=no
17280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17283 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17284 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17285 if test $ac_cv_func_fnmatch_works = yes; then
17287 cat >>confdefs.h <<\_ACEOF
17288 #define HAVE_FNMATCH 1
17297 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17298 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17299 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 ac_check_lib_save_LIBS=$LIBS
17303 LIBS="-lxpg4 $LIBS"
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17312 /* Override any gcc2 internal prototype to avoid an error. */
17316 /* We use char because int might match the return type of a gcc2
17317 builtin and then its argument prototype would still apply. */
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329 (eval $ac_link) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } &&
17333 { ac_try='test -s conftest$ac_exeext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ac_cv_lib_xpg4_setlocale=yes
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 ac_cv_lib_xpg4_setlocale=no
17346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17349 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17350 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17351 if test $ac_cv_lib_xpg4_setlocale = yes; then
17352 LIBS="$LIBS -lxpg4"
17358 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17359 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17360 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 ac_check_lib_save_LIBS=$LIBS
17365 cat >conftest.$ac_ext <<_ACEOF
17366 #line $LINENO "configure"
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17373 /* Override any gcc2 internal prototype to avoid an error. */
17377 /* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -s conftest$ac_exeext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_lib_sun_getpwnam=yes
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 ac_cv_lib_sun_getpwnam=no
17407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17411 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17412 if test $ac_cv_lib_sun_getpwnam = yes; then
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_LIBSUN 1
17423 for ac_header in zlib.h
17425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17427 echo "$as_me:$LINENO: checking for $ac_header" >&5
17428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17435 # Is the header compilable?
17436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 $ac_includes_default
17446 #include <$ac_header>
17448 rm -f conftest.$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450 (eval $ac_compile) 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -s conftest.$ac_objext'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_header_compiler=yes
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_header_compiler=no
17467 rm -f conftest.$ac_objext conftest.$ac_ext
17468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17469 echo "${ECHO_T}$ac_header_compiler" >&6
17471 # Is the header present?
17472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17474 cat >conftest.$ac_ext <<_ACEOF
17475 #line $LINENO "configure"
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 #include <$ac_header>
17483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } >/dev/null; then
17491 if test -s conftest.err; then
17492 ac_cpp_err=$ac_c_preproc_warn_flag
17499 if test -z "$ac_cpp_err"; then
17500 ac_header_preproc=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_header_preproc=no
17507 rm -f conftest.err conftest.$ac_ext
17508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17509 echo "${ECHO_T}$ac_header_preproc" >&6
17511 # So? What about this header?
17512 case $ac_header_compiler:$ac_header_preproc in
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17520 ## ------------------------------------ ##
17521 ## Report this to bug-autoconf@gnu.org. ##
17522 ## ------------------------------------ ##
17525 sed "s/^/$as_me: WARNING: /" >&2
17528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17536 ## ------------------------------------ ##
17537 ## Report this to bug-autoconf@gnu.org. ##
17538 ## ------------------------------------ ##
17541 sed "s/^/$as_me: WARNING: /" >&2
17544 echo "$as_me:$LINENO: checking for $ac_header" >&5
17545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 eval "$as_ac_Header=$ac_header_preproc"
17551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17556 cat >>confdefs.h <<_ACEOF
17557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17564 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17565 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17566 if test "${ac_cv_lib_z_deflate+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 ac_check_lib_save_LIBS=$LIBS
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17579 /* Override any gcc2 internal prototype to avoid an error. */
17583 /* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596 (eval $ac_link) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_lib_z_deflate=yes
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_lib_z_deflate=no
17613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17616 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17617 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17618 if test $ac_cv_lib_z_deflate = yes; then
17623 if test x$FDLIBS = x-lz; then
17624 cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_LIBZ 1
17631 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17632 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17633 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17634 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17638 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17640 # Is the header compilable?
17641 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17642 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17644 #line $LINENO "configure"
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 $ac_includes_default
17651 #include <sys/acl.h>
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_header_compiler=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_header_compiler=no
17672 rm -f conftest.$ac_objext conftest.$ac_ext
17673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17674 echo "${ECHO_T}$ac_header_compiler" >&6
17676 # Is the header present?
17677 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17678 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17680 #line $LINENO "configure"
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 #include <sys/acl.h>
17688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } >/dev/null; then
17696 if test -s conftest.err; then
17697 ac_cpp_err=$ac_c_preproc_warn_flag
17704 if test -z "$ac_cpp_err"; then
17705 ac_header_preproc=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_header_preproc=no
17712 rm -f conftest.err conftest.$ac_ext
17713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17714 echo "${ECHO_T}$ac_header_preproc" >&6
17716 # So? What about this header?
17717 case $ac_header_compiler:$ac_header_preproc in
17719 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17720 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17722 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17725 ## ------------------------------------ ##
17726 ## Report this to bug-autoconf@gnu.org. ##
17727 ## ------------------------------------ ##
17730 sed "s/^/$as_me: WARNING: /" >&2
17733 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17734 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17736 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17741 ## ------------------------------------ ##
17742 ## Report this to bug-autoconf@gnu.org. ##
17743 ## ------------------------------------ ##
17746 sed "s/^/$as_me: WARNING: /" >&2
17749 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17750 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17751 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 ac_cv_header_sys_acl_h=$ac_header_preproc
17756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17757 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17762 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17763 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17764 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_check_lib_save_LIBS=$LIBS
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any gcc2 internal prototype to avoid an error. */
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17783 char acl_get_file ();
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_acl_acl_get_file=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_cv_lib_acl_acl_get_file=no
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17815 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17816 if test $ac_cv_lib_acl_acl_get_file = yes; then
17817 FDLIBS="-lacl $FDLIBS"
17821 if test $ac_cv_lib_acl_acl_get_file = yes; then
17822 cat >>confdefs.h <<\_ACEOF
17830 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17831 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17832 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-lpthread $LIBS"
17837 cat >conftest.$ac_ext <<_ACEOF
17838 #line $LINENO "configure"
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 /* Override any gcc2 internal prototype to avoid an error. */
17849 /* We use char because int might match the return type of a gcc2
17850 builtin and then its argument prototype would still apply. */
17851 char pthread_create ();
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ac_cv_lib_pthread_pthread_create=yes
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_cv_lib_pthread_pthread_create=no
17879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17882 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17883 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17884 if test $ac_cv_lib_pthread_pthread_create = yes; then
17885 PTHREAD_LIB="-lpthread"
17887 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17888 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17889 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 ac_check_lib_save_LIBS=$LIBS
17893 LIBS="-lpthreads $LIBS"
17894 cat >conftest.$ac_ext <<_ACEOF
17895 #line $LINENO "configure"
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17902 /* Override any gcc2 internal prototype to avoid an error. */
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908 char pthread_create ();
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919 (eval $ac_link) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_lib_pthreads_pthread_create=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_cv_lib_pthreads_pthread_create=no
17936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17937 LIBS=$ac_check_lib_save_LIBS
17939 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17940 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17941 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17942 PTHREAD_LIB="-lpthreads"
17944 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17945 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17946 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 ac_check_lib_save_LIBS=$LIBS
17951 cat >conftest.$ac_ext <<_ACEOF
17952 #line $LINENO "configure"
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17959 /* Override any gcc2 internal prototype to avoid an error. */
17963 /* We use char because int might match the return type of a gcc2
17964 builtin and then its argument prototype would still apply. */
17965 char pthread_create ();
17974 rm -f conftest.$ac_objext conftest$ac_exeext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976 (eval $ac_link) 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_cv_lib_c_r_pthread_create=yes
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 ac_cv_lib_c_r_pthread_create=no
17993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17996 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17997 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17998 if test $ac_cv_lib_c_r_pthread_create = yes; then
17999 PTHREAD_LIB="-lc_r"
18001 echo "$as_me:$LINENO: checking for pthread_create" >&5
18002 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18003 if test "${ac_cv_func_pthread_create+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18007 #line $LINENO "configure"
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 /* System header to define __stub macros and hopefully few prototypes,
18014 which can conflict with char pthread_create (); below.
18015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18016 <limits.h> exists even on freestanding compilers. */
18018 # include <limits.h>
18020 # include <assert.h>
18022 /* Override any gcc2 internal prototype to avoid an error. */
18027 /* We use char because int might match the return type of a gcc2
18028 builtin and then its argument prototype would still apply. */
18029 char pthread_create ();
18030 /* The GNU C library defines this for functions which it implements
18031 to always fail with ENOSYS. Some functions are actually named
18032 something starting with __ and the normal name is an alias. */
18033 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18036 char (*f) () = pthread_create;
18045 return f != pthread_create;
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -s conftest$ac_exeext'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; }; then
18062 ac_cv_func_pthread_create=yes
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ac_cv_func_pthread_create=no
18069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18072 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18085 cat >>confdefs.h <<\_ACEOF
18091 CFLAGS=${CFLAGS--O}
18092 LDFLAGS=${LDFLAGS--O}
18093 DB_LIBS="${SQL_LFLAGS}"
18095 CPPFLAGS="$CPPFLAGS"
18120 # Finally we set appropriate distribution specific
18121 # variables and defaults
18123 # PFILES are platform specific files
18124 PFILES="platforms/Makefile"
18128 hostname=`uname -n | cut -d '.' -f 1`
18129 case "$DISTNAME" in
18132 PSCMD="ps -e -o pid,comm"
18133 PFILES="${PFILES} \
18134 platforms/aix/Makefile"
18135 TAPEDRIVE="/dev/rmt0.1"
18139 PTHREAD_LIB="-lpthread -lexc"
18140 if test "${CC}" = "gcc" ; then
18147 TAPEDRIVE="/dev/nrmt0"
18150 DISTVER=`uname -a |awk '{print $3}'`
18151 TAPEDRIVE="/dev/nrmt0"
18152 PTHREAD_LIB="-pthread"
18153 CFLAGS="${CFLAGS} -pthread"
18154 PSCMD="ps -x -o pid,command"
18157 PFILES="${PFILES} \
18158 platforms/bsdi/Makefile \
18159 platforms/bsdi/bacula-fd \
18160 platforms/bsdi/bacula-sd \
18161 platforms/bsdi/bacula-dir"
18162 largefile_support="yes"
18165 DISTVER=`uname -a |awk '{print $3}'`
18166 TAPEDRIVE="/dev/nrst0"
18168 WCFLAGS="-mwindows"
18169 WLDFLAGS="-mwindows"
18173 TAPEDRIVE="/dev/nst0"
18174 PSCMD="ps -e -o pid,command"
18176 PFILES="${PFILES} \
18177 platforms/darwin/Makefile"
18180 DISTVER=`cat /etc/debian_version`
18181 TAPEDRIVE="/dev/nrst0"
18182 PSCMD="ps -e -o pid,command"
18185 DISTVER=`uname -a |awk '{print $3}'`
18186 VER=`echo $DISTVER | cut -c 1`
18187 if test x$VER = x4 ; then
18188 PTHREAD_LIB="-pthread"
18189 CFLAGS="${CFLAGS} -pthread"
18193 TAPEDRIVE="/dev/nrsa0"
18194 PSCMD="ps -x -o pid,command"
18195 PFILES="${PFILES} \
18196 platforms/freebsd/Makefile \
18197 platforms/freebsd/bacula-fd \
18198 platforms/freebsd/bacula-sd \
18199 platforms/freebsd/bacula-dir"
18200 largefile_support="yes"
18203 PSCMD="UNIX95=1 ps -e -o pid,comm"
18204 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18206 TAPEDRIVE="/dev/rmt/0hnb"
18210 TAPEDRIVE="/dev/rmt/0cbn"
18211 PSCMD="ps -e -o pid,comm"
18212 PFILES="${PFILES} \
18213 platforms/irix/Makefile \
18214 platforms/irix/bacula-fd \
18215 platforms/irix/bacula-sd \
18216 platforms/irix/bacula-dir"
18219 DISTVER=`uname -a |awk '{print $3}'`
18222 TAPEDRIVE="/dev/nrst0"
18223 PSCMD="ps -a -o pid,command"
18224 PTHREAD_LIB="-pthread"
18225 CFLAGS="${CFLAGS} -pthread"
18228 DISTVER=`uname -a |awk '{print $3}'`
18231 TAPEDRIVE="/dev/nrst0"
18232 PSCMD="ps -a -o pid,command"
18233 PTHREAD_LIB="-pthread"
18234 CFLAGS="${CFLAGS} -pthread"
18235 PFILES="${PFILES} \
18236 platforms/openbsd/Makefile \
18237 platforms/openbsd/bacula-fd \
18238 platforms/openbsd/bacula-sd \
18239 platforms/openbsd/bacula-dir"
18242 if test -f /etc/whitebox-release ; then
18243 f=/etc/whitebox-release
18245 f=/etc/redhat-release
18247 if test `cat $f | grep release |\
18248 cut -f 3 -d ' '`x = "Enterprise"x ; then
18249 DISTVER="Enterprise "`cat $f | grep release |\
18252 DISTVER=`cat /etc/redhat-release | grep release |\
18255 TAPEDRIVE="/dev/nst0"
18256 PSCMD="ps -e -o pid,command"
18257 PFILES="${PFILES} \
18258 platforms/redhat/Makefile \
18259 platforms/redhat/bacula-fd \
18260 platforms/redhat/bacula-sd \
18261 platforms/redhat/bacula-dir \
18262 platforms/redhat/bacula.spec \
18264 hostname=`hostname -s`
18267 DISTVER=`cat /etc/mandrake-release | grep release |\
18269 TAPEDRIVE="/dev/nst0"
18270 PSCMD="ps -e -o pid,command"
18271 PFILES="${PFILES} \
18272 platforms/mandrake/Makefile \
18273 platforms/mandrake/bacula-fd \
18274 platforms/mandrake/bacula-sd \
18275 platforms/mandrake/bacula-dir \
18276 platforms/mandrake/bacula.spec \
18280 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18281 TAPEDRIVE="/dev/nst0"
18282 PSCMD="ps -e -o pid,command"
18283 PFILES="${PFILES} \
18284 platforms/gentoo/Makefile \
18285 platforms/gentoo/bacula-fd \
18286 platforms/gentoo/bacula-sd \
18287 platforms/gentoo/bacula-dir"
18290 DISTVER=`cat /etc/slackware-version`
18291 TAPEDRIVE="/dev/nst0"
18292 PSCMD="ps -e -o pid,command"
18293 PFILES="${PFILES} \
18294 platforms/slackware/Makefile \
18295 platforms/slackware/rc.bacula-fd \
18296 platforms/slackware/rc.bacula-sd \
18297 platforms/slackware/rc.bacula-dir\
18298 platforms/slackware/functions.bacula"
18302 TAPEDRIVE="/dev/rmt/0cbn"
18303 PSCMD="ps -e -o pid,comm"
18304 PFILES="${PFILES} \
18305 platforms/solaris/Makefile \
18306 platforms/solaris/bacula-fd \
18307 platforms/solaris/bacula-sd \
18308 platforms/solaris/bacula-dir"
18309 if test x$DISTVER = x5.6 ; then
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_OLD_SOCKOPT 1
18317 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18319 TAPEDRIVE="/dev/nst0"
18320 PSCMD="ps -e -o pid,command"
18321 PFILES="${PFILES} \
18322 platforms/suse/Makefile \
18323 platforms/suse/bacula-fd \
18324 platforms/suse/bacula-sd \
18325 platforms/suse/bacula-dir \
18326 platforms/suse/bacula \
18327 platforms/suse/bacula.spec"
18332 TAPEDRIVE="/dev/nst0"
18333 PSCMD="ps -e -o pid,command"
18334 PFILES="${PFILES} \
18335 platforms/suse/Makefile \
18336 platforms/suse/bacula-fd \
18337 platforms/suse/bacula-sd \
18338 platforms/suse/bacula-dir"
18342 TAPEDRIVE="/dev/nst0"
18345 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18351 LIBS="$PTHREAD_LIB $LIBS"
18353 cat >>confdefs.h <<_ACEOF
18357 cat >>confdefs.h <<_ACEOF
18368 MCOMMON=./autoconf/Make.common
18371 if test "x${subsysdir}" = "x${sbindir}" ; then
18374 echo "You have set both --sbindir and --with-subsys-dir"
18375 echo " equal to: ${subsysdir} "
18376 echo "This is not permitted. Please reconfigure."
18378 echo "Aborting configuration ..."
18384 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"
18385 ac_config_commands="$ac_config_commands default"
18386 cat >confcache <<\_ACEOF
18387 # This file is a shell script that caches the results of configure
18388 # tests run on this system so they can be shared between configure
18389 # scripts and configure runs, see configure's option --config-cache.
18390 # It is not useful on other systems. If it contains results you don't
18391 # want to keep, you may remove or edit it.
18393 # config.status only pays attention to the cache file if you give it
18394 # the --recheck option to rerun configure.
18396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18398 # following values.
18402 # The following way of writing the cache mishandles newlines in values,
18403 # but we know of no workaround that is simple, portable, and efficient.
18404 # So, don't put newlines in cache variables' values.
18405 # Ultrix sh set writes to stderr and can't be redirected directly,
18406 # and sets the high bit in the cache file unless we assign to the vars.
18409 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18411 # `set' does not quote correctly, so add quotes (double-quote
18412 # substitution turns \\\\ into \\, and sed turns \\ into \).
18415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18418 # `set' quotes correctly as required by POSIX, so do not add quotes.
18420 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18429 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18431 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18432 if test -w $cache_file; then
18433 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18434 cat confcache >$cache_file
18436 echo "not updating unwritable cache $cache_file"
18441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18442 # Let make expand exec_prefix.
18443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18447 # trailing colons and then remove the whole line if VPATH becomes empty
18448 # (actually we leave an empty line to preserve line numbers).
18449 if test "x$srcdir" = x.; then
18450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18451 s/:*\$(srcdir):*/:/;
18452 s/:*\${srcdir}:*/:/;
18454 s/^\([^=]*=[ ]*\):*/\1/;
18460 DEFS=-DHAVE_CONFIG_H
18464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18465 # 1. Remove the extension, and $U if already installed.
18466 ac_i=`echo "$ac_i" |
18467 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18469 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18470 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18472 LIBOBJS=$ac_libobjs
18474 LTLIBOBJS=$ac_ltlibobjs
18478 : ${CONFIG_STATUS=./config.status}
18479 ac_clean_files_save=$ac_clean_files
18480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18483 cat >$CONFIG_STATUS <<_ACEOF
18485 # Generated by $as_me.
18486 # Run this file to recreate the current configuration.
18487 # Compiler output produced by configure, useful for debugging
18488 # configure, is in config.log if it exists.
18491 ac_cs_recheck=false
18493 SHELL=\${CONFIG_SHELL-$SHELL}
18496 cat >>$CONFIG_STATUS <<\_ACEOF
18497 ## --------------------- ##
18498 ## M4sh Initialization. ##
18499 ## --------------------- ##
18501 # Be Bourne compatible
18502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18505 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18506 # is contrary to our usage. Disable this feature.
18507 alias -g '${1+"$@"}'='"$@"'
18508 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18512 # Support unset when possible.
18513 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18520 # Work around bugs in pre-3.0 UWIN ksh.
18521 $as_unset ENV MAIL MAILPATH
18528 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18529 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18530 LC_TELEPHONE LC_TIME
18532 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18533 eval $as_var=C; export $as_var
18539 # Required to use basename.
18540 if expr a : '\(a\)' >/dev/null 2>&1; then
18546 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18547 as_basename=basename
18553 # Name of the executable.
18554 as_me=`$as_basename "$0" ||
18555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18556 X"$0" : 'X\(//\)$' \| \
18557 X"$0" : 'X\(/\)$' \| \
18558 . : '\(.\)' 2>/dev/null ||
18560 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18561 /^X\/\(\/\/\)$/{ s//\1/; q; }
18562 /^X\/\(\/\).*/{ s//\1/; q; }
18566 # PATH needs CR, and LINENO needs CR and PATH.
18567 # Avoid depending upon Character Ranges.
18568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18571 as_cr_digits='0123456789'
18572 as_cr_alnum=$as_cr_Letters$as_cr_digits
18574 # The user is always right.
18575 if test "${PATH_SEPARATOR+set}" != set; then
18576 echo "#! /bin/sh" >conf$$.sh
18577 echo "exit 0" >>conf$$.sh
18579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18588 as_lineno_1=$LINENO
18589 as_lineno_2=$LINENO
18590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18591 test "x$as_lineno_1" != "x$as_lineno_2" &&
18592 test "x$as_lineno_3" = "x$as_lineno_2" || {
18593 # Find who we are. Look in the path if we contain no path at all
18596 *[\\/]* ) as_myself=$0 ;;
18597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18601 test -z "$as_dir" && as_dir=.
18602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18607 # We did not find ourselves, most probably we were run as `sh COMMAND'
18608 # in which case we are not to be found in the path.
18609 if test "x$as_myself" = x; then
18612 if test ! -f "$as_myself"; then
18613 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18614 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18615 { (exit 1); exit 1; }; }
18617 case $CONFIG_SHELL in
18619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18623 test -z "$as_dir" && as_dir=.
18624 for as_base in sh bash ksh sh5; do
18627 if ("$as_dir/$as_base" -c '
18628 as_lineno_1=$LINENO
18629 as_lineno_2=$LINENO
18630 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18631 test "x$as_lineno_1" != "x$as_lineno_2" &&
18632 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18633 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18634 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18635 CONFIG_SHELL=$as_dir/$as_base
18636 export CONFIG_SHELL
18637 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18645 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18646 # uniformly replaced by the line number. The first 'sed' inserts a
18647 # line-number line before each line; the second 'sed' does the real
18648 # work. The second script uses 'N' to pair each line-number line
18649 # with the numbered line, and appends trailing '-' during
18650 # substitution so that $LINENO is not a special case at line end.
18651 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18652 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18653 sed '=' <$as_myself |
18658 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18661 s,^['$as_cr_digits']*\n,,
18662 ' >$as_me.lineno &&
18663 chmod +x $as_me.lineno ||
18664 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18665 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18666 { (exit 1); exit 1; }; }
18668 # Don't try to exec as it changes $[0], causing all sort of problems
18669 # (the dirname of $[0] is not the place where we might find the
18670 # original and so on. Autoconf is especially sensible to this).
18672 # Exit status is that of the last command.
18677 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18678 *c*,-n*) ECHO_N= ECHO_C='
18680 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18681 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18684 if expr a : '\(a\)' >/dev/null 2>&1; then
18690 rm -f conf$$ conf$$.exe conf$$.file
18692 if ln -s conf$$.file conf$$ 2>/dev/null; then
18693 # We could just check for DJGPP; but this test a) works b) is more generic
18694 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18695 if test -f conf$$.exe; then
18696 # Don't use ln at all; we don't have any links
18701 elif ln conf$$.file conf$$ 2>/dev/null; then
18706 rm -f conf$$ conf$$.exe conf$$.file
18708 if mkdir -p . 2>/dev/null; then
18714 as_executable_p="test -f"
18716 # Sed expression to map a string onto a valid CPP name.
18717 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18719 # Sed expression to map a string onto a valid variable name.
18720 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18724 # We need space, tab and new line, in precisely that order.
18734 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18735 # report actual input values of CONFIG_FILES etc. instead of their
18736 # values after options handling. Logging --version etc. is OK.
18740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18741 ## Running $as_me. ##
18746 This file was extended by $as_me, which was
18747 generated by GNU Autoconf 2.57. Invocation command line was
18749 CONFIG_FILES = $CONFIG_FILES
18750 CONFIG_HEADERS = $CONFIG_HEADERS
18751 CONFIG_LINKS = $CONFIG_LINKS
18752 CONFIG_COMMANDS = $CONFIG_COMMANDS
18756 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18760 # Files that config.status was made for.
18761 if test -n "$ac_config_files"; then
18762 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18765 if test -n "$ac_config_headers"; then
18766 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18769 if test -n "$ac_config_links"; then
18770 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18773 if test -n "$ac_config_commands"; then
18774 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18777 cat >>$CONFIG_STATUS <<\_ACEOF
18780 \`$as_me' instantiates files from templates according to the
18781 current configuration.
18783 Usage: $0 [OPTIONS] [FILE]...
18785 -h, --help print this help, then exit
18786 -V, --version print version number, then exit
18787 -q, --quiet do not print progress messages
18788 -d, --debug don't remove temporary files
18789 --recheck update $as_me by reconfiguring in the same conditions
18790 --file=FILE[:TEMPLATE]
18791 instantiate the configuration file FILE
18792 --header=FILE[:TEMPLATE]
18793 instantiate the configuration header FILE
18795 Configuration files:
18798 Configuration headers:
18801 Configuration commands:
18804 Report bugs to <bug-autoconf@gnu.org>."
18807 cat >>$CONFIG_STATUS <<_ACEOF
18810 configured by $0, generated by GNU Autoconf 2.57,
18811 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18813 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18814 Free Software Foundation, Inc.
18815 This config.status script is free software; the Free Software Foundation
18816 gives unlimited permission to copy, distribute and modify it."
18821 cat >>$CONFIG_STATUS <<\_ACEOF
18822 # If no file are specified by the user, then we need to provide default
18823 # value. By we need to know if files were specified by the user.
18829 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18830 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18838 *) # This is not an option, so the user has probably given explicit
18841 ac_need_defaults=false;;
18845 # Handling of the options.
18847 cat >>$CONFIG_STATUS <<\_ACEOF
18848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18850 --version | --vers* | -V )
18851 echo "$ac_cs_version"; exit 0 ;;
18853 # Conflict between --help and --header
18854 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18855 Try \`$0 --help' for more information." >&5
18856 echo "$as_me: error: ambiguous option: $1
18857 Try \`$0 --help' for more information." >&2;}
18858 { (exit 1); exit 1; }; };;
18859 --help | --hel | -h )
18860 echo "$ac_cs_usage"; exit 0 ;;
18861 --debug | --d* | -d )
18863 --file | --fil | --fi | --f )
18865 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18866 ac_need_defaults=false;;
18867 --header | --heade | --head | --hea )
18869 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18870 ac_need_defaults=false;;
18871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18875 # This is an error.
18876 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18877 Try \`$0 --help' for more information." >&5
18878 echo "$as_me: error: unrecognized option: $1
18879 Try \`$0 --help' for more information." >&2;}
18880 { (exit 1); exit 1; }; } ;;
18882 *) ac_config_targets="$ac_config_targets $1" ;;
18888 ac_configure_extra_args=
18890 if $ac_cs_silent; then
18892 ac_configure_extra_args="$ac_configure_extra_args --silent"
18896 cat >>$CONFIG_STATUS <<_ACEOF
18897 if \$ac_cs_recheck; then
18898 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18899 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18908 cat >>$CONFIG_STATUS <<\_ACEOF
18909 for ac_config_target in $ac_config_targets
18911 case "$ac_config_target" in
18912 # Handling of arguments.
18913 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18914 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18915 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18916 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18917 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18918 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18919 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18920 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18921 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18922 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18923 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18924 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18925 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18926 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18927 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18928 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18929 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18930 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18931 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18932 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18933 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18934 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18935 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18936 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18937 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18938 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18939 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18940 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18941 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18942 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18943 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18944 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18945 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18946 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18947 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18948 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18949 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18950 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18951 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18952 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18953 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18954 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18955 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18956 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18957 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18958 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18959 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18960 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18961 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18962 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18963 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18964 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18965 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18966 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18967 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18968 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18969 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18970 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18971 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18972 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18973 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18974 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18975 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18976 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18977 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18978 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18979 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18980 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18981 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18982 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18983 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18984 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18985 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18986 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18987 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18988 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18989 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18990 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18991 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18992 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18993 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18994 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18995 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18996 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18997 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18998 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18999 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19000 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19001 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19002 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19003 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19005 { (exit 1); exit 1; }; };;
19009 # If the user did not use the arguments to specify the items to instantiate,
19010 # then the envvar interface is used. Set only those that are not.
19011 # We use the long form for the default assignment because of an extremely
19012 # bizarre bug on SunOS 4.1.3.
19013 if $ac_need_defaults; then
19014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19019 # Have a temporary directory for convenience. Make it in the build tree
19020 # simply because there is no reason to put it here, and in addition,
19021 # creating and moving files from /tmp can sometimes cause problems.
19022 # Create a temporary directory, and hook for its removal unless debugging.
19025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19026 trap '{ (exit 1); exit 1; }' 1 2 13 15
19029 # Create a (secure) tmp directory for tmp files.
19032 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19033 test -n "$tmp" && test -d "$tmp"
19036 tmp=./confstat$$-$RANDOM
19037 (umask 077 && mkdir $tmp)
19040 echo "$me: cannot create a temporary directory in ." >&2
19041 { (exit 1); exit 1; }
19046 cat >>$CONFIG_STATUS <<_ACEOF
19049 # CONFIG_FILES section.
19052 # No need to generate the scripts if there are no CONFIG_FILES.
19053 # This happens for instance when ./config.status config.h
19054 if test -n "\$CONFIG_FILES"; then
19055 # Protect against being on the right side of a sed subst in config.status.
19056 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19057 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19058 s,@SHELL@,$SHELL,;t t
19059 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19060 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19061 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19062 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19063 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19064 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19065 s,@exec_prefix@,$exec_prefix,;t t
19066 s,@prefix@,$prefix,;t t
19067 s,@program_transform_name@,$program_transform_name,;t t
19068 s,@bindir@,$bindir,;t t
19069 s,@sbindir@,$sbindir,;t t
19070 s,@libexecdir@,$libexecdir,;t t
19071 s,@datadir@,$datadir,;t t
19072 s,@sysconfdir@,$sysconfdir,;t t
19073 s,@sharedstatedir@,$sharedstatedir,;t t
19074 s,@localstatedir@,$localstatedir,;t t
19075 s,@libdir@,$libdir,;t t
19076 s,@includedir@,$includedir,;t t
19077 s,@oldincludedir@,$oldincludedir,;t t
19078 s,@infodir@,$infodir,;t t
19079 s,@mandir@,$mandir,;t t
19080 s,@build_alias@,$build_alias,;t t
19081 s,@host_alias@,$host_alias,;t t
19082 s,@target_alias@,$target_alias,;t t
19083 s,@DEFS@,$DEFS,;t t
19084 s,@ECHO_C@,$ECHO_C,;t t
19085 s,@ECHO_N@,$ECHO_N,;t t
19086 s,@ECHO_T@,$ECHO_T,;t t
19087 s,@LIBS@,$LIBS,;t t
19088 s,@BUILD_DIR@,$BUILD_DIR,;t t
19089 s,@TRUEPRG@,$TRUEPRG,;t t
19090 s,@FALSEPRG@,$FALSEPRG,;t t
19091 s,@VERSION@,$VERSION,;t t
19092 s,@DATE@,$DATE,;t t
19093 s,@LSMDATE@,$LSMDATE,;t t
19095 s,@CFLAGS@,$CFLAGS,;t t
19096 s,@LDFLAGS@,$LDFLAGS,;t t
19097 s,@CPPFLAGS@,$CPPFLAGS,;t t
19098 s,@ac_ct_CC@,$ac_ct_CC,;t t
19099 s,@EXEEXT@,$EXEEXT,;t t
19100 s,@OBJEXT@,$OBJEXT,;t t
19102 s,@CXXFLAGS@,$CXXFLAGS,;t t
19103 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19105 s,@EGREP@,$EGREP,;t t
19106 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19107 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19108 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19109 s,@RANLIB@,$RANLIB,;t t
19110 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19116 s,@ECHO@,$ECHO,;t t
19120 s,@OPENSSL@,$OPENSSL,;t t
19122 s,@PKGCONFIG@,$PKGCONFIG,;t t
19123 s,@WXCONFIG@,$WXCONFIG,;t t
19124 s,@ARFLAGS@,$ARFLAGS,;t t
19125 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19126 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19127 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19128 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19129 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19130 s,@build@,$build,;t t
19131 s,@build_cpu@,$build_cpu,;t t
19132 s,@build_vendor@,$build_vendor,;t t
19133 s,@build_os@,$build_os,;t t
19134 s,@host@,$host,;t t
19135 s,@host_cpu@,$host_cpu,;t t
19136 s,@host_vendor@,$host_vendor,;t t
19137 s,@host_os@,$host_os,;t t
19138 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19139 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19140 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19141 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19142 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19143 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19144 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19145 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19146 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19147 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19148 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19149 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19150 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19151 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19152 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19153 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19154 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19155 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19156 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19157 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19158 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19159 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19160 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19161 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19162 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19163 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19164 s,@MSGFMT@,$MSGFMT,;t t
19165 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19166 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19167 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19168 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19169 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19170 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19171 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19172 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19173 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19174 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19175 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19176 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19177 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19178 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19179 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19180 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19181 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19182 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19183 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19184 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19185 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19186 s,@GNOME_DIR@,$GNOME_DIR,;t t
19187 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19188 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19189 s,@WX_DIR@,$WX_DIR,;t t
19190 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19191 s,@STATIC_FD@,$STATIC_FD,;t t
19192 s,@STATIC_SD@,$STATIC_SD,;t t
19193 s,@STATIC_DIR@,$STATIC_DIR,;t t
19194 s,@STATIC_CONS@,$STATIC_CONS,;t t
19195 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19196 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19197 s,@ALL_DIRS@,$ALL_DIRS,;t t
19198 s,@CONS_INC@,$CONS_INC,;t t
19199 s,@CONS_OBJ@,$CONS_OBJ,;t t
19200 s,@CONS_SRC@,$CONS_SRC,;t t
19201 s,@CONS_LIBS@,$CONS_LIBS,;t t
19202 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19203 s,@READLINE_SRC@,$READLINE_SRC,;t t
19204 s,@working_dir@,$working_dir,;t t
19205 s,@scriptdir@,$scriptdir,;t t
19206 s,@dump_email@,$dump_email,;t t
19207 s,@job_email@,$job_email,;t t
19208 s,@smtp_host@,$smtp_host,;t t
19209 s,@piddir@,$piddir,;t t
19210 s,@subsysdir@,$subsysdir,;t t
19211 s,@baseport@,$baseport,;t t
19212 s,@dir_port@,$dir_port,;t t
19213 s,@fd_port@,$fd_port,;t t
19214 s,@sd_port@,$sd_port,;t t
19215 s,@dir_password@,$dir_password,;t t
19216 s,@fd_password@,$fd_password,;t t
19217 s,@sd_password@,$sd_password,;t t
19218 s,@dir_user@,$dir_user,;t t
19219 s,@dir_group@,$dir_group,;t t
19220 s,@sd_user@,$sd_user,;t t
19221 s,@sd_group@,$sd_group,;t t
19222 s,@fd_user@,$fd_user,;t t
19223 s,@fd_group@,$fd_group,;t t
19224 s,@SBINPERM@,$SBINPERM,;t t
19225 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19226 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19227 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19228 s,@cats@,$cats,;t t
19229 s,@DB_NAME@,$DB_NAME,;t t
19230 s,@GETCONF@,$GETCONF,;t t
19231 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19232 s,@X_CFLAGS@,$X_CFLAGS,;t t
19233 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19234 s,@X_LIBS@,$X_LIBS,;t t
19235 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19236 s,@LIBOBJS@,$LIBOBJS,;t t
19237 s,@ALLOCA@,$ALLOCA,;t t
19238 s,@FDLIBS@,$FDLIBS,;t t
19239 s,@DEBUG@,$DEBUG,;t t
19240 s,@DINCLUDE@,$DINCLUDE,;t t
19241 s,@DLIB@,$DLIB,;t t
19242 s,@DB_LIBS@,$DB_LIBS,;t t
19243 s,@WCFLAGS@,$WCFLAGS,;t t
19244 s,@WLDFLAGS@,$WLDFLAGS,;t t
19245 s,@OBJLIST@,$OBJLIST,;t t
19246 s,@hostname@,$hostname,;t t
19247 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19248 s,@PSCMD@,$PSCMD,;t t
19249 s,@WIN32@,$WIN32,;t t
19250 s,@MACOSX@,$MACOSX,;t t
19251 s,@DISTNAME@,$DISTNAME,;t t
19252 s,@DISTVER@,$DISTVER,;t t
19253 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19254 /@MCOMMON@/r $MCOMMON
19260 cat >>$CONFIG_STATUS <<\_ACEOF
19261 # Split the substitutions into bite-sized pieces for seds with
19262 # small command number limits, like on Digital OSF/1 and HP-UX.
19263 ac_max_sed_lines=48
19264 ac_sed_frag=1 # Number of current file.
19265 ac_beg=1 # First line for current file.
19266 ac_end=$ac_max_sed_lines # Line after last line for current file.
19269 while $ac_more_lines; do
19270 if test $ac_beg -gt 1; then
19271 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19273 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19275 if test ! -s $tmp/subs.frag; then
19276 ac_more_lines=false
19278 # The purpose of the label and of the branching condition is to
19279 # speed up the sed processing (if there are no `@' at all, there
19280 # is no need to browse any of the substitutions).
19281 # These are the two extra sed commands mentioned above.
19283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19284 if test -z "$ac_sed_cmds"; then
19285 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19287 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19289 ac_sed_frag=`expr $ac_sed_frag + 1`
19291 ac_end=`expr $ac_end + $ac_max_sed_lines`
19294 if test -z "$ac_sed_cmds"; then
19297 fi # test -n "$CONFIG_FILES"
19300 cat >>$CONFIG_STATUS <<\_ACEOF
19301 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19302 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19304 - | *:- | *:-:* ) # input from stdin
19306 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19308 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19310 * ) ac_file_in=$ac_file.in ;;
19313 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19316 X"$ac_file" : 'X\(//\)[^/]' \| \
19317 X"$ac_file" : 'X\(//\)$' \| \
19318 X"$ac_file" : 'X\(/\)' \| \
19319 . : '\(.\)' 2>/dev/null ||
19321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19323 /^X\(\/\/\)$/{ s//\1/; q; }
19324 /^X\(\/\).*/{ s//\1/; q; }
19326 { if $as_mkdir_p; then
19331 while test ! -d "$as_dir"; do
19332 as_dirs="$as_dir $as_dirs"
19333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335 X"$as_dir" : 'X\(//\)[^/]' \| \
19336 X"$as_dir" : 'X\(//\)$' \| \
19337 X"$as_dir" : 'X\(/\)' \| \
19338 . : '\(.\)' 2>/dev/null ||
19340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19342 /^X\(\/\/\)$/{ s//\1/; q; }
19343 /^X\(\/\).*/{ s//\1/; q; }
19346 test ! -n "$as_dirs" || mkdir $as_dirs
19347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19349 { (exit 1); exit 1; }; }; }
19353 if test "$ac_dir" != .; then
19354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19355 # A "../" for each directory in $ac_dir_suffix.
19356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19358 ac_dir_suffix= ac_top_builddir=
19362 .) # No --srcdir option. We are building in place.
19364 if test -z "$ac_top_builddir"; then
19367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19369 [\\/]* | ?:[\\/]* ) # Absolute path.
19370 ac_srcdir=$srcdir$ac_dir_suffix;
19371 ac_top_srcdir=$srcdir ;;
19372 *) # Relative path.
19373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19376 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19378 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19379 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19380 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19381 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19386 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19389 if test x"$ac_file" != x-; then
19390 { echo "$as_me:$LINENO: creating $ac_file" >&5
19391 echo "$as_me: creating $ac_file" >&6;}
19394 # Let's still pretend it is `configure' which instantiates (i.e., don't
19395 # use $as_me), people would be surprised to read:
19396 # /* config.h. Generated by config.status. */
19397 if test x"$ac_file" = x-; then
19400 configure_input="$ac_file. "
19402 configure_input=$configure_input"Generated from `echo $ac_file_in |
19403 sed 's,.*/,,'` by configure."
19405 # First look for the input files in the build tree, otherwise in the
19407 ac_file_inputs=`IFS=:
19408 for f in $ac_file_in; do
19410 -) echo $tmp/stdin ;;
19412 # Absolute (can't be DOS-style, as IFS=:)
19413 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19414 echo "$as_me: error: cannot find input file: $f" >&2;}
19415 { (exit 1); exit 1; }; }
19418 if test -f "$f"; then
19421 elif test -f "$srcdir/$f"; then
19426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19427 echo "$as_me: error: cannot find input file: $f" >&2;}
19428 { (exit 1); exit 1; }; }
19431 done` || { (exit 1); exit 1; }
19433 cat >>$CONFIG_STATUS <<_ACEOF
19437 cat >>$CONFIG_STATUS <<\_ACEOF
19439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19440 s,@configure_input@,$configure_input,;t t
19441 s,@srcdir@,$ac_srcdir,;t t
19442 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19443 s,@top_srcdir@,$ac_top_srcdir,;t t
19444 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19445 s,@builddir@,$ac_builddir,;t t
19446 s,@abs_builddir@,$ac_abs_builddir,;t t
19447 s,@top_builddir@,$ac_top_builddir,;t t
19448 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19449 s,@INSTALL@,$ac_INSTALL,;t t
19450 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19452 if test x"$ac_file" != x-; then
19453 mv $tmp/out $ac_file
19461 cat >>$CONFIG_STATUS <<\_ACEOF
19464 # CONFIG_HEADER section.
19467 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19468 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19470 # ac_d sets the value in "#define NAME VALUE" lines.
19471 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19472 ac_dB='[ ].*$,\1#\2'
19475 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19476 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19477 ac_uB='$,\1#\2define\3'
19481 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19484 - | *:- | *:-:* ) # input from stdin
19486 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19488 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19490 * ) ac_file_in=$ac_file.in ;;
19493 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19494 echo "$as_me: creating $ac_file" >&6;}
19496 # First look for the input files in the build tree, otherwise in the
19498 ac_file_inputs=`IFS=:
19499 for f in $ac_file_in; do
19501 -) echo $tmp/stdin ;;
19503 # Absolute (can't be DOS-style, as IFS=:)
19504 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19505 echo "$as_me: error: cannot find input file: $f" >&2;}
19506 { (exit 1); exit 1; }; }
19509 if test -f "$f"; then
19512 elif test -f "$srcdir/$f"; then
19517 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19518 echo "$as_me: error: cannot find input file: $f" >&2;}
19519 { (exit 1); exit 1; }; }
19522 done` || { (exit 1); exit 1; }
19523 # Remove the trailing spaces.
19524 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19528 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19529 # `conftest.undefs', that substitutes the proper values into
19530 # config.h.in to produce config.h. The first handles `#define'
19531 # templates, and the second `#undef' templates.
19532 # And first: Protect against being on the right side of a sed subst in
19533 # config.status. Protect against being in an unquoted here document
19534 # in config.status.
19535 rm -f conftest.defines conftest.undefs
19536 # Using a here document instead of a string reduces the quoting nightmare.
19537 # Putting comments in sed scripts is not portable.
19539 # `end' is used to avoid that the second main sed command (meant for
19540 # 0-ary CPP macros) applies to n-ary macro definitions.
19541 # See the Autoconf documentation for `clear'.
19542 cat >confdef2sed.sed <<\_ACEOF
19547 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19549 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19552 # If some macros were called several times there might be several times
19553 # the same #defines, which is useless. Nevertheless, we may not want to
19554 # sort them, since we want the *last* AC-DEFINE to be honored.
19555 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19556 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19557 rm -f confdef2sed.sed
19559 # This sed command replaces #undef with comments. This is necessary, for
19560 # example, in the case of _POSIX_SOURCE, which is predefined and required
19561 # on some systems where configure will not decide to define it.
19562 cat >>conftest.undefs <<\_ACEOF
19563 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19566 # Break up conftest.defines because some shells have a limit on the size
19567 # of here documents, and old seds have small limits too (100 cmds).
19568 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19569 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19570 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19571 echo ' :' >>$CONFIG_STATUS
19572 rm -f conftest.tail
19573 while grep . conftest.defines >/dev/null
19575 # Write a limited-size here document to $tmp/defines.sed.
19576 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19577 # Speed up: don't consider the non `#define' lines.
19578 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19579 # Work around the forget-to-reset-the-flag bug.
19580 echo 't clr' >>$CONFIG_STATUS
19581 echo ': clr' >>$CONFIG_STATUS
19582 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19584 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19586 mv $tmp/out $tmp/in
19588 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19589 rm -f conftest.defines
19590 mv conftest.tail conftest.defines
19592 rm -f conftest.defines
19593 echo ' fi # grep' >>$CONFIG_STATUS
19594 echo >>$CONFIG_STATUS
19596 # Break up conftest.undefs because some shells have a limit on the size
19597 # of here documents, and old seds have small limits too (100 cmds).
19598 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19599 rm -f conftest.tail
19600 while grep . conftest.undefs >/dev/null
19602 # Write a limited-size here document to $tmp/undefs.sed.
19603 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19604 # Speed up: don't consider the non `#undef'
19605 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19606 # Work around the forget-to-reset-the-flag bug.
19607 echo 't clr' >>$CONFIG_STATUS
19608 echo ': clr' >>$CONFIG_STATUS
19609 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19611 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19613 mv $tmp/out $tmp/in
19615 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19616 rm -f conftest.undefs
19617 mv conftest.tail conftest.undefs
19619 rm -f conftest.undefs
19621 cat >>$CONFIG_STATUS <<\_ACEOF
19622 # Let's still pretend it is `configure' which instantiates (i.e., don't
19623 # use $as_me), people would be surprised to read:
19624 # /* config.h. Generated by config.status. */
19625 if test x"$ac_file" = x-; then
19626 echo "/* Generated by configure. */" >$tmp/config.h
19628 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19630 cat $tmp/in >>$tmp/config.h
19632 if test x"$ac_file" != x-; then
19633 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19634 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19635 echo "$as_me: $ac_file is unchanged" >&6;}
19637 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19639 X"$ac_file" : 'X\(//\)[^/]' \| \
19640 X"$ac_file" : 'X\(//\)$' \| \
19641 X"$ac_file" : 'X\(/\)' \| \
19642 . : '\(.\)' 2>/dev/null ||
19644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19646 /^X\(\/\/\)$/{ s//\1/; q; }
19647 /^X\(\/\).*/{ s//\1/; q; }
19649 { if $as_mkdir_p; then
19654 while test ! -d "$as_dir"; do
19655 as_dirs="$as_dir $as_dirs"
19656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19658 X"$as_dir" : 'X\(//\)[^/]' \| \
19659 X"$as_dir" : 'X\(//\)$' \| \
19660 X"$as_dir" : 'X\(/\)' \| \
19661 . : '\(.\)' 2>/dev/null ||
19663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19665 /^X\(\/\/\)$/{ s//\1/; q; }
19666 /^X\(\/\).*/{ s//\1/; q; }
19669 test ! -n "$as_dirs" || mkdir $as_dirs
19670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19671 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19672 { (exit 1); exit 1; }; }; }
19675 mv $tmp/config.h $ac_file
19679 rm -f $tmp/config.h
19683 cat >>$CONFIG_STATUS <<\_ACEOF
19686 # CONFIG_COMMANDS section.
19688 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19689 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19690 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19691 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19692 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19693 X"$ac_dest" : 'X\(//\)[^/]' \| \
19694 X"$ac_dest" : 'X\(//\)$' \| \
19695 X"$ac_dest" : 'X\(/\)' \| \
19696 . : '\(.\)' 2>/dev/null ||
19698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19700 /^X\(\/\/\)$/{ s//\1/; q; }
19701 /^X\(\/\).*/{ s//\1/; q; }
19705 if test "$ac_dir" != .; then
19706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19707 # A "../" for each directory in $ac_dir_suffix.
19708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19710 ac_dir_suffix= ac_top_builddir=
19714 .) # No --srcdir option. We are building in place.
19716 if test -z "$ac_top_builddir"; then
19719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19721 [\\/]* | ?:[\\/]* ) # Absolute path.
19722 ac_srcdir=$srcdir$ac_dir_suffix;
19723 ac_top_srcdir=$srcdir ;;
19724 *) # Relative path.
19725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19728 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19730 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19731 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19732 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19733 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19736 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19737 echo "$as_me: executing $ac_dest commands" >&6;}
19739 default ) (echo "Doing make of dependencies"; make depend;)
19745 cat >>$CONFIG_STATUS <<\_ACEOF
19747 { (exit 0); exit 0; }
19749 chmod +x $CONFIG_STATUS
19750 ac_clean_files=$ac_clean_files_save
19753 # configure is writing to config.log, and then calls config.status.
19754 # config.status does its own redirection, appending to config.log.
19755 # Unfortunately, on DOS this fails, as config.log is still kept open
19756 # by configure, so config.status won't be able to write to it; its
19757 # output is simply discarded. So we exec the FD to /dev/null,
19758 # effectively closing config.log, so it can be properly (re)opened and
19759 # appended to by config.status. When coming back to configure, we
19760 # need to make the FD available again.
19761 if test "$no_create" != yes; then
19763 ac_config_status_args=
19764 test "$silent" = yes &&
19765 ac_config_status_args="$ac_config_status_args --quiet"
19767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19770 # would make configure fail if this is the last instruction.
19771 $ac_cs_success || { (exit 1); exit 1; }
19776 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19777 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19782 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19783 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19785 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19786 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19788 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19789 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19791 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19792 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19794 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19795 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19797 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19798 chmod 755 $c/sqlite
19801 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19802 largefile_support="yes"
19806 # A whole lot of hand springs to get the compiler version.
19807 # This is because gcc changed the output in version 3.0
19809 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19810 if test "x${CCVERSION}" = "x" ; then
19811 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19813 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19814 if test x"${CXXVERSION}" = x ; then
19815 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19818 if test "x${subsysdir}" = "x${sbindir}" ; then
19821 echo "You have set --sbindir and --with-subsys-dir"
19822 echo " both equal to: ${subsysdir} "
19823 echo " This is not permitted. Please reconfigure."
19825 echo "Aborting configuration ..."
19831 if test "x${db_name}" = "xInternal" ; then
19834 echo "You have not specified either --enable-client-only or one of the"
19835 echo " supported databases: MySQL, PostgreSQL, or SQLite".
19836 echo " This is not permitted. Please reconfigure."
19838 echo "Aborting the configuration ..."
19845 Configuration on `date`:
19847 Host: $host -- ${DISTNAME} ${DISTVER}
19848 Bacula version: ${VERSION} (${DATE})
19849 Source code location: ${srcdir}
19850 Install binaries: ${sbindir}
19851 Install config files: ${sysconfdir}
19852 Scripts directory: ${scriptdir}
19853 Working directory: ${working_dir}
19854 PID directory: ${piddir}
19855 Subsys directory: ${subsysdir}
19856 C Compiler: ${CC} ${CCVERSION}
19857 C++ Compiler: ${CXX} ${CXXVERSION}
19858 Compiler flags: ${WCFLAGS} ${CFLAGS}
19859 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19861 Statically Linked Tools: ${support_static_tools}
19862 Statically Linked FD: ${support_static_fd}
19863 Statically Linked SD: ${support_static_sd}
19864 Statically Linked DIR: ${support_static_dir}
19865 Statically Linked CONS: ${support_static_cons}
19866 Database type: ${db_name}
19867 Database lib: ${DB_LIBS}
19869 Job Output Email: ${job_email}
19870 Traceback Email: ${dump_email}
19871 SMTP Host Address: ${smtp_host}
19873 Director Port: ${dir_port}
19874 File daemon Port: ${fd_port}
19875 Storage daemon Port: ${sd_port}
19877 Director User: ${dir_user}
19878 Director Group: ${dir_group}
19879 Storage Daemon User: ${sd_user}
19880 Storage DaemonGroup: ${sd_group}
19881 File Daemon User: ${fd_user}
19882 File Daemon Group: ${fd_group}
19884 SQL binaries Directory ${SQL_BINDIR}
19886 Large file support: $largefile_support
19887 Bacula conio support: ${got_conio} ${CONS_LIBS}
19888 readline support: ${got_readline} ${PRTREADLINE_SRC}
19889 TCP Wrappers support: ${TCPW_MSG}
19890 ZLIB support: ${have_zlib}
19891 enable-smartalloc: ${support_smartalloc}
19892 enable-gnome: ${support_gnome} ${gnome_version}
19893 enable-wx-console: ${support_wx_console}
19894 client-only: ${build_client_only}
19895 ACL support: ${have_acl}
19902 # cweb support: ${got_cweb} ${CWEB_SRC}
19903 # gmp support: ${got_gmp} ${GMP_SRC}