2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup 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'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
882 --with-tcp-wrappers=DIR enable tcpwrappers support
883 --with-working-dir=PATH specify path of Bacula working directory
884 --with-scriptdir=PATH specify path of Bacula scripts directory
885 --with-dump-email=EMAIL dump email address
886 --with-job-email=EMAIL job output email address
887 --with-smtp-host=HOST SMTP mail host address
888 --with-pid-dir=PATH specify location of Bacula pid files
889 --with-subsys-dir=PATH specify location of Bacula subsys file
890 --with-baseport=PORT specify base port address for daemons
891 --with-dir-password=PASSWORD specify Director's password
892 --with-fd-password=PASSWORD specify Client's password
893 --with-sd-password=PASSWORD specify Storage daemon's password
894 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
895 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
896 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
897 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
898 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
899 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
900 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
901 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
902 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
903 --with-dir-user=USER specify user for Director daemon
904 --with-dir-group=GROUP specify group for Director daemon
905 --with-sd-user=USER specify user for Storage daemon
906 --with-sd-group=GROUP specify group for Storage daemon
907 --with-fd-user=USER specify user for File daemon
908 --with-fd-group=GROUP specify group for File daemon
909 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
910 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
911 base install directory, defaults to /usr/local/pgsql
913 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
914 install directory, default is to search through
915 a number of common places for the MySQL files.
917 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
918 install directory, default is to search through
919 a number of common places for the MySQL files.
921 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
922 install directory, default is to search through
923 a number of common places for the SQLite files.
924 --with-x use the X Window System
926 Some influential environment variables:
927 CC C compiler command
928 CFLAGS C compiler flags
929 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930 nonstandard directory <lib dir>
931 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
932 headers in a nonstandard directory <include dir>
933 CXX C++ compiler command
934 CXXFLAGS C++ compiler flags
937 Use these variables to override the choices made by `configure' or to help
938 it to find libraries and programs with nonstandard names/locations.
943 if test "$ac_init_help" = "recursive"; then
944 # If there are subdirs, report their specific --help.
946 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
947 test -d $ac_dir || continue
950 if test "$ac_dir" != .; then
951 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
952 # A "../" for each directory in $ac_dir_suffix.
953 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
955 ac_dir_suffix= ac_top_builddir=
959 .) # No --srcdir option. We are building in place.
961 if test -z "$ac_top_builddir"; then
964 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
966 [\\/]* | ?:[\\/]* ) # Absolute path.
967 ac_srcdir=$srcdir$ac_dir_suffix;
968 ac_top_srcdir=$srcdir ;;
970 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
971 ac_top_srcdir=$ac_top_builddir$srcdir ;;
974 # Do not use `cd foo && pwd` to compute absolute paths, because
975 # the directories may not exist.
977 .) ac_abs_builddir="$ac_dir";;
980 .) ac_abs_builddir=`pwd`;;
981 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
982 *) ac_abs_builddir=`pwd`/"$ac_dir";;
985 case $ac_abs_builddir in
986 .) ac_abs_top_builddir=${ac_top_builddir}.;;
988 case ${ac_top_builddir}. in
989 .) ac_abs_top_builddir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
991 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
994 case $ac_abs_builddir in
995 .) ac_abs_srcdir=$ac_srcdir;;
998 .) ac_abs_srcdir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1000 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1006 case $ac_top_srcdir in
1007 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014 # Check for guested configure; otherwise get Cygnus style configure.
1015 if test -f $ac_srcdir/configure.gnu; then
1017 $SHELL $ac_srcdir/configure.gnu --help=recursive
1018 elif test -f $ac_srcdir/configure; then
1020 $SHELL $ac_srcdir/configure --help=recursive
1021 elif test -f $ac_srcdir/configure.ac ||
1022 test -f $ac_srcdir/configure.in; then
1024 $ac_configure --help
1026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 test -n "$ac_init_help" && exit 0
1033 if $ac_init_version; then
1036 Copyright (C) 2003 Free Software Foundation, Inc.
1037 This configure script is free software; the Free Software Foundation
1038 gives unlimited permission to copy, distribute and modify it.
1044 This file contains any messages produced by compilers while
1045 running configure, to aid debugging if configure makes a mistake.
1047 It was created by $as_me, which was
1048 generated by GNU Autoconf 2.59. Invocation command line was
1059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1071 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1082 test -z "$as_dir" && as_dir=.
1083 echo "PATH: $as_dir"
1098 # Keep a trace of the command line.
1099 # Strip out --no-create and --no-recursion so they do not pile up.
1100 # Strip out --silent because we don't want to record it for future runs.
1101 # Also quote any args containing shell meta-characters.
1102 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_must_keep_next=false
1113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1117 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1118 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1121 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1123 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1124 if test $ac_must_keep_next = true; then
1125 ac_must_keep_next=false # Got value, back to normal.
1128 *=* | --config-cache | -C | -disable-* | --disable-* \
1129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1131 | -with-* | --with-* | -without-* | --without-* | --x)
1132 case "$ac_configure_args0 " in
1133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1136 -* ) ac_must_keep_next=true ;;
1139 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1140 # Get rid of the leading space.
1146 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1147 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1149 # When interrupted or exit'd, cleanup temporary files, and complete
1150 # config.log. We remove comments because anyway the quotes in there
1151 # would cause problems or look ugly.
1152 # WARNING: Be sure not to use single quotes in there, as some shells,
1153 # such as our DU 5.0 friend, will then `close' the trap.
1154 trap 'exit_status=$?
1155 # Save into config.log some information that might help in debugging.
1160 ## ---------------- ##
1161 ## Cache variables. ##
1162 ## ---------------- ##
1165 # The following way of writing the cache mishandles newlines in values,
1168 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1171 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1183 ## ----------------- ##
1184 ## Output variables. ##
1185 ## ----------------- ##
1188 for ac_var in $ac_subst_vars
1190 eval ac_val=$`echo $ac_var`
1191 echo "$ac_var='"'"'$ac_val'"'"'"
1195 if test -n "$ac_subst_files"; then
1202 for ac_var in $ac_subst_files
1204 eval ac_val=$`echo $ac_var`
1205 echo "$ac_var='"'"'$ac_val'"'"'"
1210 if test -s confdefs.h; then
1217 sed "/^$/d" confdefs.h | sort
1220 test "$ac_signal" != 0 &&
1221 echo "$as_me: caught signal $ac_signal"
1222 echo "$as_me: exit $exit_status"
1224 rm -f core *.core &&
1225 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1228 for ac_signal in 1 2 13 15; do
1229 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1234 rm -rf conftest* confdefs.h
1235 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1238 # Predefined preprocessor variables.
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_NAME "$PACKAGE_NAME"
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_STRING "$PACKAGE_STRING"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1265 # Let the site file select an alternate cache file if it wants to.
1266 # Prefer explicitly selected file to automatically selected ones.
1267 if test -z "$CONFIG_SITE"; then
1268 if test "x$prefix" != xNONE; then
1269 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1271 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1274 for ac_site_file in $CONFIG_SITE; do
1275 if test -r "$ac_site_file"; then
1276 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1277 echo "$as_me: loading site script $ac_site_file" >&6;}
1278 sed 's/^/| /' "$ac_site_file" >&5
1283 if test -r "$cache_file"; then
1284 # Some versions of bash will fail to source /dev/null (special
1285 # files actually), so we avoid doing that.
1286 if test -f "$cache_file"; then
1287 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1288 echo "$as_me: loading cache $cache_file" >&6;}
1290 [\\/]* | ?:[\\/]* ) . $cache_file;;
1291 *) . ./$cache_file;;
1295 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1296 echo "$as_me: creating cache $cache_file" >&6;}
1300 # Check that the precious variables saved in the cache have kept the same
1302 ac_cache_corrupted=false
1303 for ac_var in `(set) 2>&1 |
1304 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1306 eval ac_new_set=\$ac_env_${ac_var}_set
1307 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1308 eval ac_new_val="\$ac_env_${ac_var}_value"
1309 case $ac_old_set,$ac_new_set in
1311 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1312 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1313 ac_cache_corrupted=: ;;
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1320 if test "x$ac_old_val" != "x$ac_new_val"; then
1321 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1322 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1323 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1324 echo "$as_me: former value: $ac_old_val" >&2;}
1325 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1326 echo "$as_me: current value: $ac_new_val" >&2;}
1327 ac_cache_corrupted=:
1330 # Pass precious variables to config.status.
1331 if test "$ac_new_set" = set; then
1333 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1334 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1335 *) ac_arg=$ac_var=$ac_new_val ;;
1337 case " $ac_configure_args " in
1338 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1339 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1343 if $ac_cache_corrupted; then
1344 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1345 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1346 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1347 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1348 { (exit 1); exit 1; }; }
1352 ac_cpp='$CPP $CPPFLAGS'
1353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1382 if test -f $ac_dir/install-sh; then
1384 ac_install_sh="$ac_aux_dir/install-sh -c"
1386 elif test -f $ac_dir/install.sh; then
1388 ac_install_sh="$ac_aux_dir/install.sh -c"
1390 elif test -f $ac_dir/shtool; then
1392 ac_install_sh="$ac_aux_dir/shtool install -c"
1396 if test -z "$ac_aux_dir"; then
1397 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1398 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1399 { (exit 1); exit 1; }; }
1401 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1405 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1413 # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 test -z "$as_dir" && as_dir=.
1430 for ac_exec_ext in '' $ac_executable_extensions; do
1431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 TRUEPRG=$ac_cv_path_TRUEPRG
1444 if test -n "$TRUEPRG"; then
1445 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1446 echo "${ECHO_T}$TRUEPRG" >&6
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1452 test -n "$TRUEPRG" && break
1454 test -n "$TRUEPRG" || TRUEPRG=":"
1456 for ac_prog in false
1458 # Extract the first word of "$ac_prog", so it can be a program name with args.
1459 set dummy $ac_prog; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 FALSEPRG=$ac_cv_path_FALSEPRG
1489 if test -n "$FALSEPRG"; then
1490 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1491 echo "${ECHO_T}$FALSEPRG" >&6
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1497 test -n "$FALSEPRG" && break
1499 test -n "$FALSEPRG" || FALSEPRG=":"
1504 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1505 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 echo "configuring for bacula $VERSION ($DATE)"
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "gcc", so it can be a program name with args.
1556 set dummy gcc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="gcc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1595 if test -z "$CC"; then
1596 if test -n "$ac_tool_prefix"; then
1597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1598 set dummy ${ac_tool_prefix}cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_CC="${ac_tool_prefix}cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test -n "$CC"; then
1625 echo "$as_me:$LINENO: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1628 echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1633 if test -z "$ac_cv_prog_CC"; then
1635 # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_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 ac_cv_prog_ac_ct_CC="cc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1676 if test -z "$CC"; then
1677 # Extract the first word of "cc", so it can be a program name with args.
1678 set dummy cc; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$CC"; then
1685 ac_cv_prog_CC="$CC" # Let the user override the test.
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1696 ac_prog_rejected=yes
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 if test $ac_prog_rejected = yes; then
1707 # We found a bogon in the path, so make sure we never use it.
1708 set dummy $ac_cv_prog_CC
1710 if test $# != 0; then
1711 # We chose a different compiler from the bogus one.
1712 # However, it has the same basename, so the bogon will be chosen
1713 # first if we set CC to just the basename; use the full file name.
1715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$CC"; then
1731 if test -n "$ac_tool_prefix"; then
1734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 if test -n "$CC"; then
1742 ac_cv_prog_CC="$CC" # Let the user override the test.
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 if test -n "$CC"; then
1762 echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1769 test -n "$CC" && break
1772 if test -z "$CC"; then
1776 # Extract the first word of "$ac_prog", so it can be a program name with args.
1777 set dummy $ac_prog; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 if test -n "$ac_ct_CC"; then
1784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 ac_cv_prog_ac_ct_CC="$ac_prog"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803 if test -n "$ac_ct_CC"; then
1804 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805 echo "${ECHO_T}$ac_ct_CC" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1811 test -n "$ac_ct_CC" && break
1820 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1821 See \`config.log' for more details." >&5
1822 echo "$as_me: error: no acceptable C compiler found in \$PATH
1823 See \`config.log' for more details." >&2;}
1824 { (exit 1); exit 1; }; }
1826 # Provide some information about the compiler.
1827 echo "$as_me:$LINENO:" \
1828 "checking for C compiler version" >&5
1829 ac_compiler=`set X $ac_compile; echo $2`
1830 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1831 (eval $ac_compiler --version </dev/null >&5) 2>&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }
1835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1836 (eval $ac_compiler -v </dev/null >&5) 2>&5
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1841 (eval $ac_compiler -V </dev/null >&5) 2>&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1846 cat >conftest.$ac_ext <<_ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h. */
1861 ac_clean_files_save=$ac_clean_files
1862 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1863 # Try to create an executable without -o first, disregard a.out.
1864 # It will help us diagnose broken compilers, and finding out an intuition
1866 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1867 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1868 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1869 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1870 (eval $ac_link_default) 2>&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 # Find the output, starting from the most likely. This scheme is
1875 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1878 # Be careful to initialize this variable, since it used to be cached.
1879 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1881 # b.out is created by i960 compilers.
1882 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1884 test -f "$ac_file" || continue
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1889 # This is the source file.
1892 # We found the default executable, but exeext='' is most
1896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897 # FIXME: I believe we export ac_cv_exeext for Libtool,
1898 # but it would be cool to find out if it's true. Does anybody
1899 # maintain Libtool? --akim.
1907 echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1911 See \`config.log' for more details." >&5
1912 echo "$as_me: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&2;}
1914 { (exit 77); exit 77; }; }
1917 ac_exeext=$ac_cv_exeext
1918 echo "$as_me:$LINENO: result: $ac_file" >&5
1919 echo "${ECHO_T}$ac_file" >&6
1921 # Check the compiler produces executables we can run. If not, either
1922 # the compiler is broken, or we cross compile.
1923 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1924 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1925 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1926 # If not cross compiling, check that we can run a simple program.
1927 if test "$cross_compiling" != yes; then
1928 if { ac_try='./$ac_file'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1936 if test "$cross_compiling" = maybe; then
1939 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1940 If you meant to cross compile, use \`--host'.
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot run C compiled programs.
1943 If you meant to cross compile, use \`--host'.
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1949 echo "$as_me:$LINENO: result: yes" >&5
1950 echo "${ECHO_T}yes" >&6
1952 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1953 ac_clean_files=$ac_clean_files_save
1954 # Check the compiler produces executables we can run. If not, either
1955 # the compiler is broken, or we cross compile.
1956 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1958 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1959 echo "${ECHO_T}$cross_compiling" >&6
1961 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1964 (eval $ac_link) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; then
1968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1970 # work properly (i.e., refer to `conftest.exe'), while it won't with
1972 for ac_file in conftest.exe conftest conftest.*; do
1973 test -f "$ac_file" || continue
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1983 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1990 rm -f conftest$ac_cv_exeext
1991 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1992 echo "${ECHO_T}$ac_cv_exeext" >&6
1994 rm -f conftest.$ac_ext
1995 EXEEXT=$ac_cv_exeext
1997 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1998 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1999 if test "${ac_cv_objext+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 cat >conftest.$ac_ext <<_ACEOF
2005 cat confdefs.h >>conftest.$ac_ext
2006 cat >>conftest.$ac_ext <<_ACEOF
2007 /* end confdefs.h. */
2017 rm -f conftest.o conftest.obj
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2031 echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2034 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2037 See \`config.log' for more details." >&2;}
2038 { (exit 1); exit 1; }; }
2041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2043 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2044 echo "${ECHO_T}$ac_cv_objext" >&6
2045 OBJEXT=$ac_cv_objext
2047 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 cat >conftest.$ac_ext <<_ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h. */
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>conftest.er1
2074 grep -v '^ *+' conftest.er1 >conftest.err
2076 cat conftest.err >&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); } &&
2079 { ac_try='test -z "$ac_c_werror_flag"
2080 || test ! -s conftest.err'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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.err conftest.$ac_objext conftest.$ac_ext
2100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2105 GCC=`test $ac_compiler_gnu = yes && echo yes`
2106 ac_test_CFLAGS=${CFLAGS+set}
2107 ac_save_CFLAGS=$CFLAGS
2109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2111 if test "${ac_cv_prog_cc_g+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 cat >conftest.$ac_ext <<_ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>conftest.er1
2133 grep -v '^ *+' conftest.er1 >conftest.err
2135 cat conftest.err >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -z "$ac_c_werror_flag"
2139 || test ! -s conftest.err'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; } &&
2145 { ac_try='test -s conftest.$ac_objext'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2153 echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2160 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2162 if test "$ac_test_CFLAGS" = set; then
2163 CFLAGS=$ac_save_CFLAGS
2164 elif test $ac_cv_prog_cc_g = yes; then
2165 if test "$GCC" = yes; then
2171 if test "$GCC" = yes; then
2177 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2178 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2179 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 ac_cv_prog_cc_stdc=no
2184 cat >conftest.$ac_ext <<_ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2192 #include <sys/types.h>
2193 #include <sys/stat.h>
2194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2195 struct buf { int x; };
2196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2197 static char *e (p, i)
2203 static char *f (char * (*g) (char **, int), char **p, ...)
2208 s = g (p, va_arg (v,int));
2213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2214 function prototypes and stuff, but not '\xHH' hex character constants.
2215 These don't provoke an error unfortunately, instead are silently treated
2216 as 'x'. The following induces an error, until -std1 is added to get
2217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2218 array size at least. It's necessary to write '\x00'==0 to get something
2219 that's true only with -std1. */
2220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2222 int test (int i, double x);
2223 struct s1 {int (*f) (int a);};
2224 struct s2 {int (*f) (double a);};
2225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2236 # Don't try gcc -ansi; that turns off useful extensions and
2237 # breaks some systems' header files.
2238 # AIX -qlanglvl=ansi
2239 # Ultrix and OSF/1 -std1
2240 # HP-UX 10.20 and later -Ae
2241 # HP-UX older versions -Aa -D_HPUX_SOURCE
2242 # SVR4 -Xc -D__EXTENSIONS__
2243 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2245 CC="$ac_save_CC $ac_arg"
2246 rm -f conftest.$ac_objext
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>conftest.er1
2250 grep -v '^ *+' conftest.er1 >conftest.err
2252 cat conftest.err >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); } &&
2255 { ac_try='test -z "$ac_c_werror_flag"
2256 || test ! -s conftest.err'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2268 ac_cv_prog_cc_stdc=$ac_arg
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2275 rm -f conftest.err conftest.$ac_objext
2277 rm -f conftest.$ac_ext conftest.$ac_objext
2282 case "x$ac_cv_prog_cc_stdc" in
2284 echo "$as_me:$LINENO: result: none needed" >&5
2285 echo "${ECHO_T}none needed" >&6 ;;
2287 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2288 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2289 CC="$CC $ac_cv_prog_cc_stdc" ;;
2292 # Some people use a C++ compiler to compile C. Since we use `exit',
2293 # in C++ we need to declare it. In case someone uses the same compiler
2294 # for both compiling C and C++ we need to have the C++ compiler decide
2295 # the declaration of exit, since it's the most demanding environment.
2296 cat >conftest.$ac_ext <<_ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1 >conftest.err
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 for ac_declaration in \
2325 'extern "C" void std::exit (int) throw (); using std::exit;' \
2326 'extern "C" void std::exit (int); using std::exit;' \
2327 'extern "C" void exit (int) throw ();' \
2328 'extern "C" void exit (int);' \
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2351 grep -v '^ *+' conftest.er1 >conftest.err
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>conftest.er1
2396 grep -v '^ *+' conftest.er1 >conftest.err
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 if test -n "$ac_declaration"; then
2424 echo '#ifdef __cplusplus' >>confdefs.h
2425 echo $ac_declaration >>confdefs.h
2426 echo '#endif' >>confdefs.h
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442 ac_cpp='$CXXCPP $CPPFLAGS'
2443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2446 if test -n "$ac_tool_prefix"; then
2447 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2451 echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2453 if test "${ac_cv_prog_CXX+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$CXX"; then
2457 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 if test -n "$CXX"; then
2477 echo "$as_me:$LINENO: result: $CXX" >&5
2478 echo "${ECHO_T}$CXX" >&6
2480 echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2484 test -n "$CXX" && break
2487 if test -z "$CXX"; then
2489 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$ac_ct_CXX"; then
2499 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_CXX="$ac_prog"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2518 if test -n "$ac_ct_CXX"; then
2519 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2520 echo "${ECHO_T}$ac_ct_CXX" >&6
2522 echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6
2526 test -n "$ac_ct_CXX" && break
2528 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2534 # Provide some information about the compiler.
2535 echo "$as_me:$LINENO:" \
2536 "checking for C++ compiler version" >&5
2537 ac_compiler=`set X $ac_compile; echo $2`
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2539 (eval $ac_compiler --version </dev/null >&5) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2544 (eval $ac_compiler -v </dev/null >&5) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2549 (eval $ac_compiler -V </dev/null >&5) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2554 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2556 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_cxx_werror_flag"
2587 || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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.err conftest.$ac_objext conftest.$ac_ext
2607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2612 GXX=`test $ac_compiler_gnu = yes && echo yes`
2613 ac_test_CXXFLAGS=${CXXFLAGS+set}
2614 ac_save_CXXFLAGS=$CXXFLAGS
2616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2618 if test "${ac_cv_prog_cxx_g+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_cxx_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 ac_cv_prog_cxx_g=yes
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2669 if test "$ac_test_CXXFLAGS" = set; then
2670 CXXFLAGS=$ac_save_CXXFLAGS
2671 elif test $ac_cv_prog_cxx_g = yes; then
2672 if test "$GXX" = yes; then
2678 if test "$GXX" = yes; then
2684 for ac_declaration in \
2686 'extern "C" void std::exit (int) throw (); using std::exit;' \
2687 'extern "C" void std::exit (int); using std::exit;' \
2688 'extern "C" void exit (int) throw ();' \
2689 'extern "C" void exit (int);' \
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_cxx_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -z "$ac_cxx_werror_flag"
2763 || test ! -s conftest.err'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 if test -n "$ac_declaration"; then
2785 echo '#ifdef __cplusplus' >>confdefs.h
2786 echo $ac_declaration >>confdefs.h
2787 echo '#endif' >>confdefs.h
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 if test "x$CC" != xcc; then
2797 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2800 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2803 set dummy $CC; ac_cc=`echo $2 |
2804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.$ac_ext <<_ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); };
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2839 if test "x$CC" != xcc; then
2840 # Test first that cc exists at all.
2841 if { ac_try='cc -c conftest.$ac_ext >&5'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2862 # cc exists but doesn't like -o.
2863 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2880 cat >>confdefs.h <<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2892 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2893 # On Suns, sometimes $CPP names a directory.
2894 if test -n "$CPP" && test -d "$CPP"; then
2897 if test -z "$CPP"; then
2898 if test "${ac_cv_prog_CPP+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 # Double quotes because CPP needs to be expanded
2902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2905 for ac_c_preproc_warn_flag in '' yes
2907 # Use a header file that comes with gcc, so configuring glibc
2908 # with a fresh cross-compiler works.
2909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2910 # <limits.h> exists even on freestanding compilers.
2911 # On the NeXT, cc -E runs the code through the compiler's parser,
2912 # not just through cpp. "Syntax error" is here to catch this case.
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2920 # include <limits.h>
2922 # include <assert.h>
2926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } >/dev/null; then
2934 if test -s conftest.err; then
2935 ac_cpp_err=$ac_c_preproc_warn_flag
2936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2943 if test -z "$ac_cpp_err"; then
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Broken: fails on valid input.
2952 rm -f conftest.err conftest.$ac_ext
2954 # OK, works on sane cases. Now check whether non-existent headers
2955 # can be detected and how.
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include <ac_nonexistent.h>
2964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } >/dev/null; then
2972 if test -s conftest.err; then
2973 ac_cpp_err=$ac_c_preproc_warn_flag
2974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2981 if test -z "$ac_cpp_err"; then
2982 # Broken: success on invalid input.
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Passes both tests.
2992 rm -f conftest.err conftest.$ac_ext
2995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2996 rm -f conftest.err conftest.$ac_ext
2997 if $ac_preproc_ok; then
3009 echo "$as_me:$LINENO: result: $CPP" >&5
3010 echo "${ECHO_T}$CPP" >&6
3012 for ac_c_preproc_warn_flag in '' yes
3014 # Use a header file that comes with gcc, so configuring glibc
3015 # with a fresh cross-compiler works.
3016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3017 # <limits.h> exists even on freestanding compilers.
3018 # On the NeXT, cc -E runs the code through the compiler's parser,
3019 # not just through cpp. "Syntax error" is here to catch this case.
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3027 # include <limits.h>
3029 # include <assert.h>
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null; then
3041 if test -s conftest.err; then
3042 ac_cpp_err=$ac_c_preproc_warn_flag
3043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3050 if test -z "$ac_cpp_err"; then
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Broken: fails on valid input.
3059 rm -f conftest.err conftest.$ac_ext
3061 # OK, works on sane cases. Now check whether non-existent headers
3062 # can be detected and how.
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069 #include <ac_nonexistent.h>
3071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } >/dev/null; then
3079 if test -s conftest.err; then
3080 ac_cpp_err=$ac_c_preproc_warn_flag
3081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088 if test -z "$ac_cpp_err"; then
3089 # Broken: success on invalid input.
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Passes both tests.
3099 rm -f conftest.err conftest.$ac_ext
3102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3103 rm -f conftest.err conftest.$ac_ext
3104 if $ac_preproc_ok; then
3107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3108 See \`config.log' for more details." >&5
3109 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&2;}
3111 { (exit 1); exit 1; }; }
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 echo "$as_me:$LINENO: checking for egrep" >&5
3122 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3123 if test "${ac_cv_prog_egrep+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3127 then ac_cv_prog_egrep='grep -E'
3128 else ac_cv_prog_egrep='egrep'
3131 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3132 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3133 EGREP=$ac_cv_prog_egrep
3136 if test $ac_cv_c_compiler_gnu = yes; then
3137 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3138 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3139 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 ac_pattern="Autoconf.*'x'"
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3154 ac_cv_prog_gcc_traditional=yes
3156 ac_cv_prog_gcc_traditional=no
3161 if test $ac_cv_prog_gcc_traditional = no; then
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173 ac_cv_prog_gcc_traditional=yes
3179 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3180 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3181 if test $ac_cv_prog_gcc_traditional = yes; then
3182 CC="$CC -traditional"
3186 if test "x$CC" = xgcc
3188 cat >>confdefs.h <<\_ACEOF
3194 # Find a good install program. We prefer a C program (faster),
3195 # so one script is as good as another. But avoid the broken or
3196 # incompatible versions:
3197 # SysV /etc/install, /usr/sbin/install
3198 # SunOS /usr/etc/install
3199 # IRIX /sbin/install
3201 # AmigaOS /C/install, which installs bootblocks on floppy discs
3202 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3203 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3204 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3205 # OS/2's system install, which has a completely different semantic
3206 # ./install, which can be erroneously created by make from ./install.sh.
3207 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3208 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3209 if test -z "$INSTALL"; then
3210 if test "${ac_cv_path_install+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 # Account for people who put trailing slashes in PATH elements.
3220 ./ | .// | /cC/* | \
3221 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3222 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3225 # OSF1 and SCO ODT 3.0 have their own names for install.
3226 # Don't use installbsd from OSF since it installs stuff as root
3228 for ac_prog in ginstall scoinst install; do
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3231 if test $ac_prog = install &&
3232 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233 # AIX install. It has an incompatible calling convention.
3235 elif test $ac_prog = install &&
3236 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # program-specific install script used by HP pwplus--don't use.
3240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3252 if test "${ac_cv_path_install+set}" = set; then
3253 INSTALL=$ac_cv_path_install
3255 # As a last resort, use the slow shell script. We don't cache a
3256 # path for INSTALL within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the path is relative.
3259 INSTALL=$ac_install_sh
3262 echo "$as_me:$LINENO: result: $INSTALL" >&5
3263 echo "${ECHO_T}$INSTALL" >&6
3265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3266 # It thinks the first close brace ends the variable substitution.
3267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_prog_RANLIB+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if test -n "$RANLIB"; then
3282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 RANLIB=$ac_cv_prog_RANLIB
3301 if test -n "$RANLIB"; then
3302 echo "$as_me:$LINENO: result: $RANLIB" >&5
3303 echo "${ECHO_T}$RANLIB" >&6
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3310 if test -z "$ac_cv_prog_RANLIB"; then
3311 ac_ct_RANLIB=$RANLIB
3312 # Extract the first word of "ranlib", so it can be a program name with args.
3313 set dummy ranlib; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$ac_ct_RANLIB"; then
3320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_RANLIB="ranlib"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3340 if test -n "$ac_ct_RANLIB"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 RANLIB=$ac_ct_RANLIB
3350 RANLIB="$ac_cv_prog_RANLIB"
3353 # Extract the first word of "mv", so it can be a program name with args.
3354 set dummy mv; ac_word=$2
3355 echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357 if test "${ac_cv_path_MV+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3385 if test -n "$MV"; then
3386 echo "$as_me:$LINENO: result: $MV" >&5
3387 echo "${ECHO_T}$MV" >&6
3389 echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3393 # Extract the first word of "rm", so it can be a program name with args.
3394 set dummy rm; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_path_RM+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3425 if test -n "$RM"; then
3426 echo "$as_me:$LINENO: result: $RM" >&5
3427 echo "${ECHO_T}$RM" >&6
3429 echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3433 # Extract the first word of "cp", so it can be a program name with args.
3434 set dummy cp; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_path_CP+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3465 if test -n "$CP"; then
3466 echo "$as_me:$LINENO: result: $CP" >&5
3467 echo "${ECHO_T}$CP" >&6
3469 echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3473 # Extract the first word of "sed", so it can be a program name with args.
3474 set dummy sed; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_path_SED+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3505 if test -n "$SED"; then
3506 echo "$as_me:$LINENO: result: $SED" >&5
3507 echo "${ECHO_T}$SED" >&6
3509 echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3513 # Extract the first word of "echo", so it can be a program name with args.
3514 set dummy echo; ac_word=$2
3515 echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3517 if test "${ac_cv_path_ECHO+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3543 ECHO=$ac_cv_path_ECHO
3545 if test -n "$ECHO"; then
3546 echo "$as_me:$LINENO: result: $ECHO" >&5
3547 echo "${ECHO_T}$ECHO" >&6
3549 echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3553 # Extract the first word of "cmp", so it can be a program name with args.
3554 set dummy cmp; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_path_CMP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3585 if test -n "$CMP"; then
3586 echo "$as_me:$LINENO: result: $CMP" >&5
3587 echo "${ECHO_T}$CMP" >&6
3589 echo "$as_me:$LINENO: result: no" >&5
3590 echo "${ECHO_T}no" >&6
3593 # Extract the first word of "tbl", so it can be a program name with args.
3594 set dummy tbl; ac_word=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_path_TBL+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3625 if test -n "$TBL"; then
3626 echo "$as_me:$LINENO: result: $TBL" >&5
3627 echo "${ECHO_T}$TBL" >&6
3629 echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3633 # Extract the first word of "ar", so it can be a program name with args.
3634 set dummy ar; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_path_AR+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3665 if test -n "$AR"; then
3666 echo "$as_me:$LINENO: result: $AR" >&5
3667 echo "${ECHO_T}$AR" >&6
3669 echo "$as_me:$LINENO: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3673 # Extract the first word of "openssl", so it can be a program name with args.
3674 set dummy openssl; ac_word=$2
3675 echo "$as_me:$LINENO: checking for $ac_word" >&5
3676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3677 if test "${ac_cv_path_OPENSSL+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3703 OPENSSL=$ac_cv_path_OPENSSL
3705 if test -n "$OPENSSL"; then
3706 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3707 echo "${ECHO_T}$OPENSSL" >&6
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3713 # Extract the first word of "mtx", so it can be a program name with args.
3714 set dummy mtx; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_path_MTX+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3745 if test -n "$MTX"; then
3746 echo "$as_me:$LINENO: result: $MTX" >&5
3747 echo "${ECHO_T}$MTX" >&6
3749 echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3753 # Extract the first word of "pkg-config", so it can be a program name with args.
3754 set dummy pkg-config; ac_word=$2
3755 echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3783 PKGCONFIG=$ac_cv_path_PKGCONFIG
3785 if test -n "$PKGCONFIG"; then
3786 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3787 echo "${ECHO_T}$PKGCONFIG" >&6
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3793 # Extract the first word of "wx-config", so it can be a program name with args.
3794 set dummy wx-config; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3823 WXCONFIG=$ac_cv_path_WXCONFIG
3825 if test -n "$WXCONFIG"; then
3826 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3827 echo "${ECHO_T}$WXCONFIG" >&6
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3833 # Extract the first word of "cdrecord", so it can be a program name with args.
3834 set dummy cdrecord; ac_word=$2
3835 echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837 if test "${ac_cv_path_CDRECORD+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3863 CDRECORD=$ac_cv_path_CDRECORD
3865 if test -n "$CDRECORD"; then
3866 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3867 echo "${ECHO_T}$CDRECORD" >&6
3869 echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 # Extract the first word of "pidof", so it can be a program name with args.
3874 set dummy pidof; ac_word=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_path_PIDOF+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3903 PIDOF=$ac_cv_path_PIDOF
3905 if test -n "$PIDOF"; then
3906 echo "$as_me:$LINENO: result: $PIDOF" >&5
3907 echo "${ECHO_T}$PIDOF" >&6
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 for ac_prog in gawk mawk nawk awk
3915 # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_AWK+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -n "$AWK"; then
3923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_AWK="$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test -n "$AWK"; then
3943 echo "$as_me:$LINENO: result: $AWK" >&5
3944 echo "${ECHO_T}$AWK" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$AWK" && break
3953 # Some AWK programs fail, so test it and warn the user
3954 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
3955 { if ((prog == $2) || (("(" prog ")") == $2) ||
3956 (("" prog "") == $2) ||
3957 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
3959 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
3960 The regex engine of $AWK is too broken to be used you
3961 might want to install GNU AWK.
3962 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
3963 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
3964 The regex engine of $AWK is too broken to be used you
3965 might want to install GNU AWK.
3966 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
3967 { (exit 1); exit 1; }; }
3970 # Extract the first word of "$THE_AWK", so it can be a program name with args.
3971 set dummy $THE_AWK; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_path_AWK+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4002 if test -n "$AWK"; then
4003 echo "$as_me:$LINENO: result: $AWK" >&5
4004 echo "${ECHO_T}$AWK" >&6
4006 echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4012 test -n "$ARFLAG" || ARFLAGS="cr"
4025 # Make sure we can run config.sub.
4026 $ac_config_sub sun4 >/dev/null 2>&1 ||
4027 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4028 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4029 { (exit 1); exit 1; }; }
4031 echo "$as_me:$LINENO: checking build system type" >&5
4032 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4033 if test "${ac_cv_build+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 ac_cv_build_alias=$build_alias
4037 test -z "$ac_cv_build_alias" &&
4038 ac_cv_build_alias=`$ac_config_guess`
4039 test -z "$ac_cv_build_alias" &&
4040 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4041 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4042 { (exit 1); exit 1; }; }
4043 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4044 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4045 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4046 { (exit 1); exit 1; }; }
4049 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4050 echo "${ECHO_T}$ac_cv_build" >&6
4052 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4053 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4054 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4058 echo "$as_me:$LINENO: checking host system type" >&5
4059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4060 if test "${ac_cv_host+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 ac_cv_host_alias=$host_alias
4064 test -z "$ac_cv_host_alias" &&
4065 ac_cv_host_alias=$ac_cv_build_alias
4066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4067 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4069 { (exit 1); exit 1; }; }
4072 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4073 echo "${ECHO_T}$ac_cv_host" >&6
4075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4081 *cygwin* ) CYGWIN=yes;;
4085 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4091 HAVE_SUN_OS_FALSE='#'
4093 HAVE_SUN_OS_TRUE='#'
4096 cat >>confdefs.h <<\_ACEOF
4097 #define HAVE_SUN_OS 1
4105 HAVE_SUN_OS_FALSE='#'
4107 HAVE_SUN_OS_TRUE='#'
4112 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4118 HAVE_OSF1_OS_FALSE='#'
4120 HAVE_OSF1_OS_TRUE='#'
4123 cat >>confdefs.h <<\_ACEOF
4124 #define HAVE_OSF1_OS 1
4132 HAVE_OSF1_OS_FALSE='#'
4134 HAVE_OSF1_OS_TRUE='#'
4139 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4145 HAVE_AIX_OS_FALSE='#'
4147 HAVE_AIX_OS_TRUE='#'
4150 cat >>confdefs.h <<\_ACEOF
4151 #define HAVE_AIX_OS 1
4159 HAVE_AIX_OS_FALSE='#'
4161 HAVE_AIX_OS_TRUE='#'
4166 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4172 HAVE_HPUX_OS_FALSE='#'
4174 HAVE_HPUX_OS_TRUE='#'
4177 cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_HPUX_OS 1
4186 HAVE_HPUX_OS_FALSE='#'
4188 HAVE_HPUX_OS_TRUE='#'
4193 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4199 HAVE_LINUX_OS_FALSE='#'
4201 HAVE_LINUX_OS_TRUE='#'
4202 HAVE_LINUX_OS_FALSE=
4204 cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_LINUX_OS 1
4213 HAVE_LINUX_OS_FALSE='#'
4215 HAVE_LINUX_OS_TRUE='#'
4216 HAVE_LINUX_OS_FALSE=
4220 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4225 HAVE_FREEBSD_OS_TRUE=
4226 HAVE_FREEBSD_OS_FALSE='#'
4228 HAVE_FREEBSD_OS_TRUE='#'
4229 HAVE_FREEBSD_OS_FALSE=
4231 cat >>confdefs.h <<\_ACEOF
4232 #define HAVE_FREEBSD_OS 1
4239 HAVE_FREEBSD_OS_TRUE=
4240 HAVE_FREEBSD_OS_FALSE='#'
4242 HAVE_FREEBSD_OS_TRUE='#'
4243 HAVE_FREEBSD_OS_FALSE=
4247 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4252 HAVE_NETBSD_OS_TRUE=
4253 HAVE_NETBSD_OS_FALSE='#'
4255 HAVE_NETBSD_OS_TRUE='#'
4256 HAVE_NETBSD_OS_FALSE=
4258 cat >>confdefs.h <<\_ACEOF
4259 #define HAVE_NETBSD_OS 1
4266 HAVE_NETBSD_OS_TRUE=
4267 HAVE_NETBSD_OS_FALSE='#'
4269 HAVE_NETBSD_OS_TRUE='#'
4270 HAVE_NETBSD_OS_FALSE=
4274 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4279 HAVE_OPENBSD_OS_TRUE=
4280 HAVE_OPENBSD_OS_FALSE='#'
4282 HAVE_OPENBSD_OS_TRUE='#'
4283 HAVE_OPENBSD_OS_FALSE=
4285 cat >>confdefs.h <<\_ACEOF
4286 #define HAVE_OPENBSD_OS 1
4293 HAVE_OPENBSD_OS_TRUE=
4294 HAVE_OPENBSD_OS_FALSE='#'
4296 HAVE_OPENBSD_OS_TRUE='#'
4297 HAVE_OPENBSD_OS_FALSE=
4301 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4307 HAVE_BSDI_OS_FALSE='#'
4309 HAVE_BSDI_OS_TRUE='#'
4312 cat >>confdefs.h <<\_ACEOF
4313 #define HAVE_BSDI_OS 1
4321 HAVE_BSDI_OS_FALSE='#'
4323 HAVE_BSDI_OS_TRUE='#'
4328 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4334 HAVE_SGI_OS_FALSE='#'
4336 HAVE_SGI_OS_TRUE='#'
4339 cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_SGI_OS 1
4348 HAVE_SGI_OS_FALSE='#'
4350 HAVE_SGI_OS_TRUE='#'
4355 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4361 HAVE_IRIX_OS_FALSE='#'
4363 HAVE_IRIX_OS_TRUE='#'
4366 cat >>confdefs.h <<\_ACEOF
4367 #define HAVE_IRIX_OS 1
4375 HAVE_IRIX_OS_FALSE='#'
4377 HAVE_IRIX_OS_TRUE='#'
4382 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4387 HAVE_DARWIN_OS_TRUE=
4388 HAVE_DARWIN_OS_FALSE='#'
4390 HAVE_DARWIN_OS_TRUE='#'
4391 HAVE_DARWIN_OS_FALSE=
4393 cat >>confdefs.h <<\_ACEOF
4394 #define HAVE_DARWIN_OS 1
4401 HAVE_DARWIN_OS_TRUE=
4402 HAVE_DARWIN_OS_FALSE='#'
4404 HAVE_DARWIN_OS_TRUE='#'
4405 HAVE_DARWIN_OS_FALSE=
4410 # -----------------------------------------------------------
4411 # ----------------------------------------------------------
4412 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4413 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4414 if test "x$DISTNAME" != "x"
4416 echo "distname set to $DISTNAME"
4417 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4420 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4423 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4426 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4429 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4432 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4435 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4438 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4441 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4444 elif test -f /etc/SuSE-release
4447 elif test -d /etc/SuSEconfig
4450 elif test -f /etc/mandrake-release
4453 elif test -f /etc/whitebox-release
4456 elif test -f /etc/redhat-release
4459 elif test -f /etc/gentoo-release
4462 elif test -f /etc/debian_version
4465 elif test -f /etc/slackware-version
4468 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4471 elif test -f /etc/engarde-version
4474 elif test "$CYGWIN" = yes
4477 cat >>confdefs.h <<\_ACEOF
4478 #define HAVE_CYGWIN 1
4484 echo "$as_me:$LINENO: result: done" >&5
4485 echo "${ECHO_T}done" >&6
4488 # -----------------------------------------------------------
4489 # ----------------------------------------------------------
4494 INSIDE_GNOME_COMMON_TRUE=
4495 INSIDE_GNOME_COMMON_FALSE='#'
4497 INSIDE_GNOME_COMMON_TRUE='#'
4498 INSIDE_GNOME_COMMON_FALSE=
4501 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4503 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4506 # ------------------------------------------------------------------
4507 # If the user has not set --prefix, we set our default to nothing.
4508 # In this case, if the user has not set --sysconfdir, we set it
4509 # to the package default of /etc/bacula. If either --prefix or
4510 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4511 # ------------------------------------------------------------------
4512 if test x${prefix} = xNONE ; then
4513 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4514 sysconfdir=/etc/bacula
4518 sysconfdir=`eval echo ${sysconfdir}`
4520 # -------------------------------------------------------------------------
4521 # If the user has not set --exec-prefix, we default to ${prefix}
4522 # -------------------------------------------------------------------------
4523 if test x${exec_prefix} = xNONE ; then
4524 exec_prefix=${prefix}
4527 # ------------------------------------------------------------------
4528 # If the user has not set --sbindir, we set our default as /sbin
4529 # ------------------------------------------------------------------
4530 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4531 sbindir=${exec_prefix}/sbin
4533 sbindir=`eval echo ${sbindir}`
4535 # ------------------------------------------------------------------
4536 # All list of languages for which a translation exist. Each
4537 # language is separated by a space.
4538 # ------------------------------------------------------------------
4541 for ac_prog in msgfmt
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_path_MSGFMT+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 MSGFMT=$ac_cv_path_MSGFMT
4574 if test -n "$MSGFMT"; then
4575 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4576 echo "${ECHO_T}$MSGFMT" >&6
4578 echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4582 test -n "$MSGFMT" && break
4584 test -n "$MSGFMT" || MSGFMT="no"
4586 if test "$MSGFMT" = "no"
4588 echo 'msgfmt program not found, disabling NLS !'
4590 USE_INCLUDED_LIBINTL=no
4598 support_postgresql=no
4599 support_smartalloc=yes
4600 support_readline=yes
4603 support_wx_console=no
4605 support_static_tools=no
4606 support_static_fd=no
4607 support_static_sd=no
4608 support_static_dir=no
4609 support_static_cons=no
4611 build_client_only=no
4617 # -------------------------------------------
4618 # gnome (default off)
4619 # -------------------------------------------
4620 # Check whether --enable-gnome or --disable-gnome was given.
4621 if test "${enable_gnome+set}" = set; then
4622 enableval="$enable_gnome"
4623 if test x$enableval = xyes; then
4629 if test x$support_gnome = xyes; then
4630 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4632 if test $pkg = 0; then
4633 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4634 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4635 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4636 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4641 GNOME_DIR=src/gnome2-console
4642 gnome_version="Version 2.x"
4655 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4656 if test "${with_gnome_includes+set}" = set; then
4657 withval="$with_gnome_includes"
4659 CFLAGS="$CFLAGS -I$withval"
4664 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4665 if test "${with_gnome_libs+set}" = set; then
4666 withval="$with_gnome_libs"
4668 LDFLAGS="$LDFLAGS -L$withval"
4669 gnome_prefix=$withval
4674 # Check whether --with-gnome or --without-gnome was given.
4675 if test "${with_gnome+set}" = set; then
4676 withval="$with_gnome"
4677 if test x$withval = xyes; then
4681 if test "x$withval" = xno; then
4685 LDFLAGS="$LDFLAGS -L$withval/lib"
4686 CFLAGS="$CFLAGS -I$withval/include"
4687 gnome_prefix=$withval/lib
4694 if test "x$want_gnome" = xyes; then
4696 # Extract the first word of "gnome-config", so it can be a program name with args.
4697 set dummy gnome-config; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 case $GNOME_CONFIG in
4705 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4726 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4728 if test -n "$GNOME_CONFIG"; then
4729 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4730 echo "${ECHO_T}$GNOME_CONFIG" >&6
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4736 if test "$GNOME_CONFIG" = "no"; then
4737 no_gnome_config="yes"
4739 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4740 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4741 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4742 echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6
4746 # Extract the first word of "orbit-config", so it can be a program name with args.
4747 set dummy orbit-config; ac_word=$2
4748 echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 case $ORBIT_CONFIG in
4755 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4776 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4778 if test -n "$ORBIT_CONFIG"; then
4779 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4780 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4782 echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4786 # Extract the first word of "orbit-idl", so it can be a program name with args.
4787 set dummy orbit-idl; ac_word=$2
4788 echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4816 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4818 if test -n "$ORBIT_IDL"; then
4819 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4820 echo "${ECHO_T}$ORBIT_IDL" >&6
4822 echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4826 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4827 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4828 if test "${gnome_cv_orbit_found+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4833 gnome_cv_orbit_found=no
4835 gnome_cv_orbit_found=yes
4839 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4840 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4843 if test x$gnome_cv_orbit_found = xyes; then
4845 HAVE_ORBIT_FALSE='#'
4850 if test x$gnome_cv_orbit_found = xyes; then
4852 ORBIT_CFLAGS=`orbit-config --cflags client server`
4853 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4857 if test xfail = xfailure; then
4858 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4859 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4860 { (exit 1); exit 1; }; }
4864 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4865 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4866 if test "${gnome_cv_gnorba_found+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 gnome_cv_gnorba_found=no
4871 if test x$gnome_cv_orbit_found = xyes; then
4872 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4873 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4874 if test -n "$GNORBA_LIBS"; then
4875 gnome_cv_gnorba_found=yes
4880 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4881 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4884 if test x$gnome_cv_gnorba_found = xyes; then
4886 HAVE_GNORBA_FALSE='#'
4888 HAVE_GNORBA_TRUE='#'
4891 if test x$gnome_cv_orbit_found = xyes; then
4893 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4894 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4898 if test xfail = xfailure; then
4899 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4900 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4901 { (exit 1); exit 1; }; }
4905 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4906 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4907 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4908 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4909 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4910 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4911 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4914 echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6
4916 no_gnome_config="yes"
4920 if test x$exec_prefix = xNONE; then
4921 if test x$prefix = xNONE; then
4922 gnome_prefix=$ac_default_prefix/lib
4924 gnome_prefix=$prefix/lib
4927 gnome_prefix=`eval echo \`echo $libdir\``
4930 if test "$no_gnome_config" = "yes"; then
4931 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4932 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4933 if test -f $gnome_prefix/gnomeConf.sh; then
4934 echo "$as_me:$LINENO: result: found" >&5
4935 echo "${ECHO_T}found" >&6
4936 echo "loading gnome configuration from" \
4937 "$gnome_prefix/gnomeConf.sh"
4938 . $gnome_prefix/gnomeConf.sh
4941 echo "$as_me:$LINENO: result: not found" >&5
4942 echo "${ECHO_T}not found" >&6
4943 if test xfail = xfail; then
4944 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4945 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4946 { (exit 1); exit 1; }; }
4955 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4956 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4960 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4961 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4962 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4965 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4966 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4967 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4970 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4971 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4972 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4974 echo "$as_me:$LINENO: result: unknown library" >&5
4975 echo "${ECHO_T}unknown library" >&6
4977 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4978 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4983 GNOME_DIR=src/gnome-console
4984 gnome_version="Version 1.4"
4990 # -------------------------------------------
4991 # wx-console (default off)
4992 # -------------------------------------------
4993 # Check whether --enable-wx-console or --disable-wx-console was given.
4994 if test "${enable_wx_console+set}" = set; then
4995 enableval="$enable_wx_console"
4996 if test x$enableval = xyes; then
4997 support_wx_console=yes
5002 if test x$support_wx_console = xyes; then
5003 abc=`$WXCONFIG --cppflags`
5005 if test $pkg = 0; then
5006 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5007 WXCONS_LDFLAGS=`$WXCONFIG --libs`
5010 WX_DIR=src/wx-console
5013 echo "wx-config program not found. wx-console disabled."
5015 support_wx_console=no
5021 # -------------------------------------------
5022 # tray-monitor (default off)
5023 # -------------------------------------------
5024 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5025 if test "${enable_tray_monitor+set}" = set; then
5026 enableval="$enable_tray_monitor"
5027 if test x$enableval = xyes; then
5028 support_tray_monitor=yes
5033 if test x$support_tray_monitor = xyes; then
5034 abc=`$PKGCONFIG --exists gtk+-2.0`
5036 if test $pkg = 0; then
5037 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5038 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5041 TRAY_MONITOR_DIR=src/tray-monitor
5042 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5044 if test $pkg = 0; then
5045 cat >>confdefs.h <<\_ACEOF
5046 #define HAVE_GTK_2_4 1
5054 # -------------------------------------------
5055 # smartalloc (default off)
5056 # -------------------------------------------
5057 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5058 if test "${enable_smartalloc+set}" = set; then
5059 enableval="$enable_smartalloc"
5060 if test x$enableval = xno; then
5061 support_smartalloc=no
5065 if test x$support_smartalloc = xyes; then
5066 cat >>confdefs.h <<\_ACEOF
5067 #define SMARTALLOC 1
5072 # -------------------------------------------
5073 # static-tools (default off)
5074 # -------------------------------------------
5075 # Check whether --enable-static-tools or --disable-static-tools was given.
5076 if test "${enable_static_tools+set}" = set; then
5077 enableval="$enable_static_tools"
5078 if test x$enableval = xyes; then
5079 support_static_tools=yes
5084 if test x$support_static_tools = xyes; then
5085 TTOOL_LDFLAGS="-static"
5089 # -------------------------------------------
5090 # static-fd (default off)
5091 # -------------------------------------------
5092 # Check whether --enable-static-fd or --disable-static-fd was given.
5093 if test "${enable_static_fd+set}" = set; then
5094 enableval="$enable_static_fd"
5095 if test x$enableval = xyes; then
5096 support_static_fd=yes
5101 if test x$support_static_fd = xyes; then
5102 STATIC_FD="static-bacula-fd"
5106 # -------------------------------------------
5107 # static-sd (default off)
5108 # -------------------------------------------
5109 # Check whether --enable-static-sd or --disable-static-sd was given.
5110 if test "${enable_static_sd+set}" = set; then
5111 enableval="$enable_static_sd"
5112 if test x$enableval = xyes; then
5113 support_static_sd=yes
5118 if test x$support_static_sd = xyes; then
5119 STATIC_SD="static-bacula-sd"
5123 # -------------------------------------------
5124 # static-dir (default off)
5125 # -------------------------------------------
5126 # Check whether --enable-static-dir or --disable-static-dir was given.
5127 if test "${enable_static_dir+set}" = set; then
5128 enableval="$enable_static_dir"
5129 if test x$enableval = xyes; then
5130 support_static_dir=yes
5135 if test x$support_static_dir = xyes; then
5136 STATIC_DIR="static-bacula-dir"
5140 # -------------------------------------------
5141 # static-cons (default off)
5142 # -------------------------------------------
5143 # Check whether --enable-static-cons or --disable-static-cons was given.
5144 if test "${enable_static_cons+set}" = set; then
5145 enableval="$enable_static_cons"
5146 if test x$enableval = xyes; then
5147 support_static_cons=yes
5154 if test x$support_static_cons = xyes; then
5155 STATIC_CONS="static-bconsole"
5156 STATIC_GNOME_CONS="static-gnome-console"
5157 STATIC_WX_CONS="static-wx-console"
5163 # -------------------------------------------
5164 # client_only (default off)
5165 # -------------------------------------------
5166 # Check whether --enable-client-only or --disable-client-only was given.
5167 if test "${enable_client_only+set}" = set; then
5168 enableval="$enable_client_only"
5169 if test x$enableval = xyes; then
5170 build_client_only=yes
5175 if test x$build_client_only = xno; then
5182 # ---------------------------------------------------
5183 # Check for conio (Bacula readline substitute)(
5184 # ---------------------------------------------------
5185 # this allows you to turn it completely off
5186 # Check whether --enable-conio or --disable-conio was given.
5187 if test "${enable_conio+set}" = set; then
5188 enableval="$enable_conio"
5189 if test x$enableval = xno; then
5195 if test x$support_conio = xyes; then
5196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5198 if test "${ac_cv_header_stdc+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_header_stdc=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_cv_header_stdc=no
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251 if test $ac_cv_header_stdc = yes; then
5252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "memchr" >/dev/null 2>&1; then
5266 ac_cv_header_stdc=no
5272 if test $ac_cv_header_stdc = yes; then
5273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev/null 2>&1; then
5287 ac_cv_header_stdc=no
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 #if ((' ' & 0x0FF) == 0x020)
5306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309 # define ISLOWER(c) \
5310 (('a' <= (c) && (c) <= 'i') \
5311 || ('j' <= (c) && (c) <= 'r') \
5312 || ('s' <= (c) && (c) <= 'z'))
5313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5321 for (i = 0; i < 256; i++)
5322 if (XOR (islower (i), ISLOWER (i))
5323 || toupper (i) != TOUPPER (i))
5328 rm -f conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5341 echo "$as_me: program exited with status $ac_status" >&5
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_cv_header_stdc=no
5348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5354 if test $ac_cv_header_stdc = yes; then
5356 cat >>confdefs.h <<\_ACEOF
5357 #define STDC_HEADERS 1
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5373 inttypes.h stdint.h unistd.h
5375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376 echo "$as_me:$LINENO: checking for $ac_header" >&5
5377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 $ac_includes_default
5389 #include <$ac_header>
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 eval "$as_ac_Header=yes"
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 eval "$as_ac_Header=no"
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434 if test "${ac_cv_header_termcap_h+set}" = set; then
5435 echo "$as_me:$LINENO: checking for termcap.h" >&5
5436 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5437 if test "${ac_cv_header_termcap_h+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5441 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5443 # Is the header compilable?
5444 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5445 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 #include <termcap.h>
5455 rm -f conftest.$ac_objext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag"
5465 || test ! -s conftest.err'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_header_compiler=yes
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 ac_header_compiler=no
5484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486 echo "${ECHO_T}$ac_header_compiler" >&6
5488 # Is the header present?
5489 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5490 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 #include <termcap.h>
5499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } >/dev/null; then
5507 if test -s conftest.err; then
5508 ac_cpp_err=$ac_c_preproc_warn_flag
5509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5516 if test -z "$ac_cpp_err"; then
5517 ac_header_preproc=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_preproc=no
5524 rm -f conftest.err conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526 echo "${ECHO_T}$ac_header_preproc" >&6
5528 # So? What about this header?
5529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5531 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5532 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5534 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5535 ac_header_preproc=yes
5538 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5539 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5541 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5543 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5545 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5547 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5549 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5552 ## ------------------------------------------ ##
5553 ## Report this to the AC_PACKAGE_NAME lists. ##
5554 ## ------------------------------------------ ##
5557 sed "s/^/$as_me: WARNING: /" >&2
5560 echo "$as_me:$LINENO: checking for termcap.h" >&5
5561 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5562 if test "${ac_cv_header_termcap_h+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 ac_cv_header_termcap_h=$ac_header_preproc
5567 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5568 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5571 if test $ac_cv_header_termcap_h = yes; then
5572 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5573 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5574 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 ac_check_lib_save_LIBS=$LIBS
5578 LIBS="-ltermcap $LIBS"
5579 cat >conftest.$ac_ext <<_ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>conftest.er1
5605 grep -v '^ *+' conftest.er1 >conftest.err
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -z "$ac_c_werror_flag"
5611 || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_lib_termcap_tgetent=yes
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 ac_cv_lib_termcap_tgetent=no
5630 rm -f conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_check_lib_save_LIBS
5634 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5635 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5636 if test $ac_cv_lib_termcap_tgetent = yes; then
5637 CONS_LIBS="-ltermcap"
5643 cat >>confdefs.h <<\_ACEOF
5644 #define HAVE_CONIO 1
5649 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5650 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5651 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lncurses $LIBS"
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5663 /* Override any gcc2 internal prototype to avoid an error. */
5667 /* We use char because int might match the return type of a gcc2
5668 builtin and then its argument prototype would still apply. */
5678 rm -f conftest.$ac_objext conftest$ac_exeext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680 (eval $ac_link) 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag"
5688 || test ! -s conftest.err'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; } &&
5694 { ac_try='test -s conftest$ac_exeext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5700 ac_cv_lib_ncurses_tgetent=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_cv_lib_ncurses_tgetent=no
5707 rm -f conftest.err conftest.$ac_objext \
5708 conftest$ac_exeext conftest.$ac_ext
5709 LIBS=$ac_check_lib_save_LIBS
5711 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5712 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5713 if test $ac_cv_lib_ncurses_tgetent = yes; then
5714 CONS_LIBS="-lncurses"
5720 cat >>confdefs.h <<\_ACEOF
5721 #define HAVE_CONIO 1
5734 for ac_header in curses.h
5736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738 echo "$as_me:$LINENO: checking for $ac_header" >&5
5739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5746 # Is the header compilable?
5747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 $ac_includes_default
5756 #include <$ac_header>
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5762 grep -v '^ *+' conftest.er1 >conftest.err
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_header_compiler=yes
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ac_header_compiler=no
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5789 echo "${ECHO_T}$ac_header_compiler" >&6
5791 # Is the header present?
5792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #include <$ac_header>
5802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } >/dev/null; then
5810 if test -s conftest.err; then
5811 ac_cpp_err=$ac_c_preproc_warn_flag
5812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5819 if test -z "$ac_cpp_err"; then
5820 ac_header_preproc=yes
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 ac_header_preproc=no
5827 rm -f conftest.err conftest.$ac_ext
5828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5829 echo "${ECHO_T}$ac_header_preproc" >&6
5831 # So? What about this header?
5832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5838 ac_header_preproc=yes
5841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5855 ## ------------------------------------------ ##
5856 ## Report this to the AC_PACKAGE_NAME lists. ##
5857 ## ------------------------------------------ ##
5860 sed "s/^/$as_me: WARNING: /" >&2
5863 echo "$as_me:$LINENO: checking for $ac_header" >&5
5864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 eval "$as_ac_Header=\$ac_header_preproc"
5870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5875 cat >>confdefs.h <<_ACEOF
5876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 echo "$as_me:$LINENO: checking for term.h" >&5
5884 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5885 if test "${ac_cv_header_term_h+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>conftest.er1
5905 grep -v '^ *+' conftest.er1 >conftest.err
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } &&
5910 { ac_try='test -z "$ac_c_werror_flag"
5911 || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest.$ac_objext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_header_term_h=yes
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_cv_header_term_h=no
5930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5933 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5934 if test $ac_cv_header_term_h = yes; then
5935 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5936 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5937 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 ac_check_lib_save_LIBS=$LIBS
5941 LIBS="-lcurses $LIBS"
5942 cat >conftest.$ac_ext <<_ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5949 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>conftest.er1
5968 grep -v '^ *+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try='test -s conftest$ac_exeext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_cv_lib_curses_tgetent=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_lib_curses_tgetent=no
5993 rm -f conftest.err conftest.$ac_objext \
5994 conftest$ac_exeext conftest.$ac_ext
5995 LIBS=$ac_check_lib_save_LIBS
5997 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5998 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5999 if test $ac_cv_lib_curses_tgetent = yes; then
6000 CONS_LIBS="-lcurses"
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_CONIO 1
6015 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6026 # ---------------------------------------------------
6027 # Check for readline support/directory (default off)
6028 # ---------------------------------------------------
6029 # this allows you to turn it completely off
6030 # Check whether --enable-readline or --disable-readline was given.
6031 if test "${enable_readline+set}" = set; then
6032 enableval="$enable_readline"
6033 if test x$enableval = xno; then
6040 if test x$support_readline = xyes; then
6042 # Check whether --with-readline or --without-readline was given.
6043 if test "${with_readline+set}" = set; then
6044 withval="$with_readline"
6046 case "$with_readline" in
6049 if test "$with_readline" != "yes"; then
6050 CONS_INC="-I${with_readline}"
6051 CONS_LDFLAGS="-L$with_readline"
6053 with_readline="/usr/include/readline"
6055 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6058 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6065 # Is the header compilable?
6066 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6067 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6075 #include <${with_readline}/readline.h>
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 ac_header_compiler=yes
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6104 ac_header_compiler=no
6106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6108 echo "${ECHO_T}$ac_header_compiler" >&6
6110 # Is the header present?
6111 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6112 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <${with_readline}/readline.h>
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } >/dev/null; then
6129 if test -s conftest.err; then
6130 ac_cpp_err=$ac_c_preproc_warn_flag
6131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138 if test -z "$ac_cpp_err"; then
6139 ac_header_preproc=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_header_preproc=no
6146 rm -f conftest.err conftest.$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6148 echo "${ECHO_T}$ac_header_preproc" >&6
6150 # So? What about this header?
6151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6153 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6154 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6156 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6157 ac_header_preproc=yes
6160 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6161 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6163 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6165 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6167 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6169 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6171 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6174 ## ------------------------------------------ ##
6175 ## Report this to the AC_PACKAGE_NAME lists. ##
6176 ## ------------------------------------------ ##
6179 sed "s/^/$as_me: WARNING: /" >&2
6182 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6183 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 eval "$as_ac_Header=\$ac_header_preproc"
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194 cat >>confdefs.h <<\_ACEOF
6195 #define HAVE_READLINE 1
6198 CONS_LIBS="-lreadline -ltermcap"
6203 echo "readline.h not found. readline turned off ..."
6215 # check for standard readline library
6216 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6217 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6218 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6219 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6223 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6225 # Is the header compilable?
6226 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6227 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6235 #include </usr/include/readline/readline.h>
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1 >conftest.err
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest.$ac_objext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 ac_header_compiler=yes
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_header_compiler=no
6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6268 echo "${ECHO_T}$ac_header_compiler" >&6
6270 # Is the header present?
6271 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6272 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include </usr/include/readline/readline.h>
6281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } >/dev/null; then
6289 if test -s conftest.err; then
6290 ac_cpp_err=$ac_c_preproc_warn_flag
6291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6298 if test -z "$ac_cpp_err"; then
6299 ac_header_preproc=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_preproc=no
6306 rm -f conftest.err conftest.$ac_ext
6307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6308 echo "${ECHO_T}$ac_header_preproc" >&6
6310 # So? What about this header?
6311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6313 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6314 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6316 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6317 ac_header_preproc=yes
6320 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6321 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6323 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6325 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6327 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6329 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6331 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6334 ## ------------------------------------------ ##
6335 ## Report this to the AC_PACKAGE_NAME lists. ##
6336 ## ------------------------------------------ ##
6339 sed "s/^/$as_me: WARNING: /" >&2
6342 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6343 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6344 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6349 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6350 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6353 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_READLINE 1
6359 CONS_INC="-I/usr/include/readline"
6360 CONS_LIBS="-lreadline -ltermcap"
6364 # Did not find standard library, so try Bacula's default
6365 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6368 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375 # Is the header compilable?
6376 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6377 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <${TOP_DIR}/depkgs/readline/readline.h>
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_header_compiler=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_header_compiler=no
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6
6420 # Is the header present?
6421 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6422 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <${TOP_DIR}/depkgs/readline/readline.h>
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev/null; then
6439 if test -s conftest.err; then
6440 ac_cpp_err=$ac_c_preproc_warn_flag
6441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6448 if test -z "$ac_cpp_err"; then
6449 ac_header_preproc=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_header_preproc=no
6456 rm -f conftest.err conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6463 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc=yes
6470 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6484 ## ------------------------------------------ ##
6485 ## Report this to the AC_PACKAGE_NAME lists. ##
6486 ## ------------------------------------------ ##
6489 sed "s/^/$as_me: WARNING: /" >&2
6492 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6493 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 eval "$as_ac_Header=\$ac_header_preproc"
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_READLINE 1
6509 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6510 CONS_LIBS="-lreadline -lhistory -ltermcap"
6511 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6512 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6516 echo "readline.h not found. readline turned off ..."
6542 # Minimal stuff for readline Makefile configuration
6545 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6546 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6547 if test "${ac_cv_header_stat_broken+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6557 #include <sys/stat.h>
6559 #if defined(S_ISBLK) && defined(S_IFDIR)
6560 # if S_ISBLK (S_IFDIR)
6565 #if defined(S_ISBLK) && defined(S_IFCHR)
6566 # if S_ISBLK (S_IFCHR)
6571 #if defined(S_ISLNK) && defined(S_IFREG)
6572 # if S_ISLNK (S_IFREG)
6577 #if defined(S_ISSOCK) && defined(S_IFREG)
6578 # if S_ISSOCK (S_IFREG)
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "You lose" >/dev/null 2>&1; then
6586 ac_cv_header_stat_broken=yes
6588 ac_cv_header_stat_broken=no
6593 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6594 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6595 if test $ac_cv_header_stat_broken = yes; then
6597 cat >>confdefs.h <<\_ACEOF
6598 #define STAT_MACROS_BROKEN 1
6609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6610 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6611 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6612 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <sys/types.h>
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 eval "$as_ac_Header=yes"
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 eval "$as_ac_Header=no"
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6668 cat >>confdefs.h <<_ACEOF
6669 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6672 ac_header_dirent=$ac_hdr; break
6676 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6677 if test $ac_header_dirent = dirent.h; then
6678 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6679 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6680 if test "${ac_cv_search_opendir+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 ac_func_search_save_LIBS=$LIBS
6684 ac_cv_search_opendir=no
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>conftest.er1
6711 grep -v '^ *+' conftest.er1 >conftest.err
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -z "$ac_c_werror_flag"
6717 || test ! -s conftest.err'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_search_opendir="none required"
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6735 rm -f conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6737 if test "$ac_cv_search_opendir" = no; then
6738 for ac_lib in dir; do
6739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6747 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>conftest.er1
6766 grep -v '^ *+' conftest.er1 >conftest.err
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag"
6772 || test ! -s conftest.err'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; } &&
6778 { ac_try='test -s conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_cv_search_opendir="-l$ac_lib"
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6791 rm -f conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6795 LIBS=$ac_func_search_save_LIBS
6797 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6798 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6799 if test "$ac_cv_search_opendir" != no; then
6800 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6805 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6807 if test "${ac_cv_search_opendir+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 ac_func_search_save_LIBS=$LIBS
6811 ac_cv_search_opendir=no
6812 cat >conftest.$ac_ext <<_ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6819 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>conftest.er1
6838 grep -v '^ *+' conftest.er1 >conftest.err
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } &&
6843 { ac_try='test -z "$ac_c_werror_flag"
6844 || test ! -s conftest.err'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try='test -s conftest$ac_exeext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 ac_cv_search_opendir="none required"
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6862 rm -f conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 if test "$ac_cv_search_opendir" = no; then
6866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6874 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891 (eval $ac_link) 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -z "$ac_c_werror_flag"
6899 || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_cv_search_opendir="-l$ac_lib"
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6918 rm -f conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6922 LIBS=$ac_func_search_save_LIBS
6924 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6925 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6926 if test "$ac_cv_search_opendir" != no; then
6927 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6941 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6944 echo "$as_me:$LINENO: checking for $ac_func" >&5
6945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6946 if eval "test \"\${$as_ac_var+set}\" = set"; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6957 #define $ac_func innocuous_$ac_func
6959 /* System header to define __stub macros and hopefully few prototypes,
6960 which can conflict with char $ac_func (); below.
6961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6962 <limits.h> exists even on freestanding compilers. */
6965 # include <limits.h>
6967 # include <assert.h>
6972 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6980 /* The GNU C library defines this for functions which it implements
6981 to always fail with ENOSYS. Some functions are actually named
6982 something starting with __ and the normal name is an alias. */
6983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6986 char (*f) () = $ac_func;
6995 return f != $ac_func;
7000 rm -f conftest.$ac_objext conftest$ac_exeext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7002 (eval $ac_link) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1 >conftest.err
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 eval "$as_ac_var=yes"
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 eval "$as_ac_var=no"
7029 rm -f conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7034 if test `eval echo '${'$as_ac_var'}'` = yes; then
7035 cat >>confdefs.h <<_ACEOF
7036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7044 for ac_func in nanosleep nl_langinfo
7046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7047 echo "$as_me:$LINENO: checking for $ac_func" >&5
7048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7049 if eval "test \"\${$as_ac_var+set}\" = set"; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7060 #define $ac_func innocuous_$ac_func
7062 /* System header to define __stub macros and hopefully few prototypes,
7063 which can conflict with char $ac_func (); below.
7064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7065 <limits.h> exists even on freestanding compilers. */
7068 # include <limits.h>
7070 # include <assert.h>
7075 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */
7083 /* The GNU C library defines this for functions which it implements
7084 to always fail with ENOSYS. Some functions are actually named
7085 something starting with __ and the normal name is an alias. */
7086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7089 char (*f) () = $ac_func;
7098 return f != $ac_func;
7103 rm -f conftest.$ac_objext conftest$ac_exeext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7105 (eval $ac_link) 2>conftest.er1
7107 grep -v '^ *+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } &&
7112 { ac_try='test -z "$ac_c_werror_flag"
7113 || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 eval "$as_ac_var=yes"
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 eval "$as_ac_var=no"
7132 rm -f conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7137 if test `eval echo '${'$as_ac_var'}'` = yes; then
7138 cat >>confdefs.h <<_ACEOF
7139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7146 for ac_header in varargs.h
7148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7150 echo "$as_me:$LINENO: checking for $ac_header" >&5
7151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7158 # Is the header compilable?
7159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 $ac_includes_default
7168 #include <$ac_header>
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_header_compiler=yes
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 ac_header_compiler=no
7199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7201 echo "${ECHO_T}$ac_header_compiler" >&6
7203 # Is the header present?
7204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7206 cat >conftest.$ac_ext <<_ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <$ac_header>
7214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev/null; then
7222 if test -s conftest.err; then
7223 ac_cpp_err=$ac_c_preproc_warn_flag
7224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 if test -z "$ac_cpp_err"; then
7232 ac_header_preproc=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_header_preproc=no
7239 rm -f conftest.err conftest.$ac_ext
7240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7241 echo "${ECHO_T}$ac_header_preproc" >&6
7243 # So? What about this header?
7244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7250 ac_header_preproc=yes
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7267 ## ------------------------------------------ ##
7268 ## Report this to the AC_PACKAGE_NAME lists. ##
7269 ## ------------------------------------------ ##
7272 sed "s/^/$as_me: WARNING: /" >&2
7275 echo "$as_me:$LINENO: checking for $ac_header" >&5
7276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 eval "$as_ac_Header=\$ac_header_preproc"
7282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7287 cat >>confdefs.h <<_ACEOF
7288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7296 # End of readline/conio stuff
7297 # -----------------------------------------------------------------------
7299 # -------------------------------------------
7300 # check for cdrecord writer location
7301 # get scsibus,target,lun
7302 # -------------------------------------------
7304 if test ! x$CDRECORD = x ; then
7305 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7306 if test x${CDSTL} = x ; then
7307 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7309 if test x${CDSTL} = x ; then
7316 # ---------------------------------------------------
7317 # Check for GMP support/directory
7318 # ---------------------------------------------------
7322 # [ --with-gmp[=DIR] Specify gmp library directory],
7324 # case "$with_gmp" in
7327 # if test "$with_gmp" != "yes"; then
7328 # GMP_INC="-I$with_gmp"
7330 # GMP_LDFLAGS="-L$with_gmp"
7332 # with_gmp="/usr/include"
7334 # AC_CHECK_HEADER($with_gmp/gmp.h,
7335 # [ AC_MSG_RESULT(yes)
7336 # AC_DEFINE(HAVE_GMP)
7340 # [ AC_MSG_ERROR([*** gmp library missing])
7346 # # check for standard gmp library
7347 # AC_CHECK_HEADER(/usr/include/gmp.h,
7348 # [ AC_MSG_RESULT(yes)
7349 # AC_DEFINE(HAVE_GMP)
7354 # # Did not find standard library, so use our own
7355 # AC_MSG_RESULT(yes)
7356 # AC_DEFINE(HAVE_GMP)
7359 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7361 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7362 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7368 #AC_SUBST(GMP_LDFLAGS)
7372 # -----------------------------------------------------------------------
7375 # ---------------------------------------------------
7376 # Check for CWEB support/directory
7377 # ---------------------------------------------------
7382 # [ --with-cweb[=DIR] Specify cweb library directory],
7384 # case "$with_cweb" in
7387 # if test "$with_cweb" != "yes"; then
7388 # CWEB_INC="-I$with_cweb"
7389 # CWEB_LIBS="-lcweb"
7390 # CWEB_LDFLAGS="-L$with_cweb"
7392 # with_cweb="/usr/include"
7394 # AC_CHECK_HEADER($with_cweb/cweb.h,
7395 # [ AC_MSG_RESULT(yes)
7396 # AC_DEFINE(HAVE_CWEB)
7397 # CWEB_LIBS="-lcweb"
7400 # [ AC_MSG_ERROR([*** cweb library missing])
7406 # # check for standard cweb library
7407 # AC_CHECK_HEADER(/usr/include/cweb.h,
7408 # [ AC_MSG_RESULT(yes)
7409 # AC_DEFINE(HAVE_CWEB)
7412 # CWEB_LIBS="-lcweb"
7414 # # Did not find starndard library, so use our own
7415 # AC_MSG_RESULT(yes)
7416 # AC_DEFINE(HAVE_CWEB)
7419 # CWEB=${TOP_DIR}/depkgs/cweb
7420 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7421 # CWEB_LIBS="-lcweb"
7422 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7423 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7429 #AC_SUBST(CWEB_LIBS)
7430 #AC_SUBST(CWEB_LDFLAGS)
7434 # -----------------------------------------------------------------------
7437 # Find where sockets are (especially for Solaris)
7438 # Do this before the TCP Wrappers test since tcp wrappers
7439 # uses the socket library and some linkers are stupid.
7441 echo "$as_me:$LINENO: checking for socket" >&5
7442 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7443 if test "${ac_cv_func_socket+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7454 #define socket innocuous_socket
7456 /* System header to define __stub macros and hopefully few prototypes,
7457 which can conflict with char socket (); below.
7458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7459 <limits.h> exists even on freestanding compilers. */
7462 # include <limits.h>
7464 # include <assert.h>
7469 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7477 /* The GNU C library defines this for functions which it implements
7478 to always fail with ENOSYS. Some functions are actually named
7479 something starting with __ and the normal name is an alias. */
7480 #if defined (__stub_socket) || defined (__stub___socket)
7483 char (*f) () = socket;
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499 (eval $ac_link) 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -z "$ac_c_werror_flag"
7507 || test ! -s conftest.err'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_func_socket=yes
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_cv_func_socket=no
7526 rm -f conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7529 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7530 echo "${ECHO_T}$ac_cv_func_socket" >&6
7531 if test $ac_cv_func_socket = yes; then
7532 echo "$as_me:$LINENO: result: using libc's socket" >&5
7533 echo "${ECHO_T}using libc's socket" >&6
7536 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7537 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7538 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 ac_check_lib_save_LIBS=$LIBS
7543 cat >conftest.$ac_ext <<_ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7550 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag"
7575 || test ! -s conftest.err'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest$ac_exeext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_lib_xnet_socket=yes
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_cv_lib_xnet_socket=no
7594 rm -f conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596 LIBS=$ac_check_lib_save_LIBS
7598 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7599 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7600 if test $ac_cv_lib_xnet_socket = yes; then
7601 cat >>confdefs.h <<_ACEOF
7602 #define HAVE_LIBXNET 1
7610 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7611 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7612 if test "${ac_cv_lib_socket_socket+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lsocket $LIBS"
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7624 /* Override any gcc2 internal prototype to avoid an error. */
7628 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -z "$ac_c_werror_flag"
7649 || test ! -s conftest.err'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; } &&
7655 { ac_try='test -s conftest$ac_exeext'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7661 ac_cv_lib_socket_socket=yes
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7666 ac_cv_lib_socket_socket=no
7668 rm -f conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
7670 LIBS=$ac_check_lib_save_LIBS
7672 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7673 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7674 if test $ac_cv_lib_socket_socket = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define HAVE_LIBSOCKET 1
7679 LIBS="-lsocket $LIBS"
7684 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7685 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7686 if test "${ac_cv_lib_inet_socket+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 ac_check_lib_save_LIBS=$LIBS
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7698 /* Override any gcc2 internal prototype to avoid an error. */
7702 /* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715 (eval $ac_link) 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag"
7723 || test ! -s conftest.err'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; } &&
7729 { ac_try='test -s conftest$ac_exeext'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_cv_lib_inet_socket=yes
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_cv_lib_inet_socket=no
7742 rm -f conftest.err conftest.$ac_objext \
7743 conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS
7746 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7747 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7748 if test $ac_cv_lib_inet_socket = yes; then
7749 cat >>confdefs.h <<_ACEOF
7750 #define HAVE_LIBINET 1
7761 # -----------------------------------------------------------
7762 # Check whether user wants TCP wrappers support (default off)
7763 # -----------------------------------------------------------
7766 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7767 if test "${with_tcp_wrappers+set}" = set; then
7768 withval="$with_tcp_wrappers"
7770 if test "x$withval" != "xno" ; then
7772 LIBS="$saved_LIBS -lwrap"
7773 echo "$as_me:$LINENO: checking for libwrap" >&5
7774 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7775 cat >conftest.$ac_ext <<_ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7782 int deny_severity = 0;
7783 int allow_severity = 0;
7784 struct request_info *req;
7793 rm -f conftest.$ac_objext conftest$ac_exeext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7816 echo "$as_me:$LINENO: result: yes" >&5
7817 echo "${ECHO_T}yes" >&6
7818 cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_LIBWRAP 1
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7829 LIBS="$saved_LIBS -lwrap -lnsl"
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7837 int deny_severity = 0;
7838 int allow_severity = 0;
7839 struct request_info *req;
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag"
7858 || test ! -s conftest.err'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872 echo "${ECHO_T}yes" >&6
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_LIBWRAP 1
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7884 echo "$as_me: error: *** libwrap missing" >&2;}
7885 { (exit 1); exit 1; }; }
7888 rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7892 rm -f conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7899 # ------------------------------------------
7900 # Where to place working dir
7901 # ------------------------------------------
7902 working_dir=`eval echo ${prefix}/var/bacula/working`
7904 # Check whether --with-working-dir or --without-working-dir was given.
7905 if test "${with_working_dir+set}" = set; then
7906 withval="$with_working_dir"
7908 if test "x$withval" != "xno" ; then
7909 working_dir=$withval
7918 # ------------------------------------------
7919 # Where to place scriptdir (script files)
7920 # ------------------------------------------
7921 scriptdir=`eval echo ${sysconfdir}`
7923 # Check whether --with-scriptdir or --without-scriptdir was given.
7924 if test "${with_scriptdir+set}" = set; then
7925 withval="$with_scriptdir"
7927 if test "x$withval" != "xno" ; then
7937 # ------------------------------------------
7938 # Where to send dump email
7939 # ------------------------------------------
7940 dump_email=root@localhost
7942 # Check whether --with-dump-email or --without-dump-email was given.
7943 if test "${with_dump_email+set}" = set; then
7944 withval="$with_dump_email"
7946 if test "x$withval" != "xno" ; then
7955 # ------------------------------------------
7956 # Where to send job email
7957 # ------------------------------------------
7958 job_email=root@localhost
7960 # Check whether --with-job-email or --without-job-email was given.
7961 if test "${with_job_email+set}" = set; then
7962 withval="$with_job_email"
7964 if test "x$withval" != "xno" ; then
7973 # ------------------------------------------
7974 # Where to find smtp host
7975 # ------------------------------------------
7978 # Check whether --with-smtp_host or --without-smtp_host was given.
7979 if test "${with_smtp_host+set}" = set; then
7980 withval="$with_smtp_host"
7982 if test "x$withval" != "xno" ; then
7992 # ------------------------------------
7993 # Where to place pid files
7994 # ------------------------------------
7997 # Check whether --with-pid-dir or --without-pid-dir was given.
7998 if test "${with_pid_dir+set}" = set; then
7999 withval="$with_pid_dir"
8001 if test "x$withval" != "xno" ; then
8008 cat >>confdefs.h <<_ACEOF
8009 #define _PATH_BACULA_PIDDIR "$piddir"
8015 # ------------------------------------
8016 # Where to place subsys "lock file"
8017 # ------------------------------------
8018 subsysdir=/var/run/subsys
8020 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8021 if test "${with_subsys_dir+set}" = set; then
8022 withval="$with_subsys_dir"
8024 if test "x$withval" != "xno" ; then
8035 # ------------------------------------
8036 # Where to start assigning ports
8037 # ------------------------------------
8040 # Check whether --with-baseport or --without-baseport was given.
8041 if test "${with_baseport+set}" = set; then
8042 withval="$with_baseport"
8044 if test "x$withval" != "xno" ; then
8052 dir_port=`expr $baseport`
8053 fd_port=`expr $baseport + 1`
8054 sd_port=`expr $fd_port + 1`
8061 # ------------------------------------------
8062 # Generate passwords
8063 # ------------------------------------------
8066 # Check whether --with-dir-password or --without-dir-password was given.
8067 if test "${with_dir_password+set}" = set; then
8068 withval="$with_dir_password"
8070 if test "x$withval" != "xno" ; then
8071 dir_password=$withval
8077 if test "x$dir_password" = "x" ; then
8078 if test "x$OPENSSL" = "xnone" ; then
8079 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8080 key=`autoconf/randpass 33`
8082 key=`openssl rand -base64 33`
8089 # Check whether --with-fd-password or --without-fd-password was given.
8090 if test "${with_fd_password+set}" = set; then
8091 withval="$with_fd_password"
8093 if test "x$withval" != "xno" ; then
8094 fd_password=$withval
8100 if test "x$fd_password" = "x" ; then
8101 if test "x$OPENSSL" = "xnone" ; then
8102 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8103 key=`autoconf/randpass 37`
8105 key=`openssl rand -base64 33`
8112 # Check whether --with-sd-password or --without-sd-password was given.
8113 if test "${with_sd_password+set}" = set; then
8114 withval="$with_sd_password"
8116 if test "x$withval" != "xno" ; then
8117 sd_password=$withval
8123 if test "x$sd_password" = "x" ; then
8124 if test "x$OPENSSL" = "xnone" ; then
8125 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8126 key=`autoconf/randpass 41`
8128 key=`openssl rand -base64 33`
8135 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8136 if test "${with_mon_dir_password+set}" = set; then
8137 withval="$with_mon_dir_password"
8139 if test "x$withval" != "xno" ; then
8140 mon_dir_password=$withval
8146 if test "x$mon_dir_password" = "x" ; then
8147 if test "x$OPENSSL" = "xnone" ; then
8148 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8149 key=`autoconf/randpass 33`
8151 key=`openssl rand -base64 33`
8153 mon_dir_password=$key
8158 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8159 if test "${with_mon_fd_password+set}" = set; then
8160 withval="$with_mon_fd_password"
8162 if test "x$withval" != "xno" ; then
8163 mon_fd_password=$withval
8169 if test "x$mon_fd_password" = "x" ; then
8170 if test "x$OPENSSL" = "xnone" ; then
8171 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8172 key=`autoconf/randpass 37`
8174 key=`openssl rand -base64 33`
8176 mon_fd_password=$key
8181 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8182 if test "${with_mon_sd_password+set}" = set; then
8183 withval="$with_mon_sd_password"
8185 if test "x$withval" != "xno" ; then
8186 mon_sd_password=$withval
8192 if test "x$mon_sd_password" = "x" ; then
8193 if test "x$OPENSSL" = "xnone" ; then
8194 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8195 key=`autoconf/randpass 41`
8197 key=`openssl rand -base64 33`
8199 mon_sd_password=$key
8209 # -------------------------------------------------------------------------
8210 # Set variables for bimagemgr installation
8211 # -------------------------------------------------------------------------
8212 bimagemgr_cgidir=/var/www/cgi-bin
8214 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8215 if test "${with_bimagemgr_cgidir+set}" = set; then
8216 withval="$with_bimagemgr_cgidir"
8218 if test "x$withval" != "xno" ; then
8219 bimagemgr_cgidir=$withval
8225 bimagemgr_docdir=/var/www/html
8227 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8228 if test "${with_bimagemgr_docdir+set}" = set; then
8229 withval="$with_bimagemgr_docdir"
8231 if test "x$withval" != "xno" ; then
8232 bimagemgr_docdir=$withval
8238 bimagemgr_binowner=root
8240 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8241 if test "${with_bimagemgr_binowner+set}" = set; then
8242 withval="$with_bimagemgr_binowner"
8244 if test "x$withval" != "xno" ; then
8245 bimagemgr_binowner=$withval
8251 bimagemgr_bingroup=root
8253 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8254 if test "${with_bimagemgr_bingroup+set}" = set; then
8255 withval="$with_bimagemgr_bingroup"
8257 if test "x$withval" != "xno" ; then
8258 bimagemgr_bingroup=$withval
8264 bimagemgr_dataowner=apache
8266 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8267 if test "${with_bimagemgr_dataowner+set}" = set; then
8268 withval="$with_bimagemgr_dataowner"
8270 if test "x$withval" != "xno" ; then
8271 bimagemgr_dataowner=$withval
8277 bimagemgr_datagroup=apache
8279 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8280 if test "${with_bimagemgr_datagroup+set}" = set; then
8281 withval="$with_bimagemgr_datagroup"
8283 if test "x$withval" != "xno" ; then
8284 bimagemgr_datagroup=$withval
8298 # Handle users and groups for each daemon
8302 # Check whether --with-dir_user or --without-dir_user was given.
8303 if test "${with_dir_user+set}" = set; then
8304 withval="$with_dir_user"
8306 if test "x$withval" != "x" ; then
8315 # Check whether --with-dir_group or --without-dir_group was given.
8316 if test "${with_dir_group+set}" = set; then
8317 withval="$with_dir_group"
8319 if test "x$withval" != "x" ; then
8328 # Check whether --with-sd_user or --without-sd_user was given.
8329 if test "${with_sd_user+set}" = set; then
8330 withval="$with_sd_user"
8332 if test "x$withval" != "x" ; then
8341 # Check whether --with-sd_group or --without-sd_group was given.
8342 if test "${with_sd_group+set}" = set; then
8343 withval="$with_sd_group"
8345 if test "x$withval" != "x" ; then
8354 # Check whether --with-fd_user or --without-fd_user was given.
8355 if test "${with_fd_user+set}" = set; then
8356 withval="$with_fd_user"
8358 if test "x$withval" != "x" ; then
8367 # Check whether --with-fd_group or --without-fd_group was given.
8368 if test "${with_fd_group+set}" = set; then
8369 withval="$with_fd_group"
8371 if test "x$withval" != "x" ; then
8389 # allow setting default executable permissions
8393 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8394 if test "${with_sbin_perm+set}" = set; then
8395 withval="$with_sbin_perm"
8397 if test "x$withval" != "x" ; then
8406 # ------------------------------------------------
8407 # Bacula check for various SQL database engines
8408 # ------------------------------------------------
8411 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8412 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8414 # Check whether --with-postgresql or --without-postgresql was given.
8415 if test "${with_postgresql+set}" = set; then
8416 withval="$with_postgresql"
8418 if test "$withval" != "no"; then
8419 if test "$db_found" = "yes"; then
8420 echo "$as_me:$LINENO: result: error" >&5
8421 echo "${ECHO_T}error" >&6
8422 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8423 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8424 { (exit 1); exit 1; }; };
8426 if test "$withval" = "yes"; then
8427 if test -f /usr/local/include/libpq-fe.h; then
8428 POSTGRESQL_INCDIR=/usr/local/include
8429 POSTGRESQL_LIBDIR=/usr/local/lib
8430 POSTGRESQL_BINDIR=/usr/local/bin
8431 elif test -f /usr/include/libpq-fe.h; then
8432 POSTGRESQL_INCDIR=/usr/include
8433 POSTGRESQL_LIBDIR=/usr/lib
8434 POSTGRESQL_BINDIR=/usr/bin
8435 elif test -f /usr/include/pgsql/libpq-fe.h; then
8436 POSTGRESQL_INCDIR=/usr/include/pgsql
8437 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8438 POSTGRESQL_BINDIR=/usr/bin
8439 elif test -f /usr/include/postgresql/libpq-fe.h; then
8440 POSTGRESQL_INCDIR=/usr/include/postgresql
8441 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8442 POSTGRESQL_BINDIR=/usr/bin
8444 echo "$as_me:$LINENO: result: no" >&5
8445 echo "${ECHO_T}no" >&6
8446 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8447 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8448 { (exit 1); exit 1; }; }
8450 elif test -f $withval/include/libpq-fe.h; then
8451 POSTGRESQL_INCDIR=$withval/include
8452 POSTGRESQL_LIBDIR=$withval/lib
8453 POSTGRESQL_BINDIR=$withval/bin
8454 elif test -f $withval/include/postgresql/libpq-fe.h; then
8455 POSTGRESQL_INCDIR=$withval/include/postgresql
8456 POSTGRESQL_LIBDIR=$withval/lib
8457 POSTGRESQL_BINDIR=$withval/bin
8459 echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6
8461 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8462 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8463 { (exit 1); exit 1; }; }
8465 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8466 echo "$as_me:$LINENO: checking for crypt" >&5
8467 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8468 if test "${ac_cv_func_crypt+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8479 #define crypt innocuous_crypt
8481 /* System header to define __stub macros and hopefully few prototypes,
8482 which can conflict with char crypt (); below.
8483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8484 <limits.h> exists even on freestanding compilers. */
8487 # include <limits.h>
8489 # include <assert.h>
8494 /* Override any gcc2 internal prototype to avoid an error. */
8499 /* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8502 /* The GNU C library defines this for functions which it implements
8503 to always fail with ENOSYS. Some functions are actually named
8504 something starting with __ and the normal name is an alias. */
8505 #if defined (__stub_crypt) || defined (__stub___crypt)
8508 char (*f) () = crypt;
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_func_crypt=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8551 rm -f conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8554 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8555 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8556 if test $ac_cv_func_crypt = yes; then
8559 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8560 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8561 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 ac_check_lib_save_LIBS=$LIBS
8565 LIBS="-lcrypt $LIBS"
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590 (eval $ac_link) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag"
8598 || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_lib_crypt_crypt=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_cv_lib_crypt_crypt=no
8617 rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8621 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8622 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8623 if test $ac_cv_lib_crypt_crypt = yes; then
8624 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8629 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8630 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8631 SQL_BINDIR=$POSTGRESQL_BINDIR
8632 cat >>confdefs.h <<\_ACEOF
8633 #define HAVE_POSTGRESQL 1
8636 echo "$as_me:$LINENO: result: yes" >&5
8637 echo "${ECHO_T}yes" >&6
8639 support_postgresql=yes
8643 echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8649 echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8661 echo "$as_me:$LINENO: checking for MySQL support" >&5
8662 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8664 # Check whether --with-mysql or --without-mysql was given.
8665 if test "${with_mysql+set}" = set; then
8666 withval="$with_mysql"
8668 if test "$withval" != "no"; then
8669 if test "$withval" = "yes"; then
8670 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8671 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8672 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8673 MYSQL_BINDIR=/usr/local/mysql/bin
8674 elif test -f /usr/include/mysql/mysql.h; then
8675 MYSQL_INCDIR=/usr/include/mysql
8676 MYSQL_LIBDIR=/usr/lib/mysql
8677 MYSQL_BINDIR=/usr/bin
8678 elif test -f /usr/include/mysql.h; then
8679 MYSQL_INCDIR=/usr/include
8680 MYSQL_LIBDIR=/usr/lib
8681 MYSQL_BINDIR=/usr/bin
8682 elif test -f /usr/local/include/mysql/mysql.h; then
8683 MYSQL_INCDIR=/usr/local/include/mysql
8684 MYSQL_LIBDIR=/usr/local/lib/mysql
8685 MYSQL_BINDIR=/usr/local/bin
8686 elif test -f /usr/local/include/mysql.h; then
8687 MYSQL_INCDIR=/usr/local/include
8688 MYSQL_LIBDIR=/usr/local/lib
8689 MYSQL_BINDIR=/usr/local/bin
8691 echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6
8693 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8694 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8695 { (exit 1); exit 1; }; }
8698 if test -f $withval/include/mysql/mysql.h; then
8699 MYSQL_INCDIR=$withval/include/mysql
8700 MYSQL_LIBDIR=$withval/lib/mysql
8701 MYSQL_BINDIR=$withval/bin
8702 elif test -f $withval/include/mysql.h; then
8703 MYSQL_INCDIR=$withval/include
8704 MYSQL_LIBDIR=$withval/lib
8705 MYSQL_BINDIR=$withval/bin
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6
8709 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8710 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8711 { (exit 1); exit 1; }; }
8714 SQL_INCLUDE=-I$MYSQL_INCDIR
8715 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8716 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8717 cat >>confdefs.h <<\_ACEOF
8718 #define HAVE_THREAD_SAFE_MYSQL 1
8722 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8724 SQL_BINDIR=$MYSQL_BINDIR
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_MYSQL 1
8730 echo "$as_me:$LINENO: result: yes" >&5
8731 echo "${ECHO_T}yes" >&6
8738 echo "$as_me:$LINENO: result: no" >&5
8739 echo "${ECHO_T}no" >&6
8746 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8747 if test "${with_embedded_mysql+set}" = set; then
8748 withval="$with_embedded_mysql"
8750 if test "$withval" != "no"; then
8751 if test "$withval" = "yes"; then
8752 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8753 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8754 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8755 MYSQL_BINDIR=/usr/local/mysql/bin
8756 elif test -f /usr/include/mysql/mysql.h; then
8757 MYSQL_INCDIR=/usr/include/mysql
8758 MYSQL_LIBDIR=/usr/lib/mysql
8759 MYSQL_BINDIR=/usr/bin
8760 elif test -f /usr/include/mysql.h; then
8761 MYSQL_INCDIR=/usr/include
8762 MYSQL_LIBDIR=/usr/lib
8763 MYSQL_BINDIR=/usr/bin
8764 elif test -f /usr/local/include/mysql/mysql.h; then
8765 MYSQL_INCDIR=/usr/local/include/mysql
8766 MYSQL_LIBDIR=/usr/local/lib/mysql
8767 MYSQL_BINDIR=/usr/local/bin
8768 elif test -f /usr/local/include/mysql.h; then
8769 MYSQL_INCDIR=/usr/local/include
8770 MYSQL_LIBDIR=/usr/local/lib
8771 MYSQL_BINDIR=/usr/local/bin
8773 echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8775 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8776 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8777 { (exit 1); exit 1; }; }
8780 if test -f $withval/include/mysql/mysql.h; then
8781 MYSQL_INCDIR=$withval/include/mysql
8782 MYSQL_LIBDIR=$withval/lib/mysql
8783 MYSQL_BINDIR=$withval/bin
8784 elif test -f $withval/include/mysql.h; then
8785 MYSQL_INCDIR=$withval/include
8786 MYSQL_LIBDIR=$withval/lib
8787 MYSQL_BINDIR=$withval/bin
8789 echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8791 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8792 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8793 { (exit 1); exit 1; }; }
8796 SQL_INCLUDE=-I$MYSQL_INCDIR
8797 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8798 SQL_BINDIR=$MYSQL_BINDIR
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_MYSQL 1
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_EMBEDDED_MYSQL 1
8808 echo "$as_me:$LINENO: result: yes" >&5
8809 echo "${ECHO_T}yes" >&6
8816 echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8832 echo "$as_me:$LINENO: checking for SQLite support" >&5
8833 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8835 # Check whether --with-sqlite or --without-sqlite was given.
8836 if test "${with_sqlite+set}" = set; then
8837 withval="$with_sqlite"
8839 if test "$withval" != "no"; then
8840 if test "$withval" = "yes"; then
8841 if test -f /usr/local/include/sqlite.h; then
8842 SQLITE_INCDIR=/usr/local/include
8843 SQLITE_LIBDIR=/usr/local/lib
8844 SQLITE_BINDIR=/usr/local/bin
8845 elif test -f /usr/include/sqlite.h; then
8846 SQLITE_INCDIR=/usr/include
8847 SQLITE_LIBDIR=/usr/lib
8848 SQLITE_BINDIR=/usr/bin
8849 elif test -f $prefix/include/sqlite.h; then
8850 SQLITE_INCDIR=$prefix/include
8851 SQLITE_LIBDIR=$prefix/lib
8852 SQLITE_BINDIR=$prefix/bin
8854 echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8857 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8858 { (exit 1); exit 1; }; }
8861 if test -f $withval/sqlite.h; then
8862 SQLITE_INCDIR=$withval
8863 SQLITE_LIBDIR=$withval
8864 SQLITE_BINDIR=$withval
8865 elif test -f $withval/include/sqlite.h; then
8866 SQLITE_INCDIR=$withval/include
8867 SQLITE_LIBDIR=$withval/lib
8868 SQLITE_BINDIR=$withval/bin
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8872 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8873 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8874 { (exit 1); exit 1; }; }
8877 SQL_INCLUDE=-I$SQLITE_INCDIR
8878 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8879 SQL_BINDIR=$SQLITE_BINDIR
8881 cat >>confdefs.h <<\_ACEOF
8882 #define HAVE_SQLITE 1
8885 echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8893 echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8899 echo "$as_me:$LINENO: result: no" >&5
8900 echo "${ECHO_T}no" >&6
8912 cat >>confdefs.h <<\_ACEOF
8913 #define PROTOTYPES 1
8917 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8918 if test -z "$CCOPTS"; then
8919 CCOPTS='-g -O2 -Wall'
8927 largefile_support="no"
8929 # Check whether --enable-largefile or --disable-largefile was given.
8930 if test "${enable_largefile+set}" = set; then
8931 enableval="$enable_largefile"
8934 if test "$enable_largefile" != no; then
8935 if test -n "$ac_tool_prefix"; then
8936 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_prog_GETCONF+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 if test -n "$GETCONF"; then
8944 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 GETCONF=$ac_cv_prog_GETCONF
8963 if test -n "$GETCONF"; then
8964 echo "$as_me:$LINENO: result: $GETCONF" >&5
8965 echo "${ECHO_T}$GETCONF" >&6
8967 echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8972 if test -z "$ac_cv_prog_GETCONF"; then
8973 ac_ct_GETCONF=$GETCONF
8974 # Extract the first word of "getconf", so it can be a program name with args.
8975 set dummy getconf; ac_word=$2
8976 echo "$as_me:$LINENO: checking for $ac_word" >&5
8977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8978 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 if test -n "$ac_ct_GETCONF"; then
8982 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991 ac_cv_prog_ac_ct_GETCONF="getconf"
8992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9001 if test -n "$ac_ct_GETCONF"; then
9002 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9003 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9005 echo "$as_me:$LINENO: result: no" >&5
9006 echo "${ECHO_T}no" >&6
9009 GETCONF=$ac_ct_GETCONF
9011 GETCONF="$ac_cv_prog_GETCONF"
9014 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9015 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9016 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9020 ac_cv_sys_largefile_CFLAGS=no
9022 # IRIX 6.2 and later require cc -n32.
9023 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9024 if test "$GCC" != yes; then
9025 ac_cv_sys_largefile_CFLAGS=-n32
9028 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_sys_largefile_CFLAGS=no
9073 rm -f conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9080 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9081 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9082 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9083 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9087 ac_cv_sys_largefile_LDFLAGS=no
9091 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9092 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9093 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9094 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9095 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9099 ac_cv_sys_largefile_LIBS=no
9103 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9104 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9106 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9109 -D_FILE_OFFSET_BITS=*) ;;
9110 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9111 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9117 '') CPPFLAGS="$ac_flag" ;;
9118 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9126 '') CFLAGS="$ac_flag" ;;
9127 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9132 case "$ac_cv_sys_largefile_LDFLAGS" in
9136 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9137 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9140 case "$ac_cv_sys_largefile_LIBS" in
9144 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9145 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9148 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9149 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9150 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 ac_cv_sys_file_offset_bits=no
9154 ac_cv_sys_file_offset_bits=64
9155 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9157 -D_FILE_OFFSET_BITS)
9158 ac_cv_sys_file_offset_bits=1 ;;
9159 -D_FILE_OFFSET_BITS=*)
9160 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9165 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9166 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9167 if test "$ac_cv_sys_file_offset_bits" != no; then
9169 cat >>confdefs.h <<_ACEOF
9170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9174 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9175 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9176 if test "${ac_cv_sys_largefile_source+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 ac_cv_sys_largefile_source=no
9180 ac_cv_sys_largefile_source=1
9181 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9183 -D_LARGEFILE_SOURCE)
9184 ac_cv_sys_largefile_source=1 ;;
9185 -D_LARGEFILE_SOURCE=*)
9186 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9191 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9192 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9193 if test "$ac_cv_sys_largefile_source" != no; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9200 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9201 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9202 if test "${ac_cv_sys_large_files+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 ac_cv_sys_large_files=no
9206 ac_cv_sys_large_files=1
9207 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9210 ac_cv_sys_large_files=1 ;;
9212 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9217 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9218 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9219 if test "$ac_cv_sys_large_files" != no; then
9221 cat >>confdefs.h <<_ACEOF
9222 #define _LARGE_FILES $ac_cv_sys_large_files
9230 echo "$as_me:$LINENO: checking for X" >&5
9231 echo $ECHO_N "checking for X... $ECHO_C" >&6
9234 # Check whether --with-x or --without-x was given.
9235 if test "${with_x+set}" = set; then
9239 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9240 if test "x$with_x" = xno; then
9241 # The user explicitly disabled X.
9244 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9245 # Both variables are already set.
9248 if test "${ac_cv_have_x+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 # One or both of the vars are not set, and there is no cached value.
9252 ac_x_includes=no ac_x_libraries=no
9254 if mkdir conftest.dir; then
9256 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9257 cat >Imakefile <<'_ACEOF'
9259 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9261 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9263 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9264 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9265 for ac_extension in a so sl; do
9266 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9267 test -f $ac_im_libdir/libX11.$ac_extension; then
9268 ac_im_usrlibdir=$ac_im_libdir; break
9271 # Screen out bogus values from the imake configuration. They are
9272 # bogus both because they are the default anyway, and because
9273 # using them would break gcc on systems where it needs fixed includes.
9274 case $ac_im_incroot in
9276 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9278 case $ac_im_usrlibdir in
9280 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9287 # Standard set of common directories for X headers.
9288 # Check X11 before X11Rn because it is often a symlink to the current release.
9300 /usr/local/X11/include
9301 /usr/local/X11R6/include
9302 /usr/local/X11R5/include
9303 /usr/local/X11R4/include
9305 /usr/local/include/X11
9306 /usr/local/include/X11R6
9307 /usr/local/include/X11R5
9308 /usr/local/include/X11R4
9312 /usr/XFree86/include/X11
9316 /usr/unsupported/include
9318 /usr/local/x11r5/include
9319 /usr/lpp/Xamples/include
9321 /usr/openwin/include
9322 /usr/openwin/share/include'
9324 if test "$ac_x_includes" = no; then
9325 # Guess where to find include files, by looking for Intrinsic.h.
9326 # First, try using that file with no special directory specified.
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 #include <X11/Intrinsic.h>
9335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } >/dev/null; then
9343 if test -s conftest.err; then
9344 ac_cpp_err=$ac_c_preproc_warn_flag
9345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9352 if test -z "$ac_cpp_err"; then
9353 # We can compile using X headers with no special include directory.
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 for ac_dir in $ac_x_header_dirs; do
9360 if test -r "$ac_dir/X11/Intrinsic.h"; then
9361 ac_x_includes=$ac_dir
9366 rm -f conftest.err conftest.$ac_ext
9367 fi # $ac_x_includes = no
9369 if test "$ac_x_libraries" = no; then
9370 # Check for the libraries.
9371 # See if we find them without any special options.
9372 # Don't add to $LIBS permanently.
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <X11/Intrinsic.h>
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try='test -s conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9413 # We can link X programs with no special library path.
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9420 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9422 # Don't even attempt the hair of trying to link an X program!
9423 for ac_extension in a so sl; do
9424 if test -r $ac_dir/libXt.$ac_extension; then
9425 ac_x_libraries=$ac_dir
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 fi # $ac_x_libraries = no
9435 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9436 # Didn't find X anywhere. Cache the known absence of X.
9437 ac_cv_have_x="have_x=no"
9439 # Record where we found X for the cache.
9440 ac_cv_have_x="have_x=yes \
9441 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9446 eval "$ac_cv_have_x"
9449 if test "$have_x" != yes; then
9450 echo "$as_me:$LINENO: result: $have_x" >&5
9451 echo "${ECHO_T}$have_x" >&6
9454 # If each of the values was on the command line, it overrides each guess.
9455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9457 # Update the cache value to reflect the command line values.
9458 ac_cv_have_x="have_x=yes \
9459 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9460 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9461 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9464 if test "$no_x" = yes; then
9465 # Not all programs may use this symbol, but it does not hurt to define it.
9467 cat >>confdefs.h <<\_ACEOF
9468 #define X_DISPLAY_MISSING 1
9471 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9473 if test -n "$x_includes"; then
9474 X_CFLAGS="$X_CFLAGS -I$x_includes"
9477 # It would also be nice to do this for all -L options, not just this one.
9478 if test -n "$x_libraries"; then
9479 X_LIBS="$X_LIBS -L$x_libraries"
9480 # For Solaris; some versions of Sun CC require a space after -R and
9481 # others require no space. Words are not sufficient . . . .
9482 case `(uname -sr) 2>/dev/null` in
9484 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9485 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9486 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9506 grep -v '^ *+' conftest.er1 >conftest.err
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9531 rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 if test $ac_R_nospace = yes; then
9534 echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536 X_LIBS="$X_LIBS -R$x_libraries"
9538 LIBS="$ac_xsave_LIBS -R $x_libraries"
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9583 rm -f conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 if test $ac_R_space = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587 echo "${ECHO_T}yes" >&6
9588 X_LIBS="$X_LIBS -R $x_libraries"
9590 echo "$as_me:$LINENO: result: neither works" >&5
9591 echo "${ECHO_T}neither works" >&6
9598 # Check for system-dependent libraries X programs must link with.
9599 # Do this before checking for the system-independent R6 libraries
9600 # (-lICE), since we may need -lsocket or whatever for X linking.
9602 if test "$ISC" = yes; then
9603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9605 # Martyn Johnson says this is needed for Ultrix, if the X
9606 # libraries were built with DECnet support. And Karl Berry says
9607 # the Alpha needs dnet_stub (dnet does not exist).
9608 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 /* Override any gcc2 internal prototype to avoid an error. */
9620 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9622 char XOpenDisplay ();
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9659 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 ac_check_lib_save_LIBS=$LIBS
9665 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9672 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>conftest.er1
9691 grep -v '^ *+' conftest.er1 >conftest.err
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } &&
9696 { ac_try='test -z "$ac_c_werror_flag"
9697 || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_lib_dnet_dnet_ntoa=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 ac_cv_lib_dnet_dnet_ntoa=no
9716 rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 LIBS=$ac_check_lib_save_LIBS
9720 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9721 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9722 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9723 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9726 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9727 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9728 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9729 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-ldnet_stub $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 /* Override any gcc2 internal prototype to avoid an error. */
9745 /* We use char because int might match the return type of a gcc2
9746 builtin and then its argument prototype would still apply. */
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_cv_lib_dnet_stub_dnet_ntoa=no
9785 rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9791 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9792 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9797 rm -f conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS="$ac_xsave_LIBS"
9801 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9802 # to get the SysV transport functions.
9803 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9805 # The nsl library prevents programs from opening the X display
9806 # on Irix 5.2, according to T.E. Dickey.
9807 # The functions gethostbyname, getservbyname, and inet_addr are
9808 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9809 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9810 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9811 if test "${ac_cv_func_gethostbyname+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822 #define gethostbyname innocuous_gethostbyname
9824 /* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char gethostbyname (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9830 # include <limits.h>
9832 # include <assert.h>
9835 #undef gethostbyname
9837 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844 char gethostbyname ();
9845 /* The GNU C library defines this for functions which it implements
9846 to always fail with ENOSYS. Some functions are actually named
9847 something starting with __ and the normal name is an alias. */
9848 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9851 char (*f) () = gethostbyname;
9860 return f != gethostbyname;
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>conftest.er1
9869 grep -v '^ *+' conftest.er1 >conftest.err
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_func_gethostbyname=yes
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_cv_func_gethostbyname=no
9894 rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9897 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9898 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9900 if test $ac_cv_func_gethostbyname = no; then
9901 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9902 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9903 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 ac_check_lib_save_LIBS=$LIBS
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921 char gethostbyname ();
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_lib_nsl_gethostbyname=yes
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 ac_cv_lib_nsl_gethostbyname=no
9959 rm -f conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_lib_save_LIBS
9963 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9964 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9965 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9969 if test $ac_cv_lib_nsl_gethostbyname = no; then
9970 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9971 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9972 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 ac_check_lib_save_LIBS=$LIBS
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any gcc2 internal prototype to avoid an error. */
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9990 char gethostbyname ();
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_bsd_gethostbyname=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_lib_bsd_gethostbyname=no
10028 rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10033 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10034 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10041 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10042 # socket/setsockopt and other routines are undefined under SCO ODT
10043 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10044 # on later versions), says Simon Leinen: it contains gethostby*
10045 # variants that don't use the name server (or something). -lsocket
10046 # must be given before -lnsl if both are needed. We assume that
10047 # if connect needs -lnsl, so does gethostbyname.
10048 echo "$as_me:$LINENO: checking for connect" >&5
10049 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10050 if test "${ac_cv_func_connect+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10061 #define connect innocuous_connect
10063 /* System header to define __stub macros and hopefully few prototypes,
10064 which can conflict with char connect (); below.
10065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066 <limits.h> exists even on freestanding compilers. */
10069 # include <limits.h>
10071 # include <assert.h>
10076 /* Override any gcc2 internal prototype to avoid an error. */
10081 /* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10084 /* The GNU C library defines this for functions which it implements
10085 to always fail with ENOSYS. Some functions are actually named
10086 something starting with __ and the normal name is an alias. */
10087 #if defined (__stub_connect) || defined (__stub___connect)
10090 char (*f) () = connect;
10099 return f != connect;
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_func_connect=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_cv_func_connect=no
10133 rm -f conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10136 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10137 echo "${ECHO_T}$ac_cv_func_connect" >&6
10139 if test $ac_cv_func_connect = no; then
10140 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10141 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10142 if test "${ac_cv_lib_socket_connect+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 ac_check_lib_save_LIBS=$LIBS
10146 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10154 /* Override any gcc2 internal prototype to avoid an error. */
10158 /* We use char because int might match the return type of a gcc2
10159 builtin and then its argument prototype would still apply. */
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171 (eval $ac_link) 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest$ac_exeext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_socket_connect=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_lib_socket_connect=no
10198 rm -f conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10202 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10203 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10204 if test $ac_cv_lib_socket_connect = yes; then
10205 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10210 # Guillermo Gomez says -lposix is necessary on A/UX.
10211 echo "$as_me:$LINENO: checking for remove" >&5
10212 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10213 if test "${ac_cv_func_remove+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10224 #define remove innocuous_remove
10226 /* System header to define __stub macros and hopefully few prototypes,
10227 which can conflict with char remove (); below.
10228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229 <limits.h> exists even on freestanding compilers. */
10232 # include <limits.h>
10234 # include <assert.h>
10239 /* Override any gcc2 internal prototype to avoid an error. */
10244 /* We use char because int might match the return type of a gcc2
10245 builtin and then its argument prototype would still apply. */
10247 /* The GNU C library defines this for functions which it implements
10248 to always fail with ENOSYS. Some functions are actually named
10249 something starting with __ and the normal name is an alias. */
10250 #if defined (__stub_remove) || defined (__stub___remove)
10253 char (*f) () = remove;
10262 return f != remove;
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269 (eval $ac_link) 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag"
10277 || test ! -s conftest.err'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; } &&
10283 { ac_try='test -s conftest$ac_exeext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_cv_func_remove=yes
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_cv_func_remove=no
10296 rm -f conftest.err conftest.$ac_objext \
10297 conftest$ac_exeext conftest.$ac_ext
10299 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10300 echo "${ECHO_T}$ac_cv_func_remove" >&6
10302 if test $ac_cv_func_remove = no; then
10303 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10304 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10305 if test "${ac_cv_lib_posix_remove+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-lposix $LIBS"
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10317 /* Override any gcc2 internal prototype to avoid an error. */
10321 /* We use char because int might match the return type of a gcc2
10322 builtin and then its argument prototype would still apply. */
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10336 grep -v '^ *+' conftest.er1 >conftest.err
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag"
10342 || test ! -s conftest.err'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_lib_posix_remove=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_cv_lib_posix_remove=no
10361 rm -f conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10365 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10366 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10367 if test $ac_cv_lib_posix_remove = yes; then
10368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10373 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10374 echo "$as_me:$LINENO: checking for shmat" >&5
10375 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10376 if test "${ac_cv_func_shmat+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10387 #define shmat innocuous_shmat
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char shmat (); below.
10391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392 <limits.h> exists even on freestanding compilers. */
10395 # include <limits.h>
10397 # include <assert.h>
10402 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10410 /* The GNU C library defines this for functions which it implements
10411 to always fail with ENOSYS. Some functions are actually named
10412 something starting with __ and the normal name is an alias. */
10413 #if defined (__stub_shmat) || defined (__stub___shmat)
10416 char (*f) () = shmat;
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>conftest.er1
10434 grep -v '^ *+' conftest.er1 >conftest.err
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_c_werror_flag"
10440 || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_func_shmat=yes
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_cv_func_shmat=no
10459 rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10462 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10463 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10465 if test $ac_cv_func_shmat = no; then
10466 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10467 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10468 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_check_lib_save_LIBS=$LIBS
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 /* Override any gcc2 internal prototype to avoid an error. */
10484 /* We use char because int might match the return type of a gcc2
10485 builtin and then its argument prototype would still apply. */
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>conftest.er1
10499 grep -v '^ *+' conftest.er1 >conftest.err
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try='test -z "$ac_c_werror_flag"
10505 || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_lib_ipc_shmat=yes
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_cv_lib_ipc_shmat=no
10524 rm -f conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10529 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10530 if test $ac_cv_lib_ipc_shmat = yes; then
10531 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10537 # Check for libraries that X11R6 Xt/Xaw programs need.
10538 ac_save_LDFLAGS=$LDFLAGS
10539 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10540 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10541 # check for ICE first), but we must link in the order -lSM -lICE or
10542 # we get undefined symbols. So assume we have SM if we have ICE.
10543 # These have to be linked with before -lX11, unlike the other
10544 # libraries we check for below, so use a different variable.
10545 # John Interrante, Karl Berry
10546 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10547 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10548 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 ac_check_lib_save_LIBS=$LIBS
10552 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10560 /* Override any gcc2 internal prototype to avoid an error. */
10564 /* We use char because int might match the return type of a gcc2
10565 builtin and then its argument prototype would still apply. */
10566 char IceConnectionNumber ();
10570 IceConnectionNumber ();
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577 (eval $ac_link) 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest$ac_exeext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_cv_lib_ICE_IceConnectionNumber=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_cv_lib_ICE_IceConnectionNumber=no
10604 rm -f conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10608 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10609 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10610 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10611 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10614 LDFLAGS=$ac_save_LDFLAGS
10676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678 echo "$as_me:$LINENO: checking for $ac_header" >&5
10679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10686 # Is the header compilable?
10687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10696 #include <$ac_header>
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
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); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_header_compiler=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_header_compiler=no
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 echo "${ECHO_T}$ac_header_compiler" >&6
10731 # Is the header present?
10732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <$ac_header>
10742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null; then
10750 if test -s conftest.err; then
10751 ac_cpp_err=$ac_c_preproc_warn_flag
10752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10759 if test -z "$ac_cpp_err"; then
10760 ac_header_preproc=yes
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_header_preproc=no
10767 rm -f conftest.err conftest.$ac_ext
10768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6
10771 # So? What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795 ## ------------------------------------------ ##
10796 ## Report this to the AC_PACKAGE_NAME lists. ##
10797 ## ------------------------------------------ ##
10800 sed "s/^/$as_me: WARNING: /" >&2
10803 echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 eval "$as_ac_Header=\$ac_header_preproc"
10810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10815 cat >>confdefs.h <<_ACEOF
10816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10823 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10825 if test "${ac_cv_header_stdc+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <stdlib.h>
10835 #include <stdarg.h>
10836 #include <string.h>
10847 rm -f conftest.$ac_objext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -z "$ac_c_werror_flag"
10857 || test ! -s conftest.err'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest.$ac_objext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 ac_cv_header_stdc=yes
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 ac_cv_header_stdc=no
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10878 if test $ac_cv_header_stdc = yes; then
10879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <string.h>
10889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10890 $EGREP "memchr" >/dev/null 2>&1; then
10893 ac_cv_header_stdc=no
10899 if test $ac_cv_header_stdc = yes; then
10900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 #include <stdlib.h>
10910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10911 $EGREP "free" >/dev/null 2>&1; then
10914 ac_cv_header_stdc=no
10920 if test $ac_cv_header_stdc = yes; then
10921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10922 if test "$cross_compiling" = yes; then
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10932 #if ((' ' & 0x0FF) == 0x020)
10933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10936 # define ISLOWER(c) \
10937 (('a' <= (c) && (c) <= 'i') \
10938 || ('j' <= (c) && (c) <= 'r') \
10939 || ('s' <= (c) && (c) <= 'z'))
10940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10948 for (i = 0; i < 256; i++)
10949 if (XOR (islower (i), ISLOWER (i))
10950 || toupper (i) != TOUPPER (i))
10955 rm -f conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10968 echo "$as_me: program exited with status $ac_status" >&5
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ( exit $ac_status )
10973 ac_cv_header_stdc=no
10975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10979 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10980 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10981 if test $ac_cv_header_stdc = yes; then
10983 cat >>confdefs.h <<\_ACEOF
10984 #define STDC_HEADERS 1
10989 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10990 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10991 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 #include <sys/types.h>
11004 return makedev(0, 0);
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_header_sys_types_h_makedev=yes
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_cv_header_sys_types_h_makedev=no
11038 rm -f conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11042 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11043 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11045 if test $ac_cv_header_sys_types_h_makedev = no; then
11046 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11047 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11048 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11049 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11053 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11055 # Is the header compilable?
11056 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11057 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 $ac_includes_default
11065 #include <sys/mkdev.h>
11067 rm -f conftest.$ac_objext
11068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11069 (eval $ac_compile) 2>conftest.er1
11071 grep -v '^ *+' conftest.er1 >conftest.err
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -z "$ac_c_werror_flag"
11077 || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_header_compiler=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_header_compiler=no
11096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11098 echo "${ECHO_T}$ac_header_compiler" >&6
11100 # Is the header present?
11101 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11102 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 #include <sys/mkdev.h>
11111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } >/dev/null; then
11119 if test -s conftest.err; then
11120 ac_cpp_err=$ac_c_preproc_warn_flag
11121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11128 if test -z "$ac_cpp_err"; then
11129 ac_header_preproc=yes
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_header_preproc=no
11136 rm -f conftest.err conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11138 echo "${ECHO_T}$ac_header_preproc" >&6
11140 # So? What about this header?
11141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11143 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11144 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11146 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11147 ac_header_preproc=yes
11150 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11151 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11153 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11155 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11157 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11159 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11161 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11164 ## ------------------------------------------ ##
11165 ## Report this to the AC_PACKAGE_NAME lists. ##
11166 ## ------------------------------------------ ##
11169 sed "s/^/$as_me: WARNING: /" >&2
11172 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11173 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11174 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11179 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11180 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11183 if test $ac_cv_header_sys_mkdev_h = yes; then
11185 cat >>confdefs.h <<\_ACEOF
11186 #define MAJOR_IN_MKDEV 1
11193 if test $ac_cv_header_sys_mkdev_h = no; then
11194 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11195 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11196 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11197 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11201 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11203 # Is the header compilable?
11204 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11205 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 $ac_includes_default
11213 #include <sys/sysmacros.h>
11215 rm -f conftest.$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag"
11225 || test ! -s conftest.err'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_header_compiler=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_header_compiler=no
11244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246 echo "${ECHO_T}$ac_header_compiler" >&6
11248 # Is the header present?
11249 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11250 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 #include <sys/sysmacros.h>
11259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } >/dev/null; then
11267 if test -s conftest.err; then
11268 ac_cpp_err=$ac_c_preproc_warn_flag
11269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_header_preproc=no
11284 rm -f conftest.err conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11291 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11295 ac_header_preproc=yes
11298 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11312 ## ------------------------------------------ ##
11313 ## Report this to the AC_PACKAGE_NAME lists. ##
11314 ## ------------------------------------------ ##
11317 sed "s/^/$as_me: WARNING: /" >&2
11320 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11327 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11328 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11331 if test $ac_cv_header_sys_sysmacros_h = yes; then
11333 cat >>confdefs.h <<\_ACEOF
11334 #define MAJOR_IN_SYSMACROS 1
11348 ac_header_dirent=no
11349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11351 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <sys/types.h>
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11378 grep -v '^ *+' conftest.er1 >conftest.err
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 eval "$as_ac_Header=yes"
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 eval "$as_ac_Header=no"
11403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11412 ac_header_dirent=$ac_hdr; break
11416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11417 if test $ac_header_dirent = dirent.h; then
11418 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11420 if test "${ac_cv_search_opendir+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 ac_func_search_save_LIBS=$LIBS
11424 ac_cv_search_opendir=no
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 /* Override any gcc2 internal prototype to avoid an error. */
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11449 (eval $ac_link) 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag"
11457 || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest$ac_exeext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_cv_search_opendir="none required"
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11475 rm -f conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 if test "$ac_cv_search_opendir" = no; then
11478 for ac_lib in dir; do
11479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11480 cat >conftest.$ac_ext <<_ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11487 /* Override any gcc2 internal prototype to avoid an error. */
11491 /* We use char because int might match the return type of a gcc2
11492 builtin and then its argument prototype would still apply. */
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -z "$ac_c_werror_flag"
11512 || test ! -s conftest.err'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest$ac_exeext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_cv_search_opendir="-l$ac_lib"
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11531 rm -f conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_func_search_save_LIBS
11537 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11538 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11539 if test "$ac_cv_search_opendir" != no; then
11540 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11545 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11546 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11547 if test "${ac_cv_search_opendir+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 ac_func_search_save_LIBS=$LIBS
11551 ac_cv_search_opendir=no
11552 cat >conftest.$ac_ext <<_ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11559 /* Override any gcc2 internal prototype to avoid an error. */
11563 /* We use char because int might match the return type of a gcc2
11564 builtin and then its argument prototype would still apply. */
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>conftest.er1
11578 grep -v '^ *+' conftest.er1 >conftest.err
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_c_werror_flag"
11584 || test ! -s conftest.err'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_search_opendir="none required"
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11602 rm -f conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 if test "$ac_cv_search_opendir" = no; then
11605 for ac_lib in x; do
11606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11614 /* Override any gcc2 internal prototype to avoid an error. */
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_cv_search_opendir="-l$ac_lib"
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11658 rm -f conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_func_search_save_LIBS
11664 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11665 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11666 if test "$ac_cv_search_opendir" != no; then
11667 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11673 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11674 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11675 if test "${ac_cv_header_stat_broken+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 #include <sys/types.h>
11685 #include <sys/stat.h>
11687 #if defined(S_ISBLK) && defined(S_IFDIR)
11688 # if S_ISBLK (S_IFDIR)
11693 #if defined(S_ISBLK) && defined(S_IFCHR)
11694 # if S_ISBLK (S_IFCHR)
11699 #if defined(S_ISLNK) && defined(S_IFREG)
11700 # if S_ISLNK (S_IFREG)
11705 #if defined(S_ISSOCK) && defined(S_IFREG)
11706 # if S_ISSOCK (S_IFREG)
11712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11713 $EGREP "You lose" >/dev/null 2>&1; then
11714 ac_cv_header_stat_broken=yes
11716 ac_cv_header_stat_broken=no
11721 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11722 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11723 if test $ac_cv_header_stat_broken = yes; then
11725 cat >>confdefs.h <<\_ACEOF
11726 #define STAT_MACROS_BROKEN 1
11731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <sys/types.h>
11743 #include <sys/wait.h>
11744 #ifndef WEXITSTATUS
11745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11756 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_cv_header_sys_wait_h=yes
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 ac_cv_header_sys_wait_h=no
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11794 if test $ac_cv_header_sys_wait_h = yes; then
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_SYS_WAIT_H 1
11802 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11803 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11804 if test "${ac_cv_header_time+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 #include <sys/types.h>
11814 #include <sys/time.h>
11820 if ((struct tm *) 0)
11826 rm -f conftest.$ac_objext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828 (eval $ac_compile) 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag"
11836 || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_header_time=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_cv_header_time=no
11855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11857 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11858 echo "${ECHO_T}$ac_cv_header_time" >&6
11859 if test $ac_cv_header_time = yes; then
11861 cat >>confdefs.h <<\_ACEOF
11862 #define TIME_WITH_SYS_TIME 1
11868 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11869 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11870 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 $ac_includes_default
11883 static struct stat ac_aggr;
11884 if (ac_aggr.st_blksize)
11890 rm -f conftest.$ac_objext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>conftest.er1
11894 grep -v '^ *+' conftest.er1 >conftest.err
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -z "$ac_c_werror_flag"
11900 || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_member_struct_stat_st_blksize=yes
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 $ac_includes_default
11927 static struct stat ac_aggr;
11928 if (sizeof ac_aggr.st_blksize)
11934 rm -f conftest.$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag"
11944 || test ! -s conftest.err'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest.$ac_objext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_member_struct_stat_st_blksize=yes
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_cv_member_struct_stat_st_blksize=no
11963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11968 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11969 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11976 cat >>confdefs.h <<\_ACEOF
11977 #define HAVE_ST_BLKSIZE 1
11983 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11984 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11985 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11998 static struct stat ac_aggr;
11999 if (ac_aggr.st_blocks)
12005 rm -f conftest.$ac_objext
12006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12007 (eval $ac_compile) 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag"
12015 || test ! -s conftest.err'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_cv_member_struct_stat_st_blocks=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 $ac_includes_default
12042 static struct stat ac_aggr;
12043 if (sizeof ac_aggr.st_blocks)
12049 rm -f conftest.$ac_objext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12051 (eval $ac_compile) 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -z "$ac_c_werror_flag"
12059 || test ! -s conftest.err'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_member_struct_stat_st_blocks=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_cv_member_struct_stat_st_blocks=no
12078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12083 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12084 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_ST_BLOCKS 1
12097 "fileblocks.$ac_objext" | \
12098 *" fileblocks.$ac_objext" | \
12099 "fileblocks.$ac_objext "* | \
12100 *" fileblocks.$ac_objext "* ) ;;
12101 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12107 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12108 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12109 if test "${ac_cv_struct_tm+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <sys/types.h>
12124 struct tm *tp; tp->tm_sec;
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag"
12139 || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest.$ac_objext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_cv_struct_tm=time.h
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_cv_struct_tm=sys/time.h
12158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12161 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12162 if test $ac_cv_struct_tm = sys/time.h; then
12164 cat >>confdefs.h <<\_ACEOF
12165 #define TM_IN_SYS_TIME 1
12170 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12171 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12172 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 #include <sys/types.h>
12182 #include <$ac_cv_struct_tm>
12188 static struct tm ac_aggr;
12189 if (ac_aggr.tm_zone)
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest.$ac_objext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_member_struct_tm_tm_zone=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <sys/types.h>
12229 #include <$ac_cv_struct_tm>
12235 static struct tm ac_aggr;
12236 if (sizeof ac_aggr.tm_zone)
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_member_struct_tm_tm_zone=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_cv_member_struct_tm_tm_zone=no
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12275 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12276 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12277 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_STRUCT_TM_TM_ZONE 1
12286 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_TM_ZONE 1
12293 echo "$as_me:$LINENO: checking for tzname" >&5
12294 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12295 if test "${ac_cv_var_tzname+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12305 #ifndef tzname /* For SGI. */
12306 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_var_tzname=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_var_tzname=no
12346 rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12349 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12350 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12351 if test $ac_cv_var_tzname = yes; then
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_TZNAME 1
12361 echo "$as_me:$LINENO: checking for utime.h" >&5
12362 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12363 if test "${ba_cv_header_utime_h+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12373 #include <sys/types.h>
12383 rm -f conftest.$ac_objext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>conftest.er1
12387 grep -v '^ *+' conftest.er1 >conftest.err
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_c_werror_flag"
12393 || test ! -s conftest.err'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } &&
12399 { ac_try='test -s conftest.$ac_objext'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ba_cv_header_utime_h=yes
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ba_cv_header_utime_h=no
12412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12415 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12416 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_UTIME_H 1
12421 echo "$as_me:$LINENO: checking for socklen_t" >&5
12422 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12423 if test "${ba_cv_header_socklen_t+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 #include <sys/types.h>
12434 #include <sys/socket.h>
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>conftest.er1
12447 grep -v '^ *+' conftest.er1 >conftest.err
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ba_cv_header_socklen_t=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ba_cv_header_socklen_t=no
12472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12474 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12475 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12476 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_SOCKLEN_T 1
12481 echo "$as_me:$LINENO: checking for bigendian" >&5
12482 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12483 if test "${ba_cv_bigendian+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 if test "$cross_compiling" = yes; then
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12497 rm -f conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499 (eval $ac_link) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ba_cv_bigendian=yes
12510 echo "$as_me: program exited with status $ac_status" >&5
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ( exit $ac_status )
12517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12520 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12521 echo "${ECHO_T}$ba_cv_bigendian" >&6
12522 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_BIGENDIAN 1
12528 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12529 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12530 if test "${ac_cv_c_const+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12543 /* FIXME: Include the comments suggested by Paul. */
12544 #ifndef __cplusplus
12545 /* Ultrix mips cc rejects this. */
12546 typedef int charset[2];
12548 /* SunOS 4.1.1 cc rejects this. */
12549 char const *const *ccp;
12551 /* NEC SVR4.0.2 mips cc rejects this. */
12552 struct point {int x, y;};
12553 static struct point const zero = {0,0};
12554 /* AIX XL C 1.02.0.0 rejects this.
12555 It does not let you subtract one const X* pointer from another in
12556 an arm of an if-expression whose if-part is not a constant
12558 const char *g = "string";
12559 ccp = &g + (g ? g-g : 0);
12560 /* HPUX 7.0 cc rejects these. */
12563 ccp = (char const *const *) p;
12564 { /* SCO 3.2v4 cc rejects this. */
12566 char const *s = 0 ? (char *) 0 : (char const *) 0;
12570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12571 int x[] = {25, 17};
12572 const int *foo = &x[0];
12575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12576 typedef const int *iptr;
12580 { /* AIX XL C 1.02.0.0 rejects this saying
12581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12582 struct s { int j; const int *ap[3]; };
12583 struct s *b; b->j = 5;
12585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12586 const int foo = 10;
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596 (eval $ac_compile) 2>conftest.er1
12598 grep -v '^ *+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_c_werror_flag"
12604 || test ! -s conftest.err'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest.$ac_objext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12626 echo "${ECHO_T}$ac_cv_c_const" >&6
12627 if test $ac_cv_c_const = no; then
12629 cat >>confdefs.h <<\_ACEOF
12637 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12638 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12640 # The order of these tests is important.
12641 cat >conftest.$ac_ext <<_ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 #include <sys/statvfs.h>
12648 #include <sys/fstyp.h>
12650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } >/dev/null; then
12658 if test -s conftest.err; then
12659 ac_cpp_err=$ac_c_preproc_warn_flag
12660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12667 if test -z "$ac_cpp_err"; then
12668 cat >>confdefs.h <<\_ACEOF
12669 #define FSTYPE_STATVFS 1
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12678 rm -f conftest.err conftest.$ac_ext
12679 if test $fstype = no; then
12680 cat >conftest.$ac_ext <<_ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 #include <sys/statfs.h>
12687 #include <sys/fstyp.h>
12689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev/null; then
12697 if test -s conftest.err; then
12698 ac_cpp_err=$ac_c_preproc_warn_flag
12699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12706 if test -z "$ac_cpp_err"; then
12707 cat >>confdefs.h <<\_ACEOF
12708 #define FSTYPE_USG_STATFS 1
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f conftest.err conftest.$ac_ext
12719 if test $fstype = no; then
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 #include <sys/statfs.h>
12727 #include <sys/vmount.h>
12729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } >/dev/null; then
12737 if test -s conftest.err; then
12738 ac_cpp_err=$ac_c_preproc_warn_flag
12739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12746 if test -z "$ac_cpp_err"; then
12747 cat >>confdefs.h <<\_ACEOF
12748 #define FSTYPE_AIX_STATFS 1
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12757 rm -f conftest.err conftest.$ac_ext
12759 if test $fstype = no; then
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 #include <mntent.h>
12768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } >/dev/null; then
12776 if test -s conftest.err; then
12777 ac_cpp_err=$ac_c_preproc_warn_flag
12778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12785 if test -z "$ac_cpp_err"; then
12786 cat >>confdefs.h <<\_ACEOF
12787 #define FSTYPE_MNTENT 1
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12796 rm -f conftest.err conftest.$ac_ext
12798 if test $fstype = no; then
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 #include <sys/mount.h>
12808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809 $EGREP "f_type;" >/dev/null 2>&1; then
12810 cat >>confdefs.h <<\_ACEOF
12811 #define FSTYPE_STATFS 1
12818 if test $fstype = no; then
12819 cat >conftest.$ac_ext <<_ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 #include <sys/mount.h>
12826 #include <sys/fs_types.h>
12828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } >/dev/null; then
12836 if test -s conftest.err; then
12837 ac_cpp_err=$ac_c_preproc_warn_flag
12838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12845 if test -z "$ac_cpp_err"; then
12846 cat >>confdefs.h <<\_ACEOF
12847 #define FSTYPE_GETMNT 1
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f conftest.err conftest.$ac_ext
12858 echo "$as_me:$LINENO: result: $fstype" >&5
12859 echo "${ECHO_T}$fstype" >&6
12861 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12862 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12863 if test "${ac_cv_type_signal+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 #include <sys/types.h>
12873 #include <signal.h>
12878 extern "C" void (*signal (int, void (*)(int)))(int);
12880 void (*signal ()) ();
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12895 grep -v '^ *+' conftest.er1 >conftest.err
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_type_signal=void
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_cv_type_signal=int
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12923 echo "${ECHO_T}$ac_cv_type_signal" >&6
12925 cat >>confdefs.h <<_ACEOF
12926 #define RETSIGTYPE $ac_cv_type_signal
12931 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12932 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12933 if test "${bash_cv_signal_vintage+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 cat >conftest.$ac_ext <<_ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 #include <signal.h>
12949 struct sigaction sa;
12950 sigemptyset(&ss); sigsuspend(&ss);
12951 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12952 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12958 rm -f conftest.$ac_objext conftest$ac_exeext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960 (eval $ac_link) 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag"
12968 || test ! -s conftest.err'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } &&
12974 { ac_try='test -s conftest$ac_exeext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 bash_cv_signal_vintage=posix
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12986 cat >conftest.$ac_ext <<_ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12992 #include <signal.h>
12997 int mask = sigmask(SIGINT);
12998 sigsetmask(mask); sigblock(mask); sigpause(mask);
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006 (eval $ac_link) 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag"
13014 || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 bash_cv_signal_vintage=4.2bsd
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13039 #include <signal.h>
13040 RETSIGTYPE foo() { }
13045 int mask = sigmask(SIGINT);
13046 sigset(SIGINT, foo); sigrelse(SIGINT);
13047 sighold(SIGINT); sigpause(SIGINT);
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055 (eval $ac_link) 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -z "$ac_c_werror_flag"
13063 || test ! -s conftest.err'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest$ac_exeext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 bash_cv_signal_vintage=svr3
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 bash_cv_signal_vintage=v7
13083 rm -f conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13087 rm -f conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13091 rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13096 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13097 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13098 if test "$bash_cv_signal_vintage" = posix; then
13099 cat >>confdefs.h <<\_ACEOF
13100 #define HAVE_POSIX_SIGNALS 1
13103 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_BSD_SIGNALS 1
13108 elif test "$bash_cv_signal_vintage" = svr3; then
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_USG_SIGHOLD 1
13115 echo "$as_me:$LINENO: checking for mode_t" >&5
13116 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13117 if test "${ac_cv_type_mode_t+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 cat >conftest.$ac_ext <<_ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 $ac_includes_default
13132 if (sizeof (mode_t))
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_type_mode_t=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_type_mode_t=no
13167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13170 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13171 if test $ac_cv_type_mode_t = yes; then
13175 cat >>confdefs.h <<_ACEOF
13181 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13182 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13183 if test "${ac_cv_type_uid_t+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 #include <sys/types.h>
13195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13196 $EGREP "uid_t" >/dev/null 2>&1; then
13197 ac_cv_type_uid_t=yes
13199 ac_cv_type_uid_t=no
13204 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13205 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13206 if test $ac_cv_type_uid_t = no; then
13208 cat >>confdefs.h <<\_ACEOF
13213 cat >>confdefs.h <<\_ACEOF
13219 echo "$as_me:$LINENO: checking for size_t" >&5
13220 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13221 if test "${ac_cv_type_size_t+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 $ac_includes_default
13236 if (sizeof (size_t))
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag"
13252 || test ! -s conftest.err'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 ac_cv_type_size_t=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_cv_type_size_t=no
13271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13273 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13274 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13275 if test $ac_cv_type_size_t = yes; then
13279 cat >>confdefs.h <<_ACEOF
13280 #define size_t unsigned
13285 echo "$as_me:$LINENO: checking for pid_t" >&5
13286 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13287 if test "${ac_cv_type_pid_t+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296 $ac_includes_default
13302 if (sizeof (pid_t))
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag"
13318 || test ! -s conftest.err'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest.$ac_objext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_type_pid_t=yes
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 ac_cv_type_pid_t=no
13337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13339 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13340 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13341 if test $ac_cv_type_pid_t = yes; then
13345 cat >>confdefs.h <<_ACEOF
13351 echo "$as_me:$LINENO: checking for off_t" >&5
13352 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13353 if test "${ac_cv_type_off_t+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 $ac_includes_default
13368 if (sizeof (off_t))
13374 rm -f conftest.$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_type_off_t=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_cv_type_off_t=no
13403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13406 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13407 if test $ac_cv_type_off_t = yes; then
13411 cat >>confdefs.h <<_ACEOF
13417 echo "$as_me:$LINENO: checking for ino_t" >&5
13418 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13419 if test "${ac_cv_type_ino_t+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 cat >conftest.$ac_ext <<_ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 $ac_includes_default
13434 if (sizeof (ino_t))
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_type_ino_t=yes
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ac_cv_type_ino_t=no
13469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13471 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13472 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13473 if test $ac_cv_type_ino_t = yes; then
13477 cat >>confdefs.h <<_ACEOF
13478 #define ino_t unsigned long
13483 echo "$as_me:$LINENO: checking for dev_t" >&5
13484 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13485 if test "${ac_cv_type_dev_t+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 $ac_includes_default
13500 if (sizeof (dev_t))
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag"
13516 || test ! -s conftest.err'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_type_dev_t=yes
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 ac_cv_type_dev_t=no
13535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13537 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13538 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13539 if test $ac_cv_type_dev_t = yes; then
13543 cat >>confdefs.h <<_ACEOF
13544 #define dev_t unsigned long
13549 echo "$as_me:$LINENO: checking for daddr_t" >&5
13550 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13551 if test "${ac_cv_type_daddr_t+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13566 if (sizeof (daddr_t))
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_type_daddr_t=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_type_daddr_t=no
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13604 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13605 if test $ac_cv_type_daddr_t = yes; then
13609 cat >>confdefs.h <<_ACEOF
13610 #define daddr_t long
13615 echo "$as_me:$LINENO: checking for major_t" >&5
13616 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13617 if test "${ac_cv_type_major_t+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13632 if (sizeof (major_t))
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>conftest.er1
13642 grep -v '^ *+' conftest.er1 >conftest.err
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_cv_type_major_t=yes
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_cv_type_major_t=no
13667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13669 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13670 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13671 if test $ac_cv_type_major_t = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676 #define major_t int
13681 echo "$as_me:$LINENO: checking for minor_t" >&5
13682 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13683 if test "${ac_cv_type_minor_t+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 $ac_includes_default
13698 if (sizeof (minor_t))
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try='test -z "$ac_c_werror_flag"
13714 || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_type_minor_t=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_cv_type_minor_t=no
13733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13735 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13736 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13737 if test $ac_cv_type_minor_t = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742 #define minor_t int
13747 echo "$as_me:$LINENO: checking for ssize_t" >&5
13748 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13749 if test "${ac_cv_type_ssize_t+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13764 if (sizeof (ssize_t))
13770 rm -f conftest.$ac_objext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13772 (eval $ac_compile) 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag"
13780 || test ! -s conftest.err'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; } &&
13786 { ac_try='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_type_ssize_t=yes
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 ac_cv_type_ssize_t=no
13799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13801 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13802 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13803 if test $ac_cv_type_ssize_t = yes; then
13807 cat >>confdefs.h <<_ACEOF
13808 #define ssize_t int
13813 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13814 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13815 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824 $ac_includes_default
13828 static struct stat ac_aggr;
13829 if (ac_aggr.st_blocks)
13835 rm -f conftest.$ac_objext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13837 (eval $ac_compile) 2>conftest.er1
13839 grep -v '^ *+' conftest.er1 >conftest.err
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest.$ac_objext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 ac_cv_member_struct_stat_st_blocks=yes
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13872 static struct stat ac_aggr;
13873 if (sizeof ac_aggr.st_blocks)
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_c_werror_flag"
13889 || test ! -s conftest.err'
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); }; } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_member_struct_stat_st_blocks=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_cv_member_struct_stat_st_blocks=no
13908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13914 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_ST_BLOCKS 1
13927 "fileblocks.$ac_objext" | \
13928 *" fileblocks.$ac_objext" | \
13929 "fileblocks.$ac_objext "* | \
13930 *" fileblocks.$ac_objext "* ) ;;
13931 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13938 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13939 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13940 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 $ac_includes_default
13953 static struct stat ac_aggr;
13954 if (ac_aggr.st_rdev)
13960 rm -f conftest.$ac_objext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>conftest.er1
13964 grep -v '^ *+' conftest.er1 >conftest.err
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
13969 { ac_try='test -z "$ac_c_werror_flag"
13970 || test ! -s conftest.err'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest.$ac_objext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_member_struct_stat_st_rdev=yes
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 cat >conftest.$ac_ext <<_ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h. */
13993 $ac_includes_default
13997 static struct stat ac_aggr;
13998 if (sizeof ac_aggr.st_rdev)
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_cv_member_struct_stat_st_rdev=yes
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_cv_member_struct_stat_st_rdev=no
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14038 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14039 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_STRUCT_STAT_ST_RDEV 1
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_ST_RDEV 1
14053 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14054 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14055 if test "${ac_cv_struct_tm+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <sys/types.h>
14070 struct tm *tp; tp->tm_sec;
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>conftest.er1
14079 grep -v '^ *+' conftest.er1 >conftest.err
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_struct_tm=time.h
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_struct_tm=sys/time.h
14104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14106 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14107 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14108 if test $ac_cv_struct_tm = sys/time.h; then
14110 cat >>confdefs.h <<\_ACEOF
14111 #define TM_IN_SYS_TIME 1
14116 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14117 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14118 if test "${ac_cv_c_const+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14131 /* FIXME: Include the comments suggested by Paul. */
14132 #ifndef __cplusplus
14133 /* Ultrix mips cc rejects this. */
14134 typedef int charset[2];
14136 /* SunOS 4.1.1 cc rejects this. */
14137 char const *const *ccp;
14139 /* NEC SVR4.0.2 mips cc rejects this. */
14140 struct point {int x, y;};
14141 static struct point const zero = {0,0};
14142 /* AIX XL C 1.02.0.0 rejects this.
14143 It does not let you subtract one const X* pointer from another in
14144 an arm of an if-expression whose if-part is not a constant
14146 const char *g = "string";
14147 ccp = &g + (g ? g-g : 0);
14148 /* HPUX 7.0 cc rejects these. */
14151 ccp = (char const *const *) p;
14152 { /* SCO 3.2v4 cc rejects this. */
14154 char const *s = 0 ? (char *) 0 : (char const *) 0;
14158 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14159 int x[] = {25, 17};
14160 const int *foo = &x[0];
14163 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14164 typedef const int *iptr;
14168 { /* AIX XL C 1.02.0.0 rejects this saying
14169 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14170 struct s { int j; const int *ap[3]; };
14171 struct s *b; b->j = 5;
14173 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14174 const int foo = 10;
14182 rm -f conftest.$ac_objext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184 (eval $ac_compile) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest.$ac_objext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14213 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14214 echo "${ECHO_T}$ac_cv_c_const" >&6
14215 if test $ac_cv_c_const = no; then
14217 cat >>confdefs.h <<\_ACEOF
14225 echo "$as_me:$LINENO: checking for char" >&5
14226 echo $ECHO_N "checking for char... $ECHO_C" >&6
14227 if test "${ac_cv_type_char+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -z "$ac_c_werror_flag"
14258 || test ! -s conftest.err'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_cv_type_char=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14279 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14280 echo "${ECHO_T}$ac_cv_type_char" >&6
14282 echo "$as_me:$LINENO: checking size of char" >&5
14283 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14284 if test "${ac_cv_sizeof_char+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 if test "$ac_cv_type_char" = yes; then
14288 # The cast to unsigned long works around a bug in the HP C Compiler
14289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14291 # This bug is HP SR number 8606223364.
14292 if test "$cross_compiling" = yes; then
14293 # Depending upon the size, compute the lo and hi bounds.
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14304 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14335 cat >conftest.$ac_ext <<_ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 $ac_includes_default
14345 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14352 rm -f conftest.$ac_objext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_c_werror_flag"
14362 || test ! -s conftest.err'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest.$ac_objext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14374 ac_hi=$ac_mid; break
14376 echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14379 ac_lo=`expr $ac_mid + 1`
14380 if test $ac_lo -le $ac_mid; then
14384 ac_mid=`expr 2 '*' $ac_mid + 1`
14386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 cat >conftest.$ac_ext <<_ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 $ac_includes_default
14402 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14443 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14454 grep -v '^ *+' conftest.er1 >conftest.err
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_lo=$ac_mid; break
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 ac_hi=`expr '(' $ac_mid ')' - 1`
14478 if test $ac_mid -le $ac_hi; then
14482 ac_mid=`expr 2 '*' $ac_mid`
14484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 # Binary search between lo and hi bounds.
14496 while test "x$ac_lo" != "x$ac_hi"; do
14497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14508 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
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); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 ?*) ac_cv_sizeof_char=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14549 See \`config.log' for more details." >&5
14550 echo "$as_me: error: cannot compute sizeof (char), 77
14551 See \`config.log' for more details." >&2;}
14552 { (exit 1); exit 1; }; } ;;
14555 if test "$cross_compiling" = yes; then
14556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14557 See \`config.log' for more details." >&5
14558 echo "$as_me: error: cannot run test program while cross compiling
14559 See \`config.log' for more details." >&2;}
14560 { (exit 1); exit 1; }; }
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 $ac_includes_default
14569 long longval () { return (long) (sizeof (char)); }
14570 unsigned long ulongval () { return (long) (sizeof (char)); }
14572 #include <stdlib.h>
14577 FILE *f = fopen ("conftest.val", "w");
14580 if (((long) (sizeof (char))) < 0)
14582 long i = longval ();
14583 if (i != ((long) (sizeof (char))))
14585 fprintf (f, "%ld\n", i);
14589 unsigned long i = ulongval ();
14590 if (i != ((long) (sizeof (char))))
14592 fprintf (f, "%lu\n", i);
14594 exit (ferror (f) || fclose (f) != 0);
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 ac_cv_sizeof_char=`cat conftest.val`
14613 echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ( exit $ac_status )
14618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14619 See \`config.log' for more details." >&5
14620 echo "$as_me: error: cannot compute sizeof (char), 77
14621 See \`config.log' for more details." >&2;}
14622 { (exit 1); exit 1; }; }
14624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14629 ac_cv_sizeof_char=0
14632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14633 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14634 cat >>confdefs.h <<_ACEOF
14635 #define SIZEOF_CHAR $ac_cv_sizeof_char
14639 echo "$as_me:$LINENO: checking for short int" >&5
14640 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14641 if test "${ac_cv_type_short_int+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 $ac_includes_default
14654 if ((short int *) 0)
14656 if (sizeof (short int))
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -z "$ac_c_werror_flag"
14672 || test ! -s conftest.err'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; } &&
14678 { ac_try='test -s conftest.$ac_objext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_type_short_int=yes
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_type_short_int=no
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14694 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14696 echo "$as_me:$LINENO: checking size of short int" >&5
14697 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14698 if test "${ac_cv_sizeof_short_int+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 if test "$ac_cv_type_short_int" = yes; then
14702 # The cast to unsigned long works around a bug in the HP C Compiler
14703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14705 # This bug is HP SR number 8606223364.
14706 if test "$cross_compiling" = yes; then
14707 # Depending upon the size, compute the lo and hi bounds.
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14718 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14725 rm -f conftest.$ac_objext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14727 (eval $ac_compile) 2>conftest.er1
14729 grep -v '^ *+' conftest.er1 >conftest.err
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_c_werror_flag"
14735 || test ! -s conftest.err'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; } &&
14741 { ac_try='test -s conftest.$ac_objext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 $ac_includes_default
14759 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_hi=$ac_mid; break
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_lo=`expr $ac_mid + 1`
14794 if test $ac_lo -le $ac_mid; then
14798 ac_mid=`expr 2 '*' $ac_mid + 1`
14800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 $ac_includes_default
14816 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>conftest.er1
14827 grep -v '^ *+' conftest.er1 >conftest.err
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 $ac_includes_default
14857 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14864 rm -f conftest.$ac_objext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866 (eval $ac_compile) 2>conftest.er1
14868 grep -v '^ *+' conftest.er1 >conftest.err
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag"
14874 || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_lo=$ac_mid; break
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 ac_hi=`expr '(' $ac_mid ')' - 1`
14892 if test $ac_mid -le $ac_hi; then
14896 ac_mid=`expr 2 '*' $ac_mid`
14898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14909 # Binary search between lo and hi bounds.
14910 while test "x$ac_lo" != "x$ac_hi"; do
14911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14922 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_lo=`expr '(' $ac_mid ')' + 1`
14958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14961 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14963 See \`config.log' for more details." >&5
14964 echo "$as_me: error: cannot compute sizeof (short int), 77
14965 See \`config.log' for more details." >&2;}
14966 { (exit 1); exit 1; }; } ;;
14969 if test "$cross_compiling" = yes; then
14970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14971 See \`config.log' for more details." >&5
14972 echo "$as_me: error: cannot run test program while cross compiling
14973 See \`config.log' for more details." >&2;}
14974 { (exit 1); exit 1; }; }
14976 cat >conftest.$ac_ext <<_ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 $ac_includes_default
14983 long longval () { return (long) (sizeof (short int)); }
14984 unsigned long ulongval () { return (long) (sizeof (short int)); }
14986 #include <stdlib.h>
14991 FILE *f = fopen ("conftest.val", "w");
14994 if (((long) (sizeof (short int))) < 0)
14996 long i = longval ();
14997 if (i != ((long) (sizeof (short int))))
14999 fprintf (f, "%ld\n", i);
15003 unsigned long i = ulongval ();
15004 if (i != ((long) (sizeof (short int))))
15006 fprintf (f, "%lu\n", i);
15008 exit (ferror (f) || fclose (f) != 0);
15014 rm -f conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016 (eval $ac_link) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_cv_sizeof_short_int=`cat conftest.val`
15027 echo "$as_me: program exited with status $ac_status" >&5
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ( exit $ac_status )
15032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15033 See \`config.log' for more details." >&5
15034 echo "$as_me: error: cannot compute sizeof (short int), 77
15035 See \`config.log' for more details." >&2;}
15036 { (exit 1); exit 1; }; }
15038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15043 ac_cv_sizeof_short_int=0
15046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15047 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15048 cat >>confdefs.h <<_ACEOF
15049 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15053 echo "$as_me:$LINENO: checking for int" >&5
15054 echo $ECHO_N "checking for int... $ECHO_C" >&6
15055 if test "${ac_cv_type_int+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 $ac_includes_default
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15107 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15108 echo "${ECHO_T}$ac_cv_type_int" >&6
15110 echo "$as_me:$LINENO: checking size of int" >&5
15111 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15112 if test "${ac_cv_sizeof_int+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 if test "$ac_cv_type_int" = yes; then
15116 # The cast to unsigned long works around a bug in the HP C Compiler
15117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15119 # This bug is HP SR number 8606223364.
15120 if test "$cross_compiling" = yes; then
15121 # Depending upon the size, compute the lo and hi bounds.
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15132 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15139 rm -f conftest.$ac_objext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141 (eval $ac_compile) 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -z "$ac_c_werror_flag"
15149 || test ! -s conftest.err'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 $ac_includes_default
15173 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182 (eval $ac_compile) 2>conftest.er1
15184 grep -v '^ *+' conftest.er1 >conftest.err
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -z "$ac_c_werror_flag"
15190 || test ! -s conftest.err'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15202 ac_hi=$ac_mid; break
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15207 ac_lo=`expr $ac_mid + 1`
15208 if test $ac_lo -le $ac_mid; then
15212 ac_mid=`expr 2 '*' $ac_mid + 1`
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 $ac_includes_default
15230 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15261 cat >conftest.$ac_ext <<_ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267 $ac_includes_default
15271 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_lo=$ac_mid; break
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_hi=`expr '(' $ac_mid ')' - 1`
15306 if test $ac_mid -le $ac_hi; then
15310 ac_mid=`expr 2 '*' $ac_mid`
15312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15323 # Binary search between lo and hi bounds.
15324 while test "x$ac_lo" != "x$ac_hi"; do
15325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15336 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345 (eval $ac_compile) 2>conftest.er1
15347 grep -v '^ *+' conftest.er1 >conftest.err
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_lo=`expr '(' $ac_mid ')' + 1`
15372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15375 ?*) ac_cv_sizeof_int=$ac_lo;;
15376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15377 See \`config.log' for more details." >&5
15378 echo "$as_me: error: cannot compute sizeof (int), 77
15379 See \`config.log' for more details." >&2;}
15380 { (exit 1); exit 1; }; } ;;
15383 if test "$cross_compiling" = yes; then
15384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15385 See \`config.log' for more details." >&5
15386 echo "$as_me: error: cannot run test program while cross compiling
15387 See \`config.log' for more details." >&2;}
15388 { (exit 1); exit 1; }; }
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 $ac_includes_default
15397 long longval () { return (long) (sizeof (int)); }
15398 unsigned long ulongval () { return (long) (sizeof (int)); }
15400 #include <stdlib.h>
15405 FILE *f = fopen ("conftest.val", "w");
15408 if (((long) (sizeof (int))) < 0)
15410 long i = longval ();
15411 if (i != ((long) (sizeof (int))))
15413 fprintf (f, "%ld\n", i);
15417 unsigned long i = ulongval ();
15418 if (i != ((long) (sizeof (int))))
15420 fprintf (f, "%lu\n", i);
15422 exit (ferror (f) || fclose (f) != 0);
15428 rm -f conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_sizeof_int=`cat conftest.val`
15441 echo "$as_me: program exited with status $ac_status" >&5
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ( exit $ac_status )
15446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15447 See \`config.log' for more details." >&5
15448 echo "$as_me: error: cannot compute sizeof (int), 77
15449 See \`config.log' for more details." >&2;}
15450 { (exit 1); exit 1; }; }
15452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15461 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15462 cat >>confdefs.h <<_ACEOF
15463 #define SIZEOF_INT $ac_cv_sizeof_int
15467 echo "$as_me:$LINENO: checking for long int" >&5
15468 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15469 if test "${ac_cv_type_long_int+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 $ac_includes_default
15482 if ((long int *) 0)
15484 if (sizeof (long int))
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492 (eval $ac_compile) 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_cv_type_long_int=yes
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ac_cv_type_long_int=no
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15521 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15522 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15524 echo "$as_me:$LINENO: checking size of long int" >&5
15525 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15526 if test "${ac_cv_sizeof_long_int+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 if test "$ac_cv_type_long_int" = yes; then
15530 # The cast to unsigned long works around a bug in the HP C Compiler
15531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15533 # This bug is HP SR number 8606223364.
15534 if test "$cross_compiling" = yes; then
15535 # Depending upon the size, compute the lo and hi bounds.
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15546 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555 (eval $ac_compile) 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag"
15563 || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest.$ac_objext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15587 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_hi=$ac_mid; break
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_lo=`expr $ac_mid + 1`
15622 if test $ac_lo -le $ac_mid; then
15626 ac_mid=`expr 2 '*' $ac_mid + 1`
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15644 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15675 cat >conftest.$ac_ext <<_ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 $ac_includes_default
15685 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694 (eval $ac_compile) 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_lo=$ac_mid; break
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_hi=`expr '(' $ac_mid ')' - 1`
15720 if test $ac_mid -le $ac_hi; then
15724 ac_mid=`expr 2 '*' $ac_mid`
15726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15737 # Binary search between lo and hi bounds.
15738 while test "x$ac_lo" != "x$ac_hi"; do
15739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 $ac_includes_default
15750 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_lo=`expr '(' $ac_mid ')' + 1`
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15789 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15790 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15791 See \`config.log' for more details." >&5
15792 echo "$as_me: error: cannot compute sizeof (long int), 77
15793 See \`config.log' for more details." >&2;}
15794 { (exit 1); exit 1; }; } ;;
15797 if test "$cross_compiling" = yes; then
15798 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15799 See \`config.log' for more details." >&5
15800 echo "$as_me: error: cannot run test program while cross compiling
15801 See \`config.log' for more details." >&2;}
15802 { (exit 1); exit 1; }; }
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 $ac_includes_default
15811 long longval () { return (long) (sizeof (long int)); }
15812 unsigned long ulongval () { return (long) (sizeof (long int)); }
15814 #include <stdlib.h>
15819 FILE *f = fopen ("conftest.val", "w");
15822 if (((long) (sizeof (long int))) < 0)
15824 long i = longval ();
15825 if (i != ((long) (sizeof (long int))))
15827 fprintf (f, "%ld\n", i);
15831 unsigned long i = ulongval ();
15832 if (i != ((long) (sizeof (long int))))
15834 fprintf (f, "%lu\n", i);
15836 exit (ferror (f) || fclose (f) != 0);
15842 rm -f conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844 (eval $ac_link) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 ac_cv_sizeof_long_int=`cat conftest.val`
15855 echo "$as_me: program exited with status $ac_status" >&5
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 ( exit $ac_status )
15860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15861 See \`config.log' for more details." >&5
15862 echo "$as_me: error: cannot compute sizeof (long int), 77
15863 See \`config.log' for more details." >&2;}
15864 { (exit 1); exit 1; }; }
15866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15871 ac_cv_sizeof_long_int=0
15874 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15875 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15876 cat >>confdefs.h <<_ACEOF
15877 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15881 echo "$as_me:$LINENO: checking for long long int" >&5
15882 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15883 if test "${ac_cv_type_long_long_int+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15896 if ((long long int *) 0)
15898 if (sizeof (long long int))
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>conftest.er1
15908 grep -v '^ *+' conftest.er1 >conftest.err
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag"
15914 || test ! -s conftest.err'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_cv_type_long_long_int=yes
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15931 ac_cv_type_long_long_int=no
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15935 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15936 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15938 echo "$as_me:$LINENO: checking size of long long int" >&5
15939 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15940 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 if test "$ac_cv_type_long_long_int" = yes; then
15944 # The cast to unsigned long works around a bug in the HP C Compiler
15945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15947 # This bug is HP SR number 8606223364.
15948 if test "$cross_compiling" = yes; then
15949 # Depending upon the size, compute the lo and hi bounds.
15950 cat >conftest.$ac_ext <<_ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15956 $ac_includes_default
15960 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try='test -z "$ac_c_werror_flag"
15977 || test ! -s conftest.err'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 $ac_includes_default
16001 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_hi=$ac_mid; break
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_lo=`expr $ac_mid + 1`
16036 if test $ac_lo -le $ac_mid; then
16040 ac_mid=`expr 2 '*' $ac_mid + 1`
16042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 cat >conftest.$ac_ext <<_ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16058 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 $ac_includes_default
16099 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16106 rm -f conftest.$ac_objext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16108 (eval $ac_compile) 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_c_werror_flag"
16116 || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_lo=$ac_mid; break
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_hi=`expr '(' $ac_mid ')' - 1`
16134 if test $ac_mid -le $ac_hi; then
16138 ac_mid=`expr 2 '*' $ac_mid`
16140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151 # Binary search between lo and hi bounds.
16152 while test "x$ac_lo" != "x$ac_hi"; do
16153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16154 cat >conftest.$ac_ext <<_ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 $ac_includes_default
16164 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_lo=`expr '(' $ac_mid ')' + 1`
16200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16203 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16205 See \`config.log' for more details." >&5
16206 echo "$as_me: error: cannot compute sizeof (long long int), 77
16207 See \`config.log' for more details." >&2;}
16208 { (exit 1); exit 1; }; } ;;
16211 if test "$cross_compiling" = yes; then
16212 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16213 See \`config.log' for more details." >&5
16214 echo "$as_me: error: cannot run test program while cross compiling
16215 See \`config.log' for more details." >&2;}
16216 { (exit 1); exit 1; }; }
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 $ac_includes_default
16225 long longval () { return (long) (sizeof (long long int)); }
16226 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16228 #include <stdlib.h>
16233 FILE *f = fopen ("conftest.val", "w");
16236 if (((long) (sizeof (long long int))) < 0)
16238 long i = longval ();
16239 if (i != ((long) (sizeof (long long int))))
16241 fprintf (f, "%ld\n", i);
16245 unsigned long i = ulongval ();
16246 if (i != ((long) (sizeof (long long int))))
16248 fprintf (f, "%lu\n", i);
16250 exit (ferror (f) || fclose (f) != 0);
16256 rm -f conftest$ac_exeext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258 (eval $ac_link) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_cv_sizeof_long_long_int=`cat conftest.val`
16269 echo "$as_me: program exited with status $ac_status" >&5
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ( exit $ac_status )
16274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16275 See \`config.log' for more details." >&5
16276 echo "$as_me: error: cannot compute sizeof (long long int), 77
16277 See \`config.log' for more details." >&2;}
16278 { (exit 1); exit 1; }; }
16280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16285 ac_cv_sizeof_long_long_int=0
16288 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16289 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16290 cat >>confdefs.h <<_ACEOF
16291 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16295 echo "$as_me:$LINENO: checking for int *" >&5
16296 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16297 if test "${ac_cv_type_int_p+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 $ac_includes_default
16312 if (sizeof (int *))
16318 rm -f conftest.$ac_objext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320 (eval $ac_compile) 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest.$ac_objext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_type_int_p=yes
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 ac_cv_type_int_p=no
16347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16349 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16350 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16352 echo "$as_me:$LINENO: checking size of int *" >&5
16353 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16354 if test "${ac_cv_sizeof_int_p+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 if test "$ac_cv_type_int_p" = yes; then
16358 # The cast to unsigned long works around a bug in the HP C Compiler
16359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16361 # This bug is HP SR number 8606223364.
16362 if test "$cross_compiling" = yes; then
16363 # Depending upon the size, compute the lo and hi bounds.
16364 cat >conftest.$ac_ext <<_ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 $ac_includes_default
16374 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag"
16391 || test ! -s conftest.err'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 $ac_includes_default
16415 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest.$ac_objext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_hi=$ac_mid; break
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_lo=`expr $ac_mid + 1`
16450 if test $ac_lo -le $ac_mid; then
16454 ac_mid=`expr 2 '*' $ac_mid + 1`
16456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 $ac_includes_default
16472 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 $ac_includes_default
16513 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_lo=$ac_mid; break
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_hi=`expr '(' $ac_mid ')' - 1`
16548 if test $ac_mid -le $ac_hi; then
16552 ac_mid=`expr 2 '*' $ac_mid`
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 # Binary search between lo and hi bounds.
16566 while test "x$ac_lo" != "x$ac_hi"; do
16567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 $ac_includes_default
16578 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587 (eval $ac_compile) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 ac_lo=`expr '(' $ac_mid ')' + 1`
16614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16617 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16618 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16619 See \`config.log' for more details." >&5
16620 echo "$as_me: error: cannot compute sizeof (int *), 77
16621 See \`config.log' for more details." >&2;}
16622 { (exit 1); exit 1; }; } ;;
16625 if test "$cross_compiling" = yes; then
16626 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16627 See \`config.log' for more details." >&5
16628 echo "$as_me: error: cannot run test program while cross compiling
16629 See \`config.log' for more details." >&2;}
16630 { (exit 1); exit 1; }; }
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 $ac_includes_default
16639 long longval () { return (long) (sizeof (int *)); }
16640 unsigned long ulongval () { return (long) (sizeof (int *)); }
16642 #include <stdlib.h>
16647 FILE *f = fopen ("conftest.val", "w");
16650 if (((long) (sizeof (int *))) < 0)
16652 long i = longval ();
16653 if (i != ((long) (sizeof (int *))))
16655 fprintf (f, "%ld\n", i);
16659 unsigned long i = ulongval ();
16660 if (i != ((long) (sizeof (int *))))
16662 fprintf (f, "%lu\n", i);
16664 exit (ferror (f) || fclose (f) != 0);
16670 rm -f conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ac_cv_sizeof_int_p=`cat conftest.val`
16683 echo "$as_me: program exited with status $ac_status" >&5
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ( exit $ac_status )
16688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16689 See \`config.log' for more details." >&5
16690 echo "$as_me: error: cannot compute sizeof (int *), 77
16691 See \`config.log' for more details." >&2;}
16692 { (exit 1); exit 1; }; }
16694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16699 ac_cv_sizeof_int_p=0
16702 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16703 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16704 cat >>confdefs.h <<_ACEOF
16705 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16710 # Check for sys/types.h types
16711 echo "$as_me:$LINENO: checking for u_int type" >&5
16712 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16713 if test "${ac_cv_have_u_int+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 #include <sys/types.h>
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -z "$ac_c_werror_flag"
16742 || test ! -s conftest.err'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_have_u_int="yes"
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_cv_have_u_int="no"
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16765 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16766 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16767 if test "x$ac_cv_have_u_int" = "xyes" ; then
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_U_INT 1
16775 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16776 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16777 if test "${ac_cv_have_intmax_t+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <sys/types.h>
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798 (eval $ac_compile) 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
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); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_have_intmax_t="yes"
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16824 cat >conftest.$ac_ext <<_ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 #include <stdint.h>
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841 (eval $ac_compile) 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag"
16849 || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_have_intmax_t="yes"
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_have_intmax_t="no"
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16877 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16878 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16879 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16880 cat >>confdefs.h <<\_ACEOF
16881 #define HAVE_INTMAX_T 1
16888 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16889 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16890 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <sys/types.h>
16904 u_intmax_t a; a = 1;
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_have_u_intmax_t="yes"
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 #include <stdint.h>
16947 u_intmax_t a; a = 1;
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954 (eval $ac_compile) 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_cv_have_u_intmax_t="yes"
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ac_cv_have_u_intmax_t="no"
16982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16989 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16990 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16991 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16992 cat >>confdefs.h <<\_ACEOF
16993 #define HAVE_U_INTMAX_T 1
17000 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17001 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17002 if test "${ac_cv_have_intxx_t+set}" = set; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 #include <sys/types.h>
17016 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023 (eval $ac_compile) 2>conftest.er1
17025 grep -v '^ *+' conftest.er1 >conftest.err
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -z "$ac_c_werror_flag"
17031 || test ! -s conftest.err'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_cv_have_intxx_t="yes"
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_cv_have_intxx_t="no"
17051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17055 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17056 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17057 cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_INTXX_T 1
17064 echo "$as_me:$LINENO: checking for int64_t type" >&5
17065 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17066 if test "${ac_cv_have_int64_t+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 cat >conftest.$ac_ext <<_ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 #include <sys/types.h>
17085 rm -f conftest.$ac_objext
17086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087 (eval $ac_compile) 2>conftest.er1
17089 grep -v '^ *+' conftest.er1 >conftest.err
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag"
17095 || test ! -s conftest.err'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_cv_have_int64_t="yes"
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_have_int64_t="no"
17115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17118 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17119 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17120 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17121 cat >>confdefs.h <<\_ACEOF
17122 #define HAVE_INT64_T 1
17128 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17129 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17130 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 cat >conftest.$ac_ext <<_ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 #include <sys/types.h>
17144 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17149 rm -f conftest.$ac_objext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest.$ac_objext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_have_u_intxx_t="yes"
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_cv_have_u_intxx_t="no"
17179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17183 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17184 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17185 cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_U_INTXX_T 1
17192 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17193 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17194 if test "${ac_cv_have_u_int64_t+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <sys/types.h>
17208 u_int64_t a; a = 1;
17213 rm -f conftest.$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag"
17223 || test ! -s conftest.err'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; } &&
17229 { ac_try='test -s conftest.$ac_objext'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_have_u_int64_t="yes"
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ac_cv_have_u_int64_t="no"
17243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17246 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17247 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17248 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17249 cat >>confdefs.h <<\_ACEOF
17250 #define HAVE_U_INT64_T 1
17256 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17257 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17259 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17260 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 #include <sys/bitypes.h>
17271 int8_t a; int16_t b; int32_t c;
17272 u_int8_t e; u_int16_t f; u_int32_t g;
17273 a = b = c = e = f = g = 1;
17278 rm -f conftest.$ac_objext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280 (eval $ac_compile) 2>conftest.er1
17282 grep -v '^ *+' conftest.er1 >conftest.err
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try='test -z "$ac_c_werror_flag"
17288 || test ! -s conftest.err'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest.$ac_objext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 cat >>confdefs.h <<\_ACEOF
17301 #define HAVE_U_INTXX_T 1
17304 cat >>confdefs.h <<\_ACEOF
17305 #define HAVE_INTXX_T 1
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_SYS_BITYPES_H 1
17312 echo "$as_me:$LINENO: result: yes" >&5
17313 echo "${ECHO_T}yes" >&6
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 echo "$as_me:$LINENO: result: no" >&5
17319 echo "${ECHO_T}no" >&6
17322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17325 if test -z "$have_u_intxx_t" ; then
17326 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17327 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17328 if test "${ac_cv_have_uintxx_t+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 #include <sys/types.h>
17342 uint8_t a; uint16_t b;
17343 uint32_t c; a = b = c = 1;
17348 rm -f conftest.$ac_objext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_have_uintxx_t="yes"
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ac_cv_have_uintxx_t="no"
17378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17381 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17382 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17383 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17384 cat >>confdefs.h <<\_ACEOF
17385 #define HAVE_UINTXX_T 1
17391 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17392 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17394 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17395 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 #include <sys/bitypes.h>
17406 int64_t a; u_int64_t b;
17412 rm -f conftest.$ac_objext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17414 (eval $ac_compile) 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag"
17422 || test ! -s conftest.err'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest.$ac_objext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 cat >>confdefs.h <<\_ACEOF
17435 #define HAVE_U_INT64_T 1
17438 cat >>confdefs.h <<\_ACEOF
17439 #define HAVE_INT64_T 1
17442 echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6
17452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17455 if (test -z "$have_uintxx_t" && \
17456 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17458 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17459 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 #include <sys/bitypes.h>
17470 uint8_t a; uint16_t b;
17471 uint32_t c; a = b = c = 1;
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>conftest.er1
17480 grep -v '^ *+' conftest.er1 >conftest.err
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag"
17486 || test ! -s conftest.err'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 cat >>confdefs.h <<\_ACEOF
17499 #define HAVE_UINTXX_T 1
17502 echo "$as_me:$LINENO: result: yes" >&5
17503 echo "${ECHO_T}yes" >&6
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6
17512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17549 echo "$as_me:$LINENO: checking for $ac_func" >&5
17550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17551 if eval "test \"\${$as_ac_var+set}\" = set"; then
17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17554 cat >conftest.$ac_ext <<_ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17562 #define $ac_func innocuous_$ac_func
17564 /* System header to define __stub macros and hopefully few prototypes,
17565 which can conflict with char $ac_func (); below.
17566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17567 <limits.h> exists even on freestanding compilers. */
17570 # include <limits.h>
17572 # include <assert.h>
17577 /* Override any gcc2 internal prototype to avoid an error. */
17582 /* We use char because int might match the return type of a gcc2
17583 builtin and then its argument prototype would still apply. */
17585 /* The GNU C library defines this for functions which it implements
17586 to always fail with ENOSYS. Some functions are actually named
17587 something starting with __ and the normal name is an alias. */
17588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17591 char (*f) () = $ac_func;
17600 return f != $ac_func;
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607 (eval $ac_link) 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest$ac_exeext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 eval "$as_ac_var=yes"
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 eval "$as_ac_var=no"
17634 rm -f conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17639 if test `eval echo '${'$as_ac_var'}'` = yes; then
17640 cat >>confdefs.h <<_ACEOF
17641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 echo 'configure: cannot find needed function.'; exit 1
17652 for ac_func in fchdir
17654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 echo "$as_me:$LINENO: checking for $ac_func" >&5
17656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17657 if eval "test \"\${$as_ac_var+set}\" = set"; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17668 #define $ac_func innocuous_$ac_func
17670 /* System header to define __stub macros and hopefully few prototypes,
17671 which can conflict with char $ac_func (); below.
17672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673 <limits.h> exists even on freestanding compilers. */
17676 # include <limits.h>
17678 # include <assert.h>
17683 /* Override any gcc2 internal prototype to avoid an error. */
17688 /* We use char because int might match the return type of a gcc2
17689 builtin and then its argument prototype would still apply. */
17691 /* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17697 char (*f) () = $ac_func;
17706 return f != $ac_func;
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 (eval $ac_link) 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag"
17721 || test ! -s conftest.err'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest$ac_exeext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 eval "$as_ac_var=yes"
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 eval "$as_ac_var=no"
17740 rm -f conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17745 if test `eval echo '${'$as_ac_var'}'` = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_FCHDIR 1
17757 for ac_func in strtoll
17759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760 echo "$as_me:$LINENO: checking for $ac_func" >&5
17761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17762 if eval "test \"\${$as_ac_var+set}\" = set"; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17773 #define $ac_func innocuous_$ac_func
17775 /* System header to define __stub macros and hopefully few prototypes,
17776 which can conflict with char $ac_func (); below.
17777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778 <limits.h> exists even on freestanding compilers. */
17781 # include <limits.h>
17783 # include <assert.h>
17788 /* Override any gcc2 internal prototype to avoid an error. */
17793 /* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17796 /* The GNU C library defines this for functions which it implements
17797 to always fail with ENOSYS. Some functions are actually named
17798 something starting with __ and the normal name is an alias. */
17799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17802 char (*f) () = $ac_func;
17811 return f != $ac_func;
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17818 (eval $ac_link) 2>conftest.er1
17820 grep -v '^ *+' conftest.er1 >conftest.err
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest$ac_exeext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 eval "$as_ac_var=yes"
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 eval "$as_ac_var=no"
17845 rm -f conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17850 if test `eval echo '${'$as_ac_var'}'` = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17854 cat >>confdefs.h <<\_ACEOF
17855 #define HAVE_STRTOLL 1
17863 for ac_func in chflags
17865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17866 echo "$as_me:$LINENO: checking for $ac_func" >&5
17867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_var+set}\" = set"; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17879 #define $ac_func innocuous_$ac_func
17881 /* System header to define __stub macros and hopefully few prototypes,
17882 which can conflict with char $ac_func (); below.
17883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17884 <limits.h> exists even on freestanding compilers. */
17887 # include <limits.h>
17889 # include <assert.h>
17894 /* Override any gcc2 internal prototype to avoid an error. */
17899 /* We use char because int might match the return type of a gcc2
17900 builtin and then its argument prototype would still apply. */
17902 /* The GNU C library defines this for functions which it implements
17903 to always fail with ENOSYS. Some functions are actually named
17904 something starting with __ and the normal name is an alias. */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17908 char (*f) () = $ac_func;
17917 return f != $ac_func;
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 eval "$as_ac_var=yes"
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 eval "$as_ac_var=no"
17951 rm -f conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957 cat >>confdefs.h <<_ACEOF
17958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17969 for ac_func in snprintf vsnprintf gethostid getdomainname
17971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17972 echo "$as_me:$LINENO: checking for $ac_func" >&5
17973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17974 if eval "test \"\${$as_ac_var+set}\" = set"; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17985 #define $ac_func innocuous_$ac_func
17987 /* System header to define __stub macros and hopefully few prototypes,
17988 which can conflict with char $ac_func (); below.
17989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17990 <limits.h> exists even on freestanding compilers. */
17993 # include <limits.h>
17995 # include <assert.h>
18000 /* Override any gcc2 internal prototype to avoid an error. */
18005 /* We use char because int might match the return type of a gcc2
18006 builtin and then its argument prototype would still apply. */
18008 /* The GNU C library defines this for functions which it implements
18009 to always fail with ENOSYS. Some functions are actually named
18010 something starting with __ and the normal name is an alias. */
18011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18014 char (*f) () = $ac_func;
18023 return f != $ac_func;
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030 (eval $ac_link) 2>conftest.er1
18032 grep -v '^ *+' conftest.er1 >conftest.err
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -z "$ac_c_werror_flag"
18038 || test ! -s conftest.err'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest$ac_exeext'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 eval "$as_ac_var=yes"
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 eval "$as_ac_var=no"
18057 rm -f conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18062 if test `eval echo '${'$as_ac_var'}'` = yes; then
18063 cat >>confdefs.h <<_ACEOF
18064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18075 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18078 echo "$as_me:$LINENO: checking for $ac_func" >&5
18079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_var+set}\" = set"; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18091 #define $ac_func innocuous_$ac_func
18093 /* System header to define __stub macros and hopefully few prototypes,
18094 which can conflict with char $ac_func (); below.
18095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096 <limits.h> exists even on freestanding compilers. */
18099 # include <limits.h>
18101 # include <assert.h>
18106 /* Override any gcc2 internal prototype to avoid an error. */
18111 /* We use char because int might match the return type of a gcc2
18112 builtin and then its argument prototype would still apply. */
18114 /* The GNU C library defines this for functions which it implements
18115 to always fail with ENOSYS. Some functions are actually named
18116 something starting with __ and the normal name is an alias. */
18117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18120 char (*f) () = $ac_func;
18129 return f != $ac_func;
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136 (eval $ac_link) 2>conftest.er1
18138 grep -v '^ *+' conftest.er1 >conftest.err
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest$ac_exeext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 eval "$as_ac_var=yes"
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 eval "$as_ac_var=no"
18163 rm -f conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18177 # If resolver functions are not in libc check for -lnsl or -lresolv.
18178 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18179 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18180 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18191 #define gethostbyname_r innocuous_gethostbyname_r
18193 /* System header to define __stub macros and hopefully few prototypes,
18194 which can conflict with char gethostbyname_r (); below.
18195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 <limits.h> exists even on freestanding compilers. */
18199 # include <limits.h>
18201 # include <assert.h>
18204 #undef gethostbyname_r
18206 /* Override any gcc2 internal prototype to avoid an error. */
18211 /* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213 char gethostbyname_r ();
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18220 char (*f) () = gethostbyname_r;
18229 return f != gethostbyname_r;
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_func_gethostbyname_r=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_func_gethostbyname_r=no
18263 rm -f conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18266 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18267 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18268 if test $ac_cv_func_gethostbyname_r = yes; then
18269 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18270 echo "${ECHO_T}using libc's resolver" >&6
18273 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18274 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18275 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 ac_check_lib_save_LIBS=$LIBS
18280 cat >conftest.$ac_ext <<_ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18287 /* Override any gcc2 internal prototype to avoid an error. */
18291 /* We use char because int might match the return type of a gcc2
18292 builtin and then its argument prototype would still apply. */
18293 char gethostbyname_r ();
18297 gethostbyname_r ();
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304 (eval $ac_link) 2>conftest.er1
18306 grep -v '^ *+' conftest.er1 >conftest.err
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } &&
18311 { ac_try='test -z "$ac_c_werror_flag"
18312 || test ! -s conftest.err'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; } &&
18318 { ac_try='test -s conftest$ac_exeext'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324 ac_cv_lib_nsl_gethostbyname_r=yes
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18329 ac_cv_lib_nsl_gethostbyname_r=no
18331 rm -f conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18335 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18336 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18337 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18338 cat >>confdefs.h <<_ACEOF
18339 #define HAVE_LIBNSL 1
18347 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18348 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18349 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 ac_check_lib_save_LIBS=$LIBS
18353 LIBS="-lresolv $LIBS"
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18361 /* Override any gcc2 internal prototype to avoid an error. */
18365 /* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18367 char gethostbyname_r ();
18371 gethostbyname_r ();
18376 rm -f conftest.$ac_objext conftest$ac_exeext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378 (eval $ac_link) 2>conftest.er1
18380 grep -v '^ *+' conftest.er1 >conftest.err
18382 cat conftest.err >&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest$ac_exeext'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_lib_resolv_gethostbyname_r=yes
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18403 ac_cv_lib_resolv_gethostbyname_r=no
18405 rm -f conftest.err conftest.$ac_objext \
18406 conftest$ac_exeext conftest.$ac_ext
18407 LIBS=$ac_check_lib_save_LIBS
18409 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18410 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18411 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18412 cat >>confdefs.h <<_ACEOF
18413 #define HAVE_LIBRESOLV 1
18416 LIBS="-lresolv $LIBS"
18426 for ac_func in inet_pton
18428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18429 echo "$as_me:$LINENO: checking for $ac_func" >&5
18430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18431 if eval "test \"\${$as_ac_var+set}\" = set"; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18442 #define $ac_func innocuous_$ac_func
18444 /* System header to define __stub macros and hopefully few prototypes,
18445 which can conflict with char $ac_func (); below.
18446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18447 <limits.h> exists even on freestanding compilers. */
18450 # include <limits.h>
18452 # include <assert.h>
18457 /* Override any gcc2 internal prototype to avoid an error. */
18462 /* We use char because int might match the return type of a gcc2
18463 builtin and then its argument prototype would still apply. */
18465 /* The GNU C library defines this for functions which it implements
18466 to always fail with ENOSYS. Some functions are actually named
18467 something starting with __ and the normal name is an alias. */
18468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18471 char (*f) () = $ac_func;
18480 return f != $ac_func;
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18487 (eval $ac_link) 2>conftest.er1
18489 grep -v '^ *+' conftest.er1 >conftest.err
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -z "$ac_c_werror_flag"
18495 || test ! -s conftest.err'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest$ac_exeext'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 eval "$as_ac_var=yes"
18509 echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18512 eval "$as_ac_var=no"
18514 rm -f conftest.err conftest.$ac_objext \
18515 conftest$ac_exeext conftest.$ac_ext
18517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18519 if test `eval echo '${'$as_ac_var'}'` = yes; then
18520 cat >>confdefs.h <<_ACEOF
18521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523 cat >>confdefs.h <<\_ACEOF
18524 #define HAVE_INET_PTON 1
18531 for ac_func in inet_ntop
18533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18534 echo "$as_me:$LINENO: checking for $ac_func" >&5
18535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18536 if eval "test \"\${$as_ac_var+set}\" = set"; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18547 #define $ac_func innocuous_$ac_func
18549 /* System header to define __stub macros and hopefully few prototypes,
18550 which can conflict with char $ac_func (); below.
18551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552 <limits.h> exists even on freestanding compilers. */
18555 # include <limits.h>
18557 # include <assert.h>
18562 /* Override any gcc2 internal prototype to avoid an error. */
18567 /* We use char because int might match the return type of a gcc2
18568 builtin and then its argument prototype would still apply. */
18570 /* The GNU C library defines this for functions which it implements
18571 to always fail with ENOSYS. Some functions are actually named
18572 something starting with __ and the normal name is an alias. */
18573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18576 char (*f) () = $ac_func;
18585 return f != $ac_func;
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_c_werror_flag"
18600 || test ! -s conftest.err'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest$ac_exeext'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 eval "$as_ac_var=yes"
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 eval "$as_ac_var=no"
18619 rm -f conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18624 if test `eval echo '${'$as_ac_var'}'` = yes; then
18625 cat >>confdefs.h <<_ACEOF
18626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18628 cat >>confdefs.h <<\_ACEOF
18629 #define HAVE_INET_NTOP 1
18636 for ac_func in gethostbyname2
18638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18639 echo "$as_me:$LINENO: checking for $ac_func" >&5
18640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_var+set}\" = set"; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 cat >conftest.$ac_ext <<_ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18652 #define $ac_func innocuous_$ac_func
18654 /* System header to define __stub macros and hopefully few prototypes,
18655 which can conflict with char $ac_func (); below.
18656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18657 <limits.h> exists even on freestanding compilers. */
18660 # include <limits.h>
18662 # include <assert.h>
18667 /* Override any gcc2 internal prototype to avoid an error. */
18672 /* We use char because int might match the return type of a gcc2
18673 builtin and then its argument prototype would still apply. */
18675 /* The GNU C library defines this for functions which it implements
18676 to always fail with ENOSYS. Some functions are actually named
18677 something starting with __ and the normal name is an alias. */
18678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18681 char (*f) () = $ac_func;
18690 return f != $ac_func;
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -z "$ac_c_werror_flag"
18705 || test ! -s conftest.err'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try='test -s conftest$ac_exeext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 eval "$as_ac_var=yes"
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 eval "$as_ac_var=no"
18724 rm -f conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18729 if test `eval echo '${'$as_ac_var'}'` = yes; then
18730 cat >>confdefs.h <<_ACEOF
18731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE_GETHOSTBYNAME2 1
18741 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18742 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18743 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18752 #include <sys/socket.h>
18756 struct sockaddr s; s.sa_len;
18761 rm -f conftest.$ac_objext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763 (eval $ac_compile) 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -z "$ac_c_werror_flag"
18771 || test ! -s conftest.err'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest.$ac_objext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_struct_sockaddr_sa_len=yes
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_struct_sockaddr_sa_len=no
18790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18792 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18793 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18795 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18797 cat >>confdefs.h <<\_ACEOF
18798 #define HAVE_SA_LEN 1
18804 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18805 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18806 if test "${ac_cv_ipv6_support+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 cat >conftest.$ac_ext <<_ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #include <sys/types.h>
18816 #include <sys/socket.h>
18817 #include <netinet/in.h>
18821 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18829 (eval $ac_link) 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag"
18837 || test ! -s conftest.err'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest$ac_exeext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_ipv6_support=yes
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_ipv6_support=no
18856 rm -f conftest.err conftest.$ac_objext \
18857 conftest$ac_exeext conftest.$ac_ext
18859 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18860 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18862 if test "$ac_cv_ipv6_support" = yes; then
18864 cat >>confdefs.h <<\_ACEOF
18865 #define HAVE_IPV6 1
18873 for ac_func in strftime
18875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18876 echo "$as_me:$LINENO: checking for $ac_func" >&5
18877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18878 if eval "test \"\${$as_ac_var+set}\" = set"; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 cat >conftest.$ac_ext <<_ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h. */
18887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18889 #define $ac_func innocuous_$ac_func
18891 /* System header to define __stub macros and hopefully few prototypes,
18892 which can conflict with char $ac_func (); below.
18893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18894 <limits.h> exists even on freestanding compilers. */
18897 # include <limits.h>
18899 # include <assert.h>
18904 /* Override any gcc2 internal prototype to avoid an error. */
18909 /* We use char because int might match the return type of a gcc2
18910 builtin and then its argument prototype would still apply. */
18912 /* The GNU C library defines this for functions which it implements
18913 to always fail with ENOSYS. Some functions are actually named
18914 something starting with __ and the normal name is an alias. */
18915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18918 char (*f) () = $ac_func;
18927 return f != $ac_func;
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18934 (eval $ac_link) 2>conftest.er1
18936 grep -v '^ *+' conftest.er1 >conftest.err
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_c_werror_flag"
18942 || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 eval "$as_ac_var=yes"
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 eval "$as_ac_var=no"
18961 rm -f conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18966 if test `eval echo '${'$as_ac_var'}'` = yes; then
18967 cat >>confdefs.h <<_ACEOF
18968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18972 # strftime is in -lintl on SCO UNIX.
18973 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18974 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18975 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 ac_check_lib_save_LIBS=$LIBS
18979 LIBS="-lintl $LIBS"
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18987 /* Override any gcc2 internal prototype to avoid an error. */
18991 /* We use char because int might match the return type of a gcc2
18992 builtin and then its argument prototype would still apply. */
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004 (eval $ac_link) 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
19011 { ac_try='test -z "$ac_c_werror_flag"
19012 || test ! -s conftest.err'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest$ac_exeext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_lib_intl_strftime=yes
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 ac_cv_lib_intl_strftime=no
19031 rm -f conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19033 LIBS=$ac_check_lib_save_LIBS
19035 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19036 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19037 if test $ac_cv_lib_intl_strftime = yes; then
19038 cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_STRFTIME 1
19042 LIBS="-lintl $LIBS"
19049 for ac_func in vprintf
19051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19052 echo "$as_me:$LINENO: checking for $ac_func" >&5
19053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19054 if eval "test \"\${$as_ac_var+set}\" = set"; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 cat >conftest.$ac_ext <<_ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19065 #define $ac_func innocuous_$ac_func
19067 /* System header to define __stub macros and hopefully few prototypes,
19068 which can conflict with char $ac_func (); below.
19069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19070 <limits.h> exists even on freestanding compilers. */
19073 # include <limits.h>
19075 # include <assert.h>
19080 /* Override any gcc2 internal prototype to avoid an error. */
19085 /* We use char because int might match the return type of a gcc2
19086 builtin and then its argument prototype would still apply. */
19088 /* The GNU C library defines this for functions which it implements
19089 to always fail with ENOSYS. Some functions are actually named
19090 something starting with __ and the normal name is an alias. */
19091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19094 char (*f) () = $ac_func;
19103 return f != $ac_func;
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19110 (eval $ac_link) 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_c_werror_flag"
19118 || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest$ac_exeext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 eval "$as_ac_var=yes"
19132 echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19135 eval "$as_ac_var=no"
19137 rm -f conftest.err conftest.$ac_objext \
19138 conftest$ac_exeext conftest.$ac_ext
19140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19142 if test `eval echo '${'$as_ac_var'}'` = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19147 echo "$as_me:$LINENO: checking for _doprnt" >&5
19148 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19149 if test "${ac_cv_func__doprnt+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 cat >conftest.$ac_ext <<_ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19160 #define _doprnt innocuous__doprnt
19162 /* System header to define __stub macros and hopefully few prototypes,
19163 which can conflict with char _doprnt (); below.
19164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19165 <limits.h> exists even on freestanding compilers. */
19168 # include <limits.h>
19170 # include <assert.h>
19175 /* Override any gcc2 internal prototype to avoid an error. */
19180 /* We use char because int might match the return type of a gcc2
19181 builtin and then its argument prototype would still apply. */
19183 /* The GNU C library defines this for functions which it implements
19184 to always fail with ENOSYS. Some functions are actually named
19185 something starting with __ and the normal name is an alias. */
19186 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19189 char (*f) () = _doprnt;
19198 return f != _doprnt;
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205 (eval $ac_link) 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -z "$ac_c_werror_flag"
19213 || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest$ac_exeext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_func__doprnt=yes
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_cv_func__doprnt=no
19232 rm -f conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
19235 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19236 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19237 if test $ac_cv_func__doprnt = yes; then
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_DOPRNT 1
19249 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19250 # for constant arguments. Useless!
19251 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19252 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19253 if test "${ac_cv_working_alloca_h+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <alloca.h>
19266 char *p = (char *) alloca (2 * sizeof (int));
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273 (eval $ac_link) 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag"
19281 || test ! -s conftest.err'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest$ac_exeext'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_working_alloca_h=yes
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ac_cv_working_alloca_h=no
19300 rm -f conftest.err conftest.$ac_objext \
19301 conftest$ac_exeext conftest.$ac_ext
19303 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19304 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19305 if test $ac_cv_working_alloca_h = yes; then
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE_ALLOCA_H 1
19313 echo "$as_me:$LINENO: checking for alloca" >&5
19314 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19315 if test "${ac_cv_func_alloca_works+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 cat >conftest.$ac_ext <<_ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19325 # define alloca __builtin_alloca
19328 # include <malloc.h>
19329 # define alloca _alloca
19332 # include <alloca.h>
19337 # ifndef alloca /* predefined by HP cc +Olibcalls */
19348 char *p = (char *) alloca (1);
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355 (eval $ac_link) 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag"
19363 || test ! -s conftest.err'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_cv_func_alloca_works=yes
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_func_alloca_works=no
19382 rm -f conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19385 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19386 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19388 if test $ac_cv_func_alloca_works = yes; then
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_ALLOCA 1
19395 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19396 # that cause trouble. Some versions do not even contain alloca or
19397 # contain a buggy version. If you still want to use their alloca,
19398 # use ar to extract alloca.o from them instead of compiling alloca.c.
19400 ALLOCA=alloca.$ac_objext
19402 cat >>confdefs.h <<\_ACEOF
19407 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19408 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19409 if test "${ac_cv_os_cray+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 #if defined(CRAY) && ! defined(CRAY2)
19425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19426 $EGREP "webecray" >/dev/null 2>&1; then
19434 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19435 echo "${ECHO_T}$ac_cv_os_cray" >&6
19436 if test $ac_cv_os_cray = yes; then
19437 for ac_func in _getb67 GETB67 getb67; do
19438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19439 echo "$as_me:$LINENO: checking for $ac_func" >&5
19440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19441 if eval "test \"\${$as_ac_var+set}\" = set"; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 cat >conftest.$ac_ext <<_ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19452 #define $ac_func innocuous_$ac_func
19454 /* System header to define __stub macros and hopefully few prototypes,
19455 which can conflict with char $ac_func (); below.
19456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19457 <limits.h> exists even on freestanding compilers. */
19460 # include <limits.h>
19462 # include <assert.h>
19467 /* Override any gcc2 internal prototype to avoid an error. */
19472 /* We use char because int might match the return type of a gcc2
19473 builtin and then its argument prototype would still apply. */
19475 /* The GNU C library defines this for functions which it implements
19476 to always fail with ENOSYS. Some functions are actually named
19477 something starting with __ and the normal name is an alias. */
19478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19481 char (*f) () = $ac_func;
19490 return f != $ac_func;
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19497 (eval $ac_link) 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag"
19505 || test ! -s conftest.err'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest$ac_exeext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 eval "$as_ac_var=yes"
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 eval "$as_ac_var=no"
19524 rm -f conftest.err conftest.$ac_objext \
19525 conftest$ac_exeext conftest.$ac_ext
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19529 if test `eval echo '${'$as_ac_var'}'` = yes; then
19531 cat >>confdefs.h <<_ACEOF
19532 #define CRAY_STACKSEG_END $ac_func
19541 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19542 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19543 if test "${ac_cv_c_stack_direction+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 if test "$cross_compiling" = yes; then
19547 ac_cv_c_stack_direction=0
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19556 find_stack_direction ()
19558 static char *addr = 0;
19563 return find_stack_direction ();
19566 return (&dummy > addr) ? 1 : -1;
19572 exit (find_stack_direction () < 0);
19575 rm -f conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577 (eval $ac_link) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_c_stack_direction=1
19588 echo "$as_me: program exited with status $ac_status" >&5
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ( exit $ac_status )
19593 ac_cv_c_stack_direction=-1
19595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19598 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19599 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19601 cat >>confdefs.h <<_ACEOF
19602 #define STACK_DIRECTION $ac_cv_c_stack_direction
19608 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19609 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19610 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19611 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 ac_check_lib_save_LIBS=$LIBS
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19623 /* Override any gcc2 internal prototype to avoid an error. */
19627 /* We use char because int might match the return type of a gcc2
19628 builtin and then its argument prototype would still apply. */
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19640 (eval $ac_link) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest$ac_exeext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_lib_sun_getmntent=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_lib_sun_getmntent=no
19667 rm -f conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19671 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19672 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19673 if test $ac_cv_lib_sun_getmntent = yes; then
19676 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19677 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19678 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 ac_check_lib_save_LIBS=$LIBS
19683 cat >conftest.$ac_ext <<_ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19690 /* Override any gcc2 internal prototype to avoid an error. */
19694 /* We use char because int might match the return type of a gcc2
19695 builtin and then its argument prototype would still apply. */
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>conftest.er1
19709 grep -v '^ *+' conftest.er1 >conftest.err
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest$ac_exeext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_lib_seq_getmntent=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_lib_seq_getmntent=no
19734 rm -f conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19739 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19740 if test $ac_cv_lib_seq_getmntent = yes; then
19743 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19744 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19745 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 ac_check_lib_save_LIBS=$LIBS
19750 cat >conftest.$ac_ext <<_ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19757 /* Override any gcc2 internal prototype to avoid an error. */
19761 /* We use char because int might match the return type of a gcc2
19762 builtin and then its argument prototype would still apply. */
19772 rm -f conftest.$ac_objext conftest$ac_exeext
19773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19774 (eval $ac_link) 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_c_werror_flag"
19782 || test ! -s conftest.err'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; } &&
19788 { ac_try='test -s conftest$ac_exeext'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_lib_gen_getmntent=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_cv_lib_gen_getmntent=no
19801 rm -f conftest.err conftest.$ac_objext \
19802 conftest$ac_exeext conftest.$ac_ext
19803 LIBS=$ac_check_lib_save_LIBS
19805 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19806 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19807 if test $ac_cv_lib_gen_getmntent = yes; then
19816 for ac_func in getmntent
19818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19819 echo "$as_me:$LINENO: checking for $ac_func" >&5
19820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19821 if eval "test \"\${$as_ac_var+set}\" = set"; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19832 #define $ac_func innocuous_$ac_func
19834 /* System header to define __stub macros and hopefully few prototypes,
19835 which can conflict with char $ac_func (); below.
19836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19837 <limits.h> exists even on freestanding compilers. */
19840 # include <limits.h>
19842 # include <assert.h>
19847 /* Override any gcc2 internal prototype to avoid an error. */
19852 /* We use char because int might match the return type of a gcc2
19853 builtin and then its argument prototype would still apply. */
19855 /* The GNU C library defines this for functions which it implements
19856 to always fail with ENOSYS. Some functions are actually named
19857 something starting with __ and the normal name is an alias. */
19858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19861 char (*f) () = $ac_func;
19870 return f != $ac_func;
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877 (eval $ac_link) 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag"
19885 || test ! -s conftest.err'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest$ac_exeext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 eval "$as_ac_var=yes"
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 eval "$as_ac_var=no"
19904 rm -f conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19909 if test `eval echo '${'$as_ac_var'}'` = yes; then
19910 cat >>confdefs.h <<_ACEOF
19911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19918 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19919 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19920 if test "${ac_cv_func_closedir_void+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 if test "$cross_compiling" = yes; then
19924 ac_cv_func_closedir_void=yes
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 $ac_includes_default
19933 #include <$ac_header_dirent>
19934 #ifndef __cplusplus
19941 exit (closedir (opendir (".")) != 0);
19946 rm -f conftest$ac_exeext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19948 (eval $ac_link) 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_cv_func_closedir_void=no
19959 echo "$as_me: program exited with status $ac_status" >&5
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 ( exit $ac_status )
19964 ac_cv_func_closedir_void=yes
19966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19969 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19970 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19971 if test $ac_cv_func_closedir_void = yes; then
19973 cat >>confdefs.h <<\_ACEOF
19974 #define CLOSEDIR_VOID 1
19979 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19980 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19981 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 if test "$cross_compiling" = yes; then
19985 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19986 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19987 { (exit 1); exit 1; }; }
19989 cat >conftest.$ac_ext <<_ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19996 # include <unistd.h>
20002 /* If this system has a BSD-style setpgrp which takes arguments,
20003 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20004 exit successfully. */
20005 exit (setpgrp (1,1) == -1 ? 0 : 1);
20010 rm -f conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012 (eval $ac_link) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20021 ac_cv_func_setpgrp_void=no
20023 echo "$as_me: program exited with status $ac_status" >&5
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20027 ( exit $ac_status )
20028 ac_cv_func_setpgrp_void=yes
20030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20033 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20034 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20035 if test $ac_cv_func_setpgrp_void = yes; then
20037 cat >>confdefs.h <<\_ACEOF
20038 #define SETPGRP_VOID 1
20042 # AC_FUNC_FNMATCH dnl use local version
20045 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20046 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20047 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 ac_check_lib_save_LIBS=$LIBS
20051 LIBS="-lxpg4 $LIBS"
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20059 /* Override any gcc2 internal prototype to avoid an error. */
20063 /* We use char because int might match the return type of a gcc2
20064 builtin and then its argument prototype would still apply. */
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>conftest.er1
20078 grep -v '^ *+' conftest.er1 >conftest.err
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } &&
20083 { ac_try='test -z "$ac_c_werror_flag"
20084 || test ! -s conftest.err'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest$ac_exeext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_cv_lib_xpg4_setlocale=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_cv_lib_xpg4_setlocale=no
20103 rm -f conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20107 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20108 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20109 if test $ac_cv_lib_xpg4_setlocale = yes; then
20110 LIBS="$LIBS -lxpg4"
20116 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20117 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20118 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20119 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 ac_check_lib_save_LIBS=$LIBS
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20130 /* Override any gcc2 internal prototype to avoid an error. */
20134 /* We use char because int might match the return type of a gcc2
20135 builtin and then its argument prototype would still apply. */
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147 (eval $ac_link) 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_c_werror_flag"
20155 || test ! -s conftest.err'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest$ac_exeext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_lib_sun_getpwnam=yes
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ac_cv_lib_sun_getpwnam=no
20174 rm -f conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176 LIBS=$ac_check_lib_save_LIBS
20178 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20179 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20180 if test $ac_cv_lib_sun_getpwnam = yes; then
20181 cat >>confdefs.h <<_ACEOF
20182 #define HAVE_LIBSUN 1
20191 for ac_header in zlib.h
20193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20195 echo "$as_me:$LINENO: checking for $ac_header" >&5
20196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20203 # Is the header compilable?
20204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20206 cat >conftest.$ac_ext <<_ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20212 $ac_includes_default
20213 #include <$ac_header>
20215 rm -f conftest.$ac_objext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20217 (eval $ac_compile) 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -z "$ac_c_werror_flag"
20225 || test ! -s conftest.err'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest.$ac_objext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 ac_header_compiler=yes
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_header_compiler=no
20244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246 echo "${ECHO_T}$ac_header_compiler" >&6
20248 # Is the header present?
20249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <$ac_header>
20259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } >/dev/null; then
20267 if test -s conftest.err; then
20268 ac_cpp_err=$ac_c_preproc_warn_flag
20269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20276 if test -z "$ac_cpp_err"; then
20277 ac_header_preproc=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_preproc=no
20284 rm -f conftest.err conftest.$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20286 echo "${ECHO_T}$ac_header_preproc" >&6
20288 # So? What about this header?
20289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20295 ac_header_preproc=yes
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20312 ## ------------------------------------------ ##
20313 ## Report this to the AC_PACKAGE_NAME lists. ##
20314 ## ------------------------------------------ ##
20317 sed "s/^/$as_me: WARNING: /" >&2
20320 echo "$as_me:$LINENO: checking for $ac_header" >&5
20321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 eval "$as_ac_Header=\$ac_header_preproc"
20327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20332 cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20340 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20341 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20342 if test "${ac_cv_lib_z_deflate+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 ac_check_lib_save_LIBS=$LIBS
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20354 /* Override any gcc2 internal prototype to avoid an error. */
20358 /* We use char because int might match the return type of a gcc2
20359 builtin and then its argument prototype would still apply. */
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371 (eval $ac_link) 2>conftest.er1
20373 grep -v '^ *+' conftest.er1 >conftest.err
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest$ac_exeext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_cv_lib_z_deflate=yes
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_cv_lib_z_deflate=no
20398 rm -f conftest.err conftest.$ac_objext \
20399 conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20402 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20403 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20404 if test $ac_cv_lib_z_deflate = yes; then
20409 if test x$FDLIBS = x-lz; then
20410 cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_LIBZ 1
20417 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20418 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20419 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20420 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20424 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20426 # Is the header compilable?
20427 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20428 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 $ac_includes_default
20436 #include <sys/acl.h>
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440 (eval $ac_compile) 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -z "$ac_c_werror_flag"
20448 || test ! -s conftest.err'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_header_compiler=yes
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ac_header_compiler=no
20467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20469 echo "${ECHO_T}$ac_header_compiler" >&6
20471 # Is the header present?
20472 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20473 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 #include <sys/acl.h>
20482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } >/dev/null; then
20490 if test -s conftest.err; then
20491 ac_cpp_err=$ac_c_preproc_warn_flag
20492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20499 if test -z "$ac_cpp_err"; then
20500 ac_header_preproc=yes
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 ac_header_preproc=no
20507 rm -f conftest.err conftest.$ac_ext
20508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20509 echo "${ECHO_T}$ac_header_preproc" >&6
20511 # So? What about this header?
20512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20514 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20515 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20517 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20518 ac_header_preproc=yes
20521 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20522 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20524 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20526 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20528 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20530 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20532 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20535 ## ------------------------------------------ ##
20536 ## Report this to the AC_PACKAGE_NAME lists. ##
20537 ## ------------------------------------------ ##
20540 sed "s/^/$as_me: WARNING: /" >&2
20543 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20544 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20545 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 ac_cv_header_sys_acl_h=$ac_header_preproc
20550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20551 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20556 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20557 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20558 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 ac_check_lib_save_LIBS=$LIBS
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 /* Override any gcc2 internal prototype to avoid an error. */
20574 /* We use char because int might match the return type of a gcc2
20575 builtin and then its argument prototype would still apply. */
20576 char acl_get_file ();
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20587 (eval $ac_link) 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -z "$ac_c_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest$ac_exeext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_lib_acl_acl_get_file=yes
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ac_cv_lib_acl_acl_get_file=no
20614 rm -f conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20618 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20619 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20620 if test $ac_cv_lib_acl_acl_get_file = yes; then
20621 FDLIBS="-lacl $FDLIBS"
20625 if test $ac_cv_lib_acl_acl_get_file = yes; then
20626 cat >>confdefs.h <<\_ACEOF
20634 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20635 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20636 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-lpthread $LIBS"
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 /* Override any gcc2 internal prototype to avoid an error. */
20652 /* We use char because int might match the return type of a gcc2
20653 builtin and then its argument prototype would still apply. */
20654 char pthread_create ();
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
20672 { ac_try='test -z "$ac_c_werror_flag"
20673 || test ! -s conftest.err'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest$ac_exeext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_lib_pthread_pthread_create=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_cv_lib_pthread_pthread_create=no
20692 rm -f conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20696 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20697 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20698 if test $ac_cv_lib_pthread_pthread_create = yes; then
20699 PTHREAD_LIB="-lpthread"
20701 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20702 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20703 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 ac_check_lib_save_LIBS=$LIBS
20707 LIBS="-lpthreads $LIBS"
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20715 /* Override any gcc2 internal prototype to avoid an error. */
20719 /* We use char because int might match the return type of a gcc2
20720 builtin and then its argument prototype would still apply. */
20721 char pthread_create ();
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20732 (eval $ac_link) 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest$ac_exeext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_lib_pthreads_pthread_create=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_lib_pthreads_pthread_create=no
20759 rm -f conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20761 LIBS=$ac_check_lib_save_LIBS
20763 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20764 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20765 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20766 PTHREAD_LIB="-lpthreads"
20768 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20769 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20770 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 ac_check_lib_save_LIBS=$LIBS
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20782 /* Override any gcc2 internal prototype to avoid an error. */
20786 /* We use char because int might match the return type of a gcc2
20787 builtin and then its argument prototype would still apply. */
20788 char pthread_create ();
20797 rm -f conftest.$ac_objext conftest$ac_exeext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20799 (eval $ac_link) 2>conftest.er1
20801 grep -v '^ *+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } &&
20806 { ac_try='test -z "$ac_c_werror_flag"
20807 || test ! -s conftest.err'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest$ac_exeext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 ac_cv_lib_c_r_pthread_create=yes
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 ac_cv_lib_c_r_pthread_create=no
20826 rm -f conftest.err conftest.$ac_objext \
20827 conftest$ac_exeext conftest.$ac_ext
20828 LIBS=$ac_check_lib_save_LIBS
20830 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20831 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20832 if test $ac_cv_lib_c_r_pthread_create = yes; then
20833 PTHREAD_LIB="-lc_r"
20835 echo "$as_me:$LINENO: checking for pthread_create" >&5
20836 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20837 if test "${ac_cv_func_pthread_create+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 cat >conftest.$ac_ext <<_ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20848 #define pthread_create innocuous_pthread_create
20850 /* System header to define __stub macros and hopefully few prototypes,
20851 which can conflict with char pthread_create (); below.
20852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20853 <limits.h> exists even on freestanding compilers. */
20856 # include <limits.h>
20858 # include <assert.h>
20861 #undef pthread_create
20863 /* Override any gcc2 internal prototype to avoid an error. */
20868 /* We use char because int might match the return type of a gcc2
20869 builtin and then its argument prototype would still apply. */
20870 char pthread_create ();
20871 /* The GNU C library defines this for functions which it implements
20872 to always fail with ENOSYS. Some functions are actually named
20873 something starting with __ and the normal name is an alias. */
20874 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20877 char (*f) () = pthread_create;
20886 return f != pthread_create;
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893 (eval $ac_link) 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag"
20901 || test ! -s conftest.err'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest$ac_exeext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_cv_func_pthread_create=yes
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_cv_func_pthread_create=no
20920 rm -f conftest.err conftest.$ac_objext \
20921 conftest$ac_exeext conftest.$ac_ext
20923 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20924 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20937 cat >>confdefs.h <<\_ACEOF
20943 CFLAGS=${CFLAGS--O}
20944 LDFLAGS=${LDFLAGS--O}
20945 DB_LIBS="${SQL_LFLAGS}"
20947 CPPFLAGS="$CPPFLAGS"
20972 # Finally we set appropriate distribution specific
20973 # variables and defaults
20975 # PFILES are platform specific files
20976 PFILES="platforms/Makefile"
20980 hostname=`uname -n | cut -d '.' -f 1`
20981 case "$DISTNAME" in
20984 PSCMD="ps -e -o pid,comm"
20985 PFILES="${PFILES} \
20986 platforms/aix/Makefile"
20987 TAPEDRIVE="/dev/rmt0.1"
20991 PTHREAD_LIB="-lpthread -lexc"
20992 if test "${CC}" = "gcc" ; then
20999 TAPEDRIVE="/dev/nrmt0"
21002 DISTVER=`uname -a |awk '{print $3}'`
21003 TAPEDRIVE="/dev/nrmt0"
21004 PTHREAD_LIB="-pthread"
21005 CFLAGS="${CFLAGS} -pthread"
21006 PSCMD="ps -x -o pid,command"
21009 PFILES="${PFILES} \
21010 platforms/bsdi/Makefile \
21011 platforms/bsdi/bacula-fd \
21012 platforms/bsdi/bacula-sd \
21013 platforms/bsdi/bacula-dir"
21014 largefile_support="yes"
21017 DISTVER=`uname -a |awk '{print $3}'`
21018 TAPEDRIVE="/dev/nrst0"
21020 WCFLAGS="-mwindows"
21021 WLDFLAGS="-mwindows"
21025 TAPEDRIVE="/dev/nst0"
21026 PSCMD="ps -e -o pid,command"
21028 PFILES="${PFILES} \
21029 platforms/darwin/Makefile"
21032 DISTVER=`cat /etc/debian_version`
21033 TAPEDRIVE="/dev/nrst0"
21034 PSCMD="ps -e -o pid,command"
21037 DISTVER=`uname -a |awk '{print $3}'`
21038 VER=`echo $DISTVER | cut -c 1`
21039 if test x$VER = x4 ; then
21040 PTHREAD_LIB="-pthread"
21041 CFLAGS="${CFLAGS} -pthread"
21045 TAPEDRIVE="/dev/nrsa0"
21046 PSCMD="ps -x -o pid,command"
21047 PFILES="${PFILES} \
21048 platforms/freebsd/Makefile \
21049 platforms/freebsd/bacula-fd \
21050 platforms/freebsd/bacula-sd \
21051 platforms/freebsd/bacula-dir"
21052 largefile_support="yes"
21055 PSCMD="UNIX95=1 ps -e -o pid,comm"
21056 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21058 TAPEDRIVE="/dev/rmt/0hnb"
21062 TAPEDRIVE="/dev/rmt/0cbn"
21063 PSCMD="ps -e -o pid,comm"
21064 PFILES="${PFILES} \
21065 platforms/irix/Makefile \
21066 platforms/irix/bacula-fd \
21067 platforms/irix/bacula-sd \
21068 platforms/irix/bacula-dir"
21071 DISTVER=`uname -a |awk '{print $3}'`
21074 TAPEDRIVE="/dev/nrst0"
21075 PSCMD="ps -a -o pid,command"
21076 PTHREAD_LIB="-pthread"
21077 CFLAGS="${CFLAGS} -pthread"
21080 DISTVER=`uname -a |awk '{print $3}'`
21083 TAPEDRIVE="/dev/nrst0"
21084 PSCMD="ps -ax -o pid,command"
21085 PTHREAD_LIB="-pthread"
21086 CFLAGS="${CFLAGS} -pthread"
21087 PFILES="${PFILES} \
21088 platforms/openbsd/Makefile \
21089 platforms/openbsd/bacula-fd \
21090 platforms/openbsd/bacula-sd \
21091 platforms/openbsd/bacula-dir"
21094 if test -f /etc/whitebox-release ; then
21095 f=/etc/whitebox-release
21097 f=/etc/redhat-release
21099 if test `cat $f | grep release |\
21100 cut -f 3 -d ' '`x = "Enterprise"x ; then
21101 DISTVER="Enterprise "`cat $f | grep release |\
21104 DISTVER=`cat /etc/redhat-release | grep release |\
21107 TAPEDRIVE="/dev/nst0"
21108 PSCMD="ps -e -o pid,command"
21109 PFILES="${PFILES} \
21110 platforms/redhat/Makefile \
21111 platforms/redhat/bacula-fd \
21112 platforms/redhat/bacula-sd \
21113 platforms/redhat/bacula-dir \
21114 platforms/redhat/bacula.spec \
21116 hostname=`hostname -s`
21119 DISTVER=`cat /etc/mandrake-release | grep release |\
21121 TAPEDRIVE="/dev/nst0"
21122 PSCMD="ps -e -o pid,command"
21123 PFILES="${PFILES} \
21124 platforms/mandrake/Makefile \
21125 platforms/mandrake/bacula-fd \
21126 platforms/mandrake/bacula-sd \
21127 platforms/mandrake/bacula-dir \
21128 platforms/mandrake/bacula.spec \
21132 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21133 TAPEDRIVE="/dev/nst0"
21134 PSCMD="ps -e -o pid,command"
21135 PFILES="${PFILES} \
21136 platforms/gentoo/Makefile \
21137 platforms/gentoo/bacula-init \
21138 platforms/gentoo/bacula-fd \
21139 platforms/gentoo/bacula-sd \
21140 platforms/gentoo/bacula-dir"
21143 DISTVER=`cat /etc/slackware-version`
21144 TAPEDRIVE="/dev/nst0"
21145 PSCMD="ps -e -o pid,command"
21146 PFILES="${PFILES} \
21147 platforms/slackware/Makefile \
21148 platforms/slackware/rc.bacula-fd \
21149 platforms/slackware/rc.bacula-sd \
21150 platforms/slackware/rc.bacula-dir\
21151 platforms/slackware/functions.bacula"
21155 TAPEDRIVE="/dev/rmt/0cbn"
21156 PSCMD="ps -e -o pid,comm"
21157 PFILES="${PFILES} \
21158 platforms/solaris/Makefile \
21159 platforms/solaris/bacula-fd \
21160 platforms/solaris/bacula-sd \
21161 platforms/solaris/bacula-dir"
21162 if test x$DISTVER = x5.6 ; then
21163 cat >>confdefs.h <<\_ACEOF
21164 #define HAVE_OLD_SOCKOPT 1
21170 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21172 TAPEDRIVE="/dev/nst0"
21173 PSCMD="ps -e -o pid,command"
21174 PFILES="${PFILES} \
21175 platforms/suse/Makefile \
21176 platforms/suse/bacula-fd \
21177 platforms/suse/bacula-sd \
21178 platforms/suse/bacula-dir \
21179 platforms/suse/bacula \
21180 platforms/suse/bacula.spec"
21185 TAPEDRIVE="/dev/nst0"
21186 PSCMD="ps -e -o pid,command"
21187 PFILES="${PFILES} \
21188 platforms/suse/Makefile \
21189 platforms/suse/bacula-fd \
21190 platforms/suse/bacula-sd \
21191 platforms/suse/bacula-dir"
21195 TAPEDRIVE="/dev/nst0"
21198 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21204 LIBS="$PTHREAD_LIB $LIBS"
21206 cat >>confdefs.h <<_ACEOF
21210 cat >>confdefs.h <<_ACEOF
21221 MCOMMON=./autoconf/Make.common
21224 if test "x${subsysdir}" = "x${sbindir}" ; then
21227 echo "You have set both --sbindir and --with-subsys-dir"
21228 echo " equal to: ${subsysdir} "
21229 echo "This is not permitted. Please reconfigure."
21231 echo "Aborting configuration ..."
21237 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21238 ac_config_commands="$ac_config_commands default"
21239 cat >confcache <<\_ACEOF
21240 # This file is a shell script that caches the results of configure
21241 # tests run on this system so they can be shared between configure
21242 # scripts and configure runs, see configure's option --config-cache.
21243 # It is not useful on other systems. If it contains results you don't
21244 # want to keep, you may remove or edit it.
21246 # config.status only pays attention to the cache file if you give it
21247 # the --recheck option to rerun configure.
21249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21251 # following values.
21255 # The following way of writing the cache mishandles newlines in values,
21256 # but we know of no workaround that is simple, portable, and efficient.
21257 # So, don't put newlines in cache variables' values.
21258 # Ultrix sh set writes to stderr and can't be redirected directly,
21259 # and sets the high bit in the cache file unless we assign to the vars.
21262 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21264 # `set' does not quote correctly, so add quotes (double-quote
21265 # substitution turns \\\\ into \\, and sed turns \\ into \).
21268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21271 # `set' quotes correctly as required by POSIX, so do not add quotes.
21273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21282 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21284 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21285 if test -w $cache_file; then
21286 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21287 cat confcache >$cache_file
21289 echo "not updating unwritable cache $cache_file"
21294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21295 # Let make expand exec_prefix.
21296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21300 # trailing colons and then remove the whole line if VPATH becomes empty
21301 # (actually we leave an empty line to preserve line numbers).
21302 if test "x$srcdir" = x.; then
21303 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21304 s/:*\$(srcdir):*/:/;
21305 s/:*\${srcdir}:*/:/;
21307 s/^\([^=]*=[ ]*\):*/\1/;
21313 DEFS=-DHAVE_CONFIG_H
21317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21318 # 1. Remove the extension, and $U if already installed.
21319 ac_i=`echo "$ac_i" |
21320 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21322 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21323 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21325 LIBOBJS=$ac_libobjs
21327 LTLIBOBJS=$ac_ltlibobjs
21331 : ${CONFIG_STATUS=./config.status}
21332 ac_clean_files_save=$ac_clean_files
21333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21334 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21335 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21336 cat >$CONFIG_STATUS <<_ACEOF
21338 # Generated by $as_me.
21339 # Run this file to recreate the current configuration.
21340 # Compiler output produced by configure, useful for debugging
21341 # configure, is in config.log if it exists.
21344 ac_cs_recheck=false
21346 SHELL=\${CONFIG_SHELL-$SHELL}
21349 cat >>$CONFIG_STATUS <<\_ACEOF
21350 ## --------------------- ##
21351 ## M4sh Initialization. ##
21352 ## --------------------- ##
21354 # Be Bourne compatible
21355 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21358 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21359 # is contrary to our usage. Disable this feature.
21360 alias -g '${1+"$@"}'='"$@"'
21361 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21364 DUALCASE=1; export DUALCASE # for MKS sh
21366 # Support unset when possible.
21367 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21374 # Work around bugs in pre-3.0 UWIN ksh.
21375 $as_unset ENV MAIL MAILPATH
21382 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21384 LC_TELEPHONE LC_TIME
21386 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21387 eval $as_var=C; export $as_var
21393 # Required to use basename.
21394 if expr a : '\(a\)' >/dev/null 2>&1; then
21400 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21401 as_basename=basename
21407 # Name of the executable.
21408 as_me=`$as_basename "$0" ||
21409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21410 X"$0" : 'X\(//\)$' \| \
21411 X"$0" : 'X\(/\)$' \| \
21412 . : '\(.\)' 2>/dev/null ||
21414 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21415 /^X\/\(\/\/\)$/{ s//\1/; q; }
21416 /^X\/\(\/\).*/{ s//\1/; q; }
21420 # PATH needs CR, and LINENO needs CR and PATH.
21421 # Avoid depending upon Character Ranges.
21422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21425 as_cr_digits='0123456789'
21426 as_cr_alnum=$as_cr_Letters$as_cr_digits
21428 # The user is always right.
21429 if test "${PATH_SEPARATOR+set}" != set; then
21430 echo "#! /bin/sh" >conf$$.sh
21431 echo "exit 0" >>conf$$.sh
21433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21442 as_lineno_1=$LINENO
21443 as_lineno_2=$LINENO
21444 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21445 test "x$as_lineno_1" != "x$as_lineno_2" &&
21446 test "x$as_lineno_3" = "x$as_lineno_2" || {
21447 # Find who we are. Look in the path if we contain no path at all
21450 *[\\/]* ) as_myself=$0 ;;
21451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 for as_dir in $PATH
21455 test -z "$as_dir" && as_dir=.
21456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21461 # We did not find ourselves, most probably we were run as `sh COMMAND'
21462 # in which case we are not to be found in the path.
21463 if test "x$as_myself" = x; then
21466 if test ! -f "$as_myself"; then
21467 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21468 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21469 { (exit 1); exit 1; }; }
21471 case $CONFIG_SHELL in
21473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21474 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21477 test -z "$as_dir" && as_dir=.
21478 for as_base in sh bash ksh sh5; do
21481 if ("$as_dir/$as_base" -c '
21482 as_lineno_1=$LINENO
21483 as_lineno_2=$LINENO
21484 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21485 test "x$as_lineno_1" != "x$as_lineno_2" &&
21486 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21487 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21488 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21489 CONFIG_SHELL=$as_dir/$as_base
21490 export CONFIG_SHELL
21491 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21499 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21500 # uniformly replaced by the line number. The first 'sed' inserts a
21501 # line-number line before each line; the second 'sed' does the real
21502 # work. The second script uses 'N' to pair each line-number line
21503 # with the numbered line, and appends trailing '-' during
21504 # substitution so that $LINENO is not a special case at line end.
21505 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21506 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21507 sed '=' <$as_myself |
21512 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21515 s,^['$as_cr_digits']*\n,,
21516 ' >$as_me.lineno &&
21517 chmod +x $as_me.lineno ||
21518 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21519 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21520 { (exit 1); exit 1; }; }
21522 # Don't try to exec as it changes $[0], causing all sort of problems
21523 # (the dirname of $[0] is not the place where we might find the
21524 # original and so on. Autoconf is especially sensible to this).
21526 # Exit status is that of the last command.
21531 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21532 *c*,-n*) ECHO_N= ECHO_C='
21534 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21535 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21538 if expr a : '\(a\)' >/dev/null 2>&1; then
21544 rm -f conf$$ conf$$.exe conf$$.file
21546 if ln -s conf$$.file conf$$ 2>/dev/null; then
21547 # We could just check for DJGPP; but this test a) works b) is more generic
21548 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21549 if test -f conf$$.exe; then
21550 # Don't use ln at all; we don't have any links
21555 elif ln conf$$.file conf$$ 2>/dev/null; then
21560 rm -f conf$$ conf$$.exe conf$$.file
21562 if mkdir -p . 2>/dev/null; then
21565 test -d ./-p && rmdir ./-p
21569 as_executable_p="test -f"
21571 # Sed expression to map a string onto a valid CPP name.
21572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21574 # Sed expression to map a string onto a valid variable name.
21575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21579 # We need space, tab and new line, in precisely that order.
21589 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21590 # report actual input values of CONFIG_FILES etc. instead of their
21591 # values after options handling. Logging --version etc. is OK.
21595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21596 ## Running $as_me. ##
21601 This file was extended by $as_me, which was
21602 generated by GNU Autoconf 2.59. Invocation command line was
21604 CONFIG_FILES = $CONFIG_FILES
21605 CONFIG_HEADERS = $CONFIG_HEADERS
21606 CONFIG_LINKS = $CONFIG_LINKS
21607 CONFIG_COMMANDS = $CONFIG_COMMANDS
21611 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21615 # Files that config.status was made for.
21616 if test -n "$ac_config_files"; then
21617 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21620 if test -n "$ac_config_headers"; then
21621 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21624 if test -n "$ac_config_links"; then
21625 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21628 if test -n "$ac_config_commands"; then
21629 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21632 cat >>$CONFIG_STATUS <<\_ACEOF
21635 \`$as_me' instantiates files from templates according to the
21636 current configuration.
21638 Usage: $0 [OPTIONS] [FILE]...
21640 -h, --help print this help, then exit
21641 -V, --version print version number, then exit
21642 -q, --quiet do not print progress messages
21643 -d, --debug don't remove temporary files
21644 --recheck update $as_me by reconfiguring in the same conditions
21645 --file=FILE[:TEMPLATE]
21646 instantiate the configuration file FILE
21647 --header=FILE[:TEMPLATE]
21648 instantiate the configuration header FILE
21650 Configuration files:
21653 Configuration headers:
21656 Configuration commands:
21659 Report bugs to <bug-autoconf@gnu.org>."
21662 cat >>$CONFIG_STATUS <<_ACEOF
21665 configured by $0, generated by GNU Autoconf 2.59,
21666 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21668 Copyright (C) 2003 Free Software Foundation, Inc.
21669 This config.status script is free software; the Free Software Foundation
21670 gives unlimited permission to copy, distribute and modify it."
21675 cat >>$CONFIG_STATUS <<\_ACEOF
21676 # If no file are specified by the user, then we need to provide default
21677 # value. By we need to know if files were specified by the user.
21683 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21684 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21692 *) # This is not an option, so the user has probably given explicit
21695 ac_need_defaults=false;;
21699 # Handling of the options.
21701 cat >>$CONFIG_STATUS <<\_ACEOF
21702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21704 --version | --vers* | -V )
21705 echo "$ac_cs_version"; exit 0 ;;
21707 # Conflict between --help and --header
21708 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21709 Try \`$0 --help' for more information." >&5
21710 echo "$as_me: error: ambiguous option: $1
21711 Try \`$0 --help' for more information." >&2;}
21712 { (exit 1); exit 1; }; };;
21713 --help | --hel | -h )
21714 echo "$ac_cs_usage"; exit 0 ;;
21715 --debug | --d* | -d )
21717 --file | --fil | --fi | --f )
21719 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21720 ac_need_defaults=false;;
21721 --header | --heade | --head | --hea )
21723 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21724 ac_need_defaults=false;;
21725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21729 # This is an error.
21730 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21731 Try \`$0 --help' for more information." >&5
21732 echo "$as_me: error: unrecognized option: $1
21733 Try \`$0 --help' for more information." >&2;}
21734 { (exit 1); exit 1; }; } ;;
21736 *) ac_config_targets="$ac_config_targets $1" ;;
21742 ac_configure_extra_args=
21744 if $ac_cs_silent; then
21746 ac_configure_extra_args="$ac_configure_extra_args --silent"
21750 cat >>$CONFIG_STATUS <<_ACEOF
21751 if \$ac_cs_recheck; then
21752 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21753 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21762 cat >>$CONFIG_STATUS <<\_ACEOF
21763 for ac_config_target in $ac_config_targets
21765 case "$ac_config_target" in
21766 # Handling of arguments.
21767 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21768 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21769 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21770 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21771 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21772 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21773 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21774 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21775 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21776 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21777 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21778 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21779 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21780 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21781 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21782 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21783 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21784 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21785 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21786 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21787 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21788 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21789 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21790 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21791 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21792 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21793 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21794 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21795 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21796 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21797 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21798 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21799 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21800 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21801 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21802 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21803 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21804 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21805 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21806 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21807 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21808 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21809 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21810 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21811 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21812 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21813 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21814 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21815 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21816 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21817 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21818 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21819 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21820 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21821 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21822 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21823 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21824 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21825 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21826 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21827 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21828 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21829 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21830 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21831 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21832 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21833 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21834 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21835 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21836 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21837 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21838 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21839 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21840 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21841 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21842 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21843 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21844 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21845 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21846 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21847 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21848 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21849 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21850 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21851 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21852 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21853 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21854 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21855 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21856 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21857 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21858 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21859 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21860 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21861 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21862 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
21863 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
21864 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21865 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21866 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21867 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21868 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21869 { (exit 1); exit 1; }; };;
21873 # If the user did not use the arguments to specify the items to instantiate,
21874 # then the envvar interface is used. Set only those that are not.
21875 # We use the long form for the default assignment because of an extremely
21876 # bizarre bug on SunOS 4.1.3.
21877 if $ac_need_defaults; then
21878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21883 # Have a temporary directory for convenience. Make it in the build tree
21884 # simply because there is no reason to put it here, and in addition,
21885 # creating and moving files from /tmp can sometimes cause problems.
21886 # Create a temporary directory, and hook for its removal unless debugging.
21889 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21890 trap '{ (exit 1); exit 1; }' 1 2 13 15
21893 # Create a (secure) tmp directory for tmp files.
21896 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21897 test -n "$tmp" && test -d "$tmp"
21900 tmp=./confstat$$-$RANDOM
21901 (umask 077 && mkdir $tmp)
21904 echo "$me: cannot create a temporary directory in ." >&2
21905 { (exit 1); exit 1; }
21910 cat >>$CONFIG_STATUS <<_ACEOF
21913 # CONFIG_FILES section.
21916 # No need to generate the scripts if there are no CONFIG_FILES.
21917 # This happens for instance when ./config.status config.h
21918 if test -n "\$CONFIG_FILES"; then
21919 # Protect against being on the right side of a sed subst in config.status.
21920 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21921 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21922 s,@SHELL@,$SHELL,;t t
21923 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21924 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21925 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21926 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21927 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21928 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21929 s,@exec_prefix@,$exec_prefix,;t t
21930 s,@prefix@,$prefix,;t t
21931 s,@program_transform_name@,$program_transform_name,;t t
21932 s,@bindir@,$bindir,;t t
21933 s,@sbindir@,$sbindir,;t t
21934 s,@libexecdir@,$libexecdir,;t t
21935 s,@datadir@,$datadir,;t t
21936 s,@sysconfdir@,$sysconfdir,;t t
21937 s,@sharedstatedir@,$sharedstatedir,;t t
21938 s,@localstatedir@,$localstatedir,;t t
21939 s,@libdir@,$libdir,;t t
21940 s,@includedir@,$includedir,;t t
21941 s,@oldincludedir@,$oldincludedir,;t t
21942 s,@infodir@,$infodir,;t t
21943 s,@mandir@,$mandir,;t t
21944 s,@build_alias@,$build_alias,;t t
21945 s,@host_alias@,$host_alias,;t t
21946 s,@target_alias@,$target_alias,;t t
21947 s,@DEFS@,$DEFS,;t t
21948 s,@ECHO_C@,$ECHO_C,;t t
21949 s,@ECHO_N@,$ECHO_N,;t t
21950 s,@ECHO_T@,$ECHO_T,;t t
21951 s,@LIBS@,$LIBS,;t t
21952 s,@BUILD_DIR@,$BUILD_DIR,;t t
21953 s,@TRUEPRG@,$TRUEPRG,;t t
21954 s,@FALSEPRG@,$FALSEPRG,;t t
21955 s,@VERSION@,$VERSION,;t t
21956 s,@DATE@,$DATE,;t t
21957 s,@LSMDATE@,$LSMDATE,;t t
21959 s,@CFLAGS@,$CFLAGS,;t t
21960 s,@LDFLAGS@,$LDFLAGS,;t t
21961 s,@CPPFLAGS@,$CPPFLAGS,;t t
21962 s,@ac_ct_CC@,$ac_ct_CC,;t t
21963 s,@EXEEXT@,$EXEEXT,;t t
21964 s,@OBJEXT@,$OBJEXT,;t t
21966 s,@CXXFLAGS@,$CXXFLAGS,;t t
21967 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21969 s,@EGREP@,$EGREP,;t t
21970 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21971 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21972 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21973 s,@RANLIB@,$RANLIB,;t t
21974 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21979 s,@ECHO@,$ECHO,;t t
21983 s,@OPENSSL@,$OPENSSL,;t t
21985 s,@PKGCONFIG@,$PKGCONFIG,;t t
21986 s,@WXCONFIG@,$WXCONFIG,;t t
21987 s,@CDRECORD@,$CDRECORD,;t t
21988 s,@PIDOF@,$PIDOF,;t t
21990 s,@ARFLAGS@,$ARFLAGS,;t t
21991 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21992 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21993 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21994 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21995 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21996 s,@build@,$build,;t t
21997 s,@build_cpu@,$build_cpu,;t t
21998 s,@build_vendor@,$build_vendor,;t t
21999 s,@build_os@,$build_os,;t t
22000 s,@host@,$host,;t t
22001 s,@host_cpu@,$host_cpu,;t t
22002 s,@host_vendor@,$host_vendor,;t t
22003 s,@host_os@,$host_os,;t t
22004 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22005 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22006 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22007 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22008 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22009 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22010 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22011 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22012 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22013 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22014 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22015 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22016 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22017 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22018 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22019 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22020 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22021 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22022 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22023 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22024 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22025 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22026 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22027 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22028 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22029 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22030 s,@MSGFMT@,$MSGFMT,;t t
22031 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22032 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22033 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22034 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22035 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22036 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22037 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22038 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22039 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22040 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22041 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22042 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22043 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22044 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22045 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22046 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22047 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22048 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22049 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22050 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22051 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22052 s,@GNOME_DIR@,$GNOME_DIR,;t t
22053 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22054 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22055 s,@WX_DIR@,$WX_DIR,;t t
22056 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22057 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22058 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22059 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22060 s,@STATIC_FD@,$STATIC_FD,;t t
22061 s,@STATIC_SD@,$STATIC_SD,;t t
22062 s,@STATIC_DIR@,$STATIC_DIR,;t t
22063 s,@STATIC_CONS@,$STATIC_CONS,;t t
22064 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22065 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22066 s,@ALL_DIRS@,$ALL_DIRS,;t t
22067 s,@CONS_INC@,$CONS_INC,;t t
22068 s,@CONS_OBJ@,$CONS_OBJ,;t t
22069 s,@CONS_SRC@,$CONS_SRC,;t t
22070 s,@CONS_LIBS@,$CONS_LIBS,;t t
22071 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22072 s,@READLINE_SRC@,$READLINE_SRC,;t t
22073 s,@CDSTL@,$CDSTL,;t t
22074 s,@working_dir@,$working_dir,;t t
22075 s,@scriptdir@,$scriptdir,;t t
22076 s,@dump_email@,$dump_email,;t t
22077 s,@job_email@,$job_email,;t t
22078 s,@smtp_host@,$smtp_host,;t t
22079 s,@piddir@,$piddir,;t t
22080 s,@subsysdir@,$subsysdir,;t t
22081 s,@baseport@,$baseport,;t t
22082 s,@dir_port@,$dir_port,;t t
22083 s,@fd_port@,$fd_port,;t t
22084 s,@sd_port@,$sd_port,;t t
22085 s,@dir_password@,$dir_password,;t t
22086 s,@fd_password@,$fd_password,;t t
22087 s,@sd_password@,$sd_password,;t t
22088 s,@mon_dir_password@,$mon_dir_password,;t t
22089 s,@mon_fd_password@,$mon_fd_password,;t t
22090 s,@mon_sd_password@,$mon_sd_password,;t t
22091 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22092 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22093 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22094 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22095 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22096 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22097 s,@dir_user@,$dir_user,;t t
22098 s,@dir_group@,$dir_group,;t t
22099 s,@sd_user@,$sd_user,;t t
22100 s,@sd_group@,$sd_group,;t t
22101 s,@fd_user@,$fd_user,;t t
22102 s,@fd_group@,$fd_group,;t t
22103 s,@SBINPERM@,$SBINPERM,;t t
22104 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22105 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22106 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22107 s,@cats@,$cats,;t t
22108 s,@DB_NAME@,$DB_NAME,;t t
22109 s,@GETCONF@,$GETCONF,;t t
22110 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22111 s,@X_CFLAGS@,$X_CFLAGS,;t t
22112 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22113 s,@X_LIBS@,$X_LIBS,;t t
22114 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22115 s,@LIBOBJS@,$LIBOBJS,;t t
22116 s,@ALLOCA@,$ALLOCA,;t t
22117 s,@FDLIBS@,$FDLIBS,;t t
22118 s,@DEBUG@,$DEBUG,;t t
22119 s,@DINCLUDE@,$DINCLUDE,;t t
22120 s,@DLIB@,$DLIB,;t t
22121 s,@DB_LIBS@,$DB_LIBS,;t t
22122 s,@WCFLAGS@,$WCFLAGS,;t t
22123 s,@WLDFLAGS@,$WLDFLAGS,;t t
22124 s,@OBJLIST@,$OBJLIST,;t t
22125 s,@hostname@,$hostname,;t t
22126 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22127 s,@PSCMD@,$PSCMD,;t t
22128 s,@WIN32@,$WIN32,;t t
22129 s,@MACOSX@,$MACOSX,;t t
22130 s,@DISTNAME@,$DISTNAME,;t t
22131 s,@DISTVER@,$DISTVER,;t t
22132 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22133 /@MCOMMON@/r $MCOMMON
22139 cat >>$CONFIG_STATUS <<\_ACEOF
22140 # Split the substitutions into bite-sized pieces for seds with
22141 # small command number limits, like on Digital OSF/1 and HP-UX.
22142 ac_max_sed_lines=48
22143 ac_sed_frag=1 # Number of current file.
22144 ac_beg=1 # First line for current file.
22145 ac_end=$ac_max_sed_lines # Line after last line for current file.
22148 while $ac_more_lines; do
22149 if test $ac_beg -gt 1; then
22150 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22152 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22154 if test ! -s $tmp/subs.frag; then
22155 ac_more_lines=false
22157 # The purpose of the label and of the branching condition is to
22158 # speed up the sed processing (if there are no `@' at all, there
22159 # is no need to browse any of the substitutions).
22160 # These are the two extra sed commands mentioned above.
22162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22163 if test -z "$ac_sed_cmds"; then
22164 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22166 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22168 ac_sed_frag=`expr $ac_sed_frag + 1`
22170 ac_end=`expr $ac_end + $ac_max_sed_lines`
22173 if test -z "$ac_sed_cmds"; then
22176 fi # test -n "$CONFIG_FILES"
22179 cat >>$CONFIG_STATUS <<\_ACEOF
22180 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22183 - | *:- | *:-:* ) # input from stdin
22185 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22186 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22187 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22189 * ) ac_file_in=$ac_file.in ;;
22192 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22193 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22195 X"$ac_file" : 'X\(//\)[^/]' \| \
22196 X"$ac_file" : 'X\(//\)$' \| \
22197 X"$ac_file" : 'X\(/\)' \| \
22198 . : '\(.\)' 2>/dev/null ||
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22202 /^X\(\/\/\)$/{ s//\1/; q; }
22203 /^X\(\/\).*/{ s//\1/; q; }
22205 { if $as_mkdir_p; then
22210 while test ! -d "$as_dir"; do
22211 as_dirs="$as_dir $as_dirs"
22212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22214 X"$as_dir" : 'X\(//\)[^/]' \| \
22215 X"$as_dir" : 'X\(//\)$' \| \
22216 X"$as_dir" : 'X\(/\)' \| \
22217 . : '\(.\)' 2>/dev/null ||
22219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22221 /^X\(\/\/\)$/{ s//\1/; q; }
22222 /^X\(\/\).*/{ s//\1/; q; }
22225 test ! -n "$as_dirs" || mkdir $as_dirs
22226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22228 { (exit 1); exit 1; }; }; }
22232 if test "$ac_dir" != .; then
22233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22234 # A "../" for each directory in $ac_dir_suffix.
22235 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22237 ac_dir_suffix= ac_top_builddir=
22241 .) # No --srcdir option. We are building in place.
22243 if test -z "$ac_top_builddir"; then
22246 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22248 [\\/]* | ?:[\\/]* ) # Absolute path.
22249 ac_srcdir=$srcdir$ac_dir_suffix;
22250 ac_top_srcdir=$srcdir ;;
22251 *) # Relative path.
22252 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22253 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22256 # Do not use `cd foo && pwd` to compute absolute paths, because
22257 # the directories may not exist.
22259 .) ac_abs_builddir="$ac_dir";;
22262 .) ac_abs_builddir=`pwd`;;
22263 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22264 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22267 case $ac_abs_builddir in
22268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22270 case ${ac_top_builddir}. in
22271 .) ac_abs_top_builddir=$ac_abs_builddir;;
22272 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22273 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22276 case $ac_abs_builddir in
22277 .) ac_abs_srcdir=$ac_srcdir;;
22280 .) ac_abs_srcdir=$ac_abs_builddir;;
22281 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22282 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22285 case $ac_abs_builddir in
22286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22288 case $ac_top_srcdir in
22289 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22290 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22291 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22298 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22301 if test x"$ac_file" != x-; then
22302 { echo "$as_me:$LINENO: creating $ac_file" >&5
22303 echo "$as_me: creating $ac_file" >&6;}
22306 # Let's still pretend it is `configure' which instantiates (i.e., don't
22307 # use $as_me), people would be surprised to read:
22308 # /* config.h. Generated by config.status. */
22309 if test x"$ac_file" = x-; then
22312 configure_input="$ac_file. "
22314 configure_input=$configure_input"Generated from `echo $ac_file_in |
22315 sed 's,.*/,,'` by configure."
22317 # First look for the input files in the build tree, otherwise in the
22319 ac_file_inputs=`IFS=:
22320 for f in $ac_file_in; do
22322 -) echo $tmp/stdin ;;
22324 # Absolute (can't be DOS-style, as IFS=:)
22325 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22326 echo "$as_me: error: cannot find input file: $f" >&2;}
22327 { (exit 1); exit 1; }; }
22330 if test -f "$f"; then
22333 elif test -f "$srcdir/$f"; then
22338 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22339 echo "$as_me: error: cannot find input file: $f" >&2;}
22340 { (exit 1); exit 1; }; }
22343 done` || { (exit 1); exit 1; }
22345 cat >>$CONFIG_STATUS <<_ACEOF
22349 cat >>$CONFIG_STATUS <<\_ACEOF
22351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22352 s,@configure_input@,$configure_input,;t t
22353 s,@srcdir@,$ac_srcdir,;t t
22354 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22355 s,@top_srcdir@,$ac_top_srcdir,;t t
22356 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22357 s,@builddir@,$ac_builddir,;t t
22358 s,@abs_builddir@,$ac_abs_builddir,;t t
22359 s,@top_builddir@,$ac_top_builddir,;t t
22360 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22361 s,@INSTALL@,$ac_INSTALL,;t t
22362 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22364 if test x"$ac_file" != x-; then
22365 mv $tmp/out $ac_file
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22376 # CONFIG_HEADER section.
22379 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22380 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22382 # ac_d sets the value in "#define NAME VALUE" lines.
22383 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22384 ac_dB='[ ].*$,\1#\2'
22387 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22388 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22389 ac_uB='$,\1#\2define\3'
22393 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22396 - | *:- | *:-:* ) # input from stdin
22398 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22400 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22402 * ) ac_file_in=$ac_file.in ;;
22405 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22406 echo "$as_me: creating $ac_file" >&6;}
22408 # First look for the input files in the build tree, otherwise in the
22410 ac_file_inputs=`IFS=:
22411 for f in $ac_file_in; do
22413 -) echo $tmp/stdin ;;
22415 # Absolute (can't be DOS-style, as IFS=:)
22416 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22417 echo "$as_me: error: cannot find input file: $f" >&2;}
22418 { (exit 1); exit 1; }; }
22419 # Do quote $f, to prevent DOS paths from being IFS'd.
22422 if test -f "$f"; then
22425 elif test -f "$srcdir/$f"; then
22430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22431 echo "$as_me: error: cannot find input file: $f" >&2;}
22432 { (exit 1); exit 1; }; }
22435 done` || { (exit 1); exit 1; }
22436 # Remove the trailing spaces.
22437 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22441 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22442 # `conftest.undefs', that substitutes the proper values into
22443 # config.h.in to produce config.h. The first handles `#define'
22444 # templates, and the second `#undef' templates.
22445 # And first: Protect against being on the right side of a sed subst in
22446 # config.status. Protect against being in an unquoted here document
22447 # in config.status.
22448 rm -f conftest.defines conftest.undefs
22449 # Using a here document instead of a string reduces the quoting nightmare.
22450 # Putting comments in sed scripts is not portable.
22452 # `end' is used to avoid that the second main sed command (meant for
22453 # 0-ary CPP macros) applies to n-ary macro definitions.
22454 # See the Autoconf documentation for `clear'.
22455 cat >confdef2sed.sed <<\_ACEOF
22460 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22462 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22465 # If some macros were called several times there might be several times
22466 # the same #defines, which is useless. Nevertheless, we may not want to
22467 # sort them, since we want the *last* AC-DEFINE to be honored.
22468 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22469 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22470 rm -f confdef2sed.sed
22472 # This sed command replaces #undef with comments. This is necessary, for
22473 # example, in the case of _POSIX_SOURCE, which is predefined and required
22474 # on some systems where configure will not decide to define it.
22475 cat >>conftest.undefs <<\_ACEOF
22476 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22479 # Break up conftest.defines because some shells have a limit on the size
22480 # of here documents, and old seds have small limits too (100 cmds).
22481 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22482 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22483 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22484 echo ' :' >>$CONFIG_STATUS
22485 rm -f conftest.tail
22486 while grep . conftest.defines >/dev/null
22488 # Write a limited-size here document to $tmp/defines.sed.
22489 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22490 # Speed up: don't consider the non `#define' lines.
22491 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22492 # Work around the forget-to-reset-the-flag bug.
22493 echo 't clr' >>$CONFIG_STATUS
22494 echo ': clr' >>$CONFIG_STATUS
22495 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22497 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22499 mv $tmp/out $tmp/in
22501 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22502 rm -f conftest.defines
22503 mv conftest.tail conftest.defines
22505 rm -f conftest.defines
22506 echo ' fi # grep' >>$CONFIG_STATUS
22507 echo >>$CONFIG_STATUS
22509 # Break up conftest.undefs because some shells have a limit on the size
22510 # of here documents, and old seds have small limits too (100 cmds).
22511 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22512 rm -f conftest.tail
22513 while grep . conftest.undefs >/dev/null
22515 # Write a limited-size here document to $tmp/undefs.sed.
22516 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22517 # Speed up: don't consider the non `#undef'
22518 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22519 # Work around the forget-to-reset-the-flag bug.
22520 echo 't clr' >>$CONFIG_STATUS
22521 echo ': clr' >>$CONFIG_STATUS
22522 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22524 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22526 mv $tmp/out $tmp/in
22528 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22529 rm -f conftest.undefs
22530 mv conftest.tail conftest.undefs
22532 rm -f conftest.undefs
22534 cat >>$CONFIG_STATUS <<\_ACEOF
22535 # Let's still pretend it is `configure' which instantiates (i.e., don't
22536 # use $as_me), people would be surprised to read:
22537 # /* config.h. Generated by config.status. */
22538 if test x"$ac_file" = x-; then
22539 echo "/* Generated by configure. */" >$tmp/config.h
22541 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22543 cat $tmp/in >>$tmp/config.h
22545 if test x"$ac_file" != x-; then
22546 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22547 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22548 echo "$as_me: $ac_file is unchanged" >&6;}
22550 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22552 X"$ac_file" : 'X\(//\)[^/]' \| \
22553 X"$ac_file" : 'X\(//\)$' \| \
22554 X"$ac_file" : 'X\(/\)' \| \
22555 . : '\(.\)' 2>/dev/null ||
22557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22559 /^X\(\/\/\)$/{ s//\1/; q; }
22560 /^X\(\/\).*/{ s//\1/; q; }
22562 { if $as_mkdir_p; then
22567 while test ! -d "$as_dir"; do
22568 as_dirs="$as_dir $as_dirs"
22569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571 X"$as_dir" : 'X\(//\)[^/]' \| \
22572 X"$as_dir" : 'X\(//\)$' \| \
22573 X"$as_dir" : 'X\(/\)' \| \
22574 . : '\(.\)' 2>/dev/null ||
22576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22578 /^X\(\/\/\)$/{ s//\1/; q; }
22579 /^X\(\/\).*/{ s//\1/; q; }
22582 test ! -n "$as_dirs" || mkdir $as_dirs
22583 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22585 { (exit 1); exit 1; }; }; }
22588 mv $tmp/config.h $ac_file
22592 rm -f $tmp/config.h
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22599 # CONFIG_COMMANDS section.
22601 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22602 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22603 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22604 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22605 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$ac_dest" : 'X\(//\)[^/]' \| \
22607 X"$ac_dest" : 'X\(//\)$' \| \
22608 X"$ac_dest" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22616 { if $as_mkdir_p; then
22621 while test ! -d "$as_dir"; do
22622 as_dirs="$as_dir $as_dirs"
22623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22625 X"$as_dir" : 'X\(//\)[^/]' \| \
22626 X"$as_dir" : 'X\(//\)$' \| \
22627 X"$as_dir" : 'X\(/\)' \| \
22628 . : '\(.\)' 2>/dev/null ||
22630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22632 /^X\(\/\/\)$/{ s//\1/; q; }
22633 /^X\(\/\).*/{ s//\1/; q; }
22636 test ! -n "$as_dirs" || mkdir $as_dirs
22637 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22638 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22639 { (exit 1); exit 1; }; }; }
22643 if test "$ac_dir" != .; then
22644 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22645 # A "../" for each directory in $ac_dir_suffix.
22646 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22648 ac_dir_suffix= ac_top_builddir=
22652 .) # No --srcdir option. We are building in place.
22654 if test -z "$ac_top_builddir"; then
22657 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22659 [\\/]* | ?:[\\/]* ) # Absolute path.
22660 ac_srcdir=$srcdir$ac_dir_suffix;
22661 ac_top_srcdir=$srcdir ;;
22662 *) # Relative path.
22663 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22664 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22667 # Do not use `cd foo && pwd` to compute absolute paths, because
22668 # the directories may not exist.
22670 .) ac_abs_builddir="$ac_dir";;
22673 .) ac_abs_builddir=`pwd`;;
22674 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22675 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22678 case $ac_abs_builddir in
22679 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22681 case ${ac_top_builddir}. in
22682 .) ac_abs_top_builddir=$ac_abs_builddir;;
22683 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22684 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22687 case $ac_abs_builddir in
22688 .) ac_abs_srcdir=$ac_srcdir;;
22691 .) ac_abs_srcdir=$ac_abs_builddir;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22693 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22699 case $ac_top_srcdir in
22700 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22702 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22707 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22708 echo "$as_me: executing $ac_dest commands" >&6;}
22710 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22716 cat >>$CONFIG_STATUS <<\_ACEOF
22718 { (exit 0); exit 0; }
22720 chmod +x $CONFIG_STATUS
22721 ac_clean_files=$ac_clean_files_save
22724 # configure is writing to config.log, and then calls config.status.
22725 # config.status does its own redirection, appending to config.log.
22726 # Unfortunately, on DOS this fails, as config.log is still kept open
22727 # by configure, so config.status won't be able to write to it; its
22728 # output is simply discarded. So we exec the FD to /dev/null,
22729 # effectively closing config.log, so it can be properly (re)opened and
22730 # appended to by config.status. When coming back to configure, we
22731 # need to make the FD available again.
22732 if test "$no_create" != yes; then
22734 ac_config_status_args=
22735 test "$silent" = yes &&
22736 ac_config_status_args="$ac_config_status_args --quiet"
22738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22741 # would make configure fail if this is the last instruction.
22742 $ac_cs_success || { (exit 1); exit 1; }
22747 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22748 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22753 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22754 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22756 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22757 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22759 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22760 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22762 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22763 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22765 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22766 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22768 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22769 chmod 755 $c/sqlite
22772 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22773 largefile_support="yes"
22777 # A whole lot of hand springs to get the compiler version.
22778 # This is because gcc changed the output in version 3.0
22780 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22781 if test "x${CCVERSION}" = "x" ; then
22782 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22784 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22785 if test x"${CXXVERSION}" = x ; then
22786 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22789 if test "x${subsysdir}" = "x${sbindir}" ; then
22792 echo "You have set --sbindir and --with-subsys-dir"
22793 echo " both equal to: ${subsysdir} "
22794 echo " This is not permitted. Please reconfigure."
22796 echo "Aborting configuration ..."
22802 if test "x${db_name}" = "xInternal" ; then
22805 echo "You have not specified either --enable-client-only or one of the"
22806 echo " supported databases: MySQL, PostgreSQL, or SQLite".
22807 echo " This is not permitted. Please reconfigure."
22809 echo "Aborting the configuration ..."
22816 Configuration on `date`:
22818 Host: $host -- ${DISTNAME} ${DISTVER}
22819 Bacula version: ${VERSION} (${DATE})
22820 Source code location: ${srcdir}
22821 Install binaries: ${sbindir}
22822 Install config files: ${sysconfdir}
22823 Scripts directory: ${scriptdir}
22824 Working directory: ${working_dir}
22825 PID directory: ${piddir}
22826 Subsys directory: ${subsysdir}
22827 C Compiler: ${CC} ${CCVERSION}
22828 C++ Compiler: ${CXX} ${CXXVERSION}
22829 Compiler flags: ${WCFLAGS} ${CFLAGS}
22830 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22832 Statically Linked Tools: ${support_static_tools}
22833 Statically Linked FD: ${support_static_fd}
22834 Statically Linked SD: ${support_static_sd}
22835 Statically Linked DIR: ${support_static_dir}
22836 Statically Linked CONS: ${support_static_cons}
22837 Database type: ${db_name}
22838 Database lib: ${DB_LIBS}
22840 Job Output Email: ${job_email}
22841 Traceback Email: ${dump_email}
22842 SMTP Host Address: ${smtp_host}
22844 Director Port: ${dir_port}
22845 File daemon Port: ${fd_port}
22846 Storage daemon Port: ${sd_port}
22848 Director User: ${dir_user}
22849 Director Group: ${dir_group}
22850 Storage Daemon User: ${sd_user}
22851 Storage DaemonGroup: ${sd_group}
22852 File Daemon User: ${fd_user}
22853 File Daemon Group: ${fd_group}
22855 SQL binaries Directory ${SQL_BINDIR}
22857 Large file support: $largefile_support
22858 Bacula conio support: ${got_conio} ${CONS_LIBS}
22859 readline support: ${got_readline} ${PRTREADLINE_SRC}
22860 TCP Wrappers support: ${TCPW_MSG}
22861 ZLIB support: ${have_zlib}
22862 enable-smartalloc: ${support_smartalloc}
22863 enable-gnome: ${support_gnome} ${gnome_version}
22864 enable-wx-console: ${support_wx_console}
22865 enable-tray-monitor: ${support_tray_monitor}
22866 client-only: ${build_client_only}
22867 ACL support: ${have_acl}
22874 # cweb support: ${got_cweb} ${CWEB_SRC}
22875 # gmp support: ${got_gmp} ${GMP_SRC}