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 DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS 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 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 PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC 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 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
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-gnome enable build of gnome-console GUI disabled
868 --enable-wx-console enable build of wxWidgets console disabled
869 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
870 --enable-smartalloc enable smartalloc debugging support disabled
871 --enable-static-tools enable static tape tools disabled
872 --enable-static-fd enable static File daemon disabled
873 --enable-static-sd enable static Storage daemon disabled
874 --enable-static-dir enable static Director disabled
875 --enable-static-cons enable static Console disabled
876 --enable-client-only build client (File daemon) only disabled
877 --disable-conio disable conio support enabled
879 --disable-readline disable readline support disable
881 --disable-largefile omit support for large files
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-readline=DIR specify readline library directory
888 --with-python=DIR Include Python support. DIR is the Python base
889 install directory, default is to search through
890 a number of common places for the Python files.
891 --with-tcp-wrappers=DIR enable tcpwrappers support
893 Include OpenSSL support. DIR is the OpenSSL base
894 --with-working-dir=PATH specify path of Bacula working directory
895 --with-scriptdir=PATH specify path of Bacula scripts directory
896 --with-dump-email=EMAIL dump email address
897 --with-job-email=EMAIL job output email address
898 --with-smtp-host=HOST SMTP mail host address
899 --with-pid-dir=PATH specify location of Bacula pid files
900 --with-subsys-dir=PATH specify location of Bacula subsys file
901 --with-baseport=PORT specify base port address for daemons
902 --with-dir-password=PASSWORD specify Director's password
903 --with-fd-password=PASSWORD specify Client's password
904 --with-sd-password=PASSWORD specify Storage daemon's password
905 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
906 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
907 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
908 --with-dir-user=USER specify user for Director daemon
909 --with-dir-group=GROUP specify group for Director daemon
910 --with-sd-user=USER specify user for Storage daemon
911 --with-sd-group=GROUP specify group for Storage daemon
912 --with-fd-user=USER specify user for File daemon
913 --with-fd-group=GROUP specify group for File daemon
914 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
915 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
916 base install directory, defaults to /usr/local/pgsql
918 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
919 install directory, default is to search through
920 a number of common places for the MySQL files.
922 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
923 install directory, default is to search through
924 a number of common places for the MySQL files.
926 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
927 install directory, default is to search through
928 a number of common places for the SQLite3 files.
930 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
931 install directory, default is to search through
932 a number of common places for the SQLite files.
933 --with-x use the X Window System
935 Some influential environment variables:
936 CC C compiler command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
939 nonstandard directory <lib dir>
940 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
941 headers in a nonstandard directory <include dir>
942 CXX C++ compiler command
943 CXXFLAGS C++ compiler flags
945 WXCONFIG wx-config command. On some systems, you must set it to
946 wx-config-2.6 to use wxWidgets 2.6.
947 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
955 if test "$ac_init_help" = "recursive"; then
956 # If there are subdirs, report their specific --help.
958 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959 test -d $ac_dir || continue
962 if test "$ac_dir" != .; then
963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964 # A "../" for each directory in $ac_dir_suffix.
965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
967 ac_dir_suffix= ac_top_builddir=
971 .) # No --srcdir option. We are building in place.
973 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
978 [\\/]* | ?:[\\/]* ) # Absolute path.
979 ac_srcdir=$srcdir$ac_dir_suffix;
980 ac_top_srcdir=$srcdir ;;
982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
989 .) ac_abs_builddir="$ac_dir";;
992 .) ac_abs_builddir=`pwd`;;
993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 case ${ac_top_builddir}. in
1001 .) ac_abs_top_builddir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1010 .) ac_abs_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 case $ac_top_srcdir in
1019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026 # Check for guested configure; otherwise get Cygnus style configure.
1027 if test -f $ac_srcdir/configure.gnu; then
1029 $SHELL $ac_srcdir/configure.gnu --help=recursive
1030 elif test -f $ac_srcdir/configure; then
1032 $SHELL $ac_srcdir/configure --help=recursive
1033 elif test -f $ac_srcdir/configure.ac ||
1034 test -f $ac_srcdir/configure.in; then
1036 $ac_configure --help
1038 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59. Invocation command line was
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1094 test -z "$as_dir" && as_dir=.
1095 echo "PATH: $as_dir"
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1119 ac_must_keep_next=false
1125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1135 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136 if test $ac_must_keep_next = true; then
1137 ac_must_keep_next=false # Got value, back to normal.
1140 *=* | --config-cache | -C | -disable-* | --disable-* \
1141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143 | -with-* | --with-* | -without-* | --without-* | --x)
1144 case "$ac_configure_args0 " in
1145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 -* ) ac_must_keep_next=true ;;
1151 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152 # Get rid of the leading space.
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log. We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167 # Save into config.log some information that might help in debugging.
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1177 # The following way of writing the cache mishandles newlines in values,
1180 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1200 for ac_var in $ac_subst_vars
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1207 if test -n "$ac_subst_files"; then
1214 for ac_var in $ac_subst_files
1216 eval ac_val=$`echo $ac_var`
1217 echo "$ac_var='"'"'$ac_val'"'"'"
1222 if test -s confdefs.h; then
1229 sed "/^$/d" confdefs.h | sort
1232 test "$ac_signal" != 0 &&
1233 echo "$as_me: caught signal $ac_signal"
1234 echo "$as_me: exit $exit_status"
1236 rm -f core *.core &&
1237 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 for ac_signal in 1 2 13 15; do
1241 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 # Predefined preprocessor variables.
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280 if test "x$prefix" != xNONE; then
1281 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1283 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286 for ac_site_file in $CONFIG_SITE; do
1287 if test -r "$ac_site_file"; then
1288 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290 sed 's/^/| /' "$ac_site_file" >&5
1295 if test -r "$cache_file"; then
1296 # Some versions of bash will fail to source /dev/null (special
1297 # files actually), so we avoid doing that.
1298 if test -f "$cache_file"; then
1299 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1302 [\\/]* | ?:[\\/]* ) . $cache_file;;
1303 *) . ./$cache_file;;
1307 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1312 # Check that the precious variables saved in the cache have kept the same
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318 eval ac_new_set=\$ac_env_${ac_var}_set
1319 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320 eval ac_new_val="\$ac_env_${ac_var}_value"
1321 case $ac_old_set,$ac_new_set in
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1327 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329 ac_cache_corrupted=: ;;
1332 if test "x$ac_old_val" != "x$ac_new_val"; then
1333 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1336 echo "$as_me: former value: $ac_old_val" >&2;}
1337 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1338 echo "$as_me: current value: $ac_new_val" >&2;}
1339 ac_cache_corrupted=:
1342 # Pass precious variables to config.status.
1343 if test "$ac_new_set" = set; then
1345 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347 *) ac_arg=$ac_var=$ac_new_val ;;
1349 case " $ac_configure_args " in
1350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1351 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 if $ac_cache_corrupted; then
1356 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360 { (exit 1); exit 1; }; }
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394 if test -f $ac_dir/install-sh; then
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1398 elif test -f $ac_dir/install.sh; then
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1402 elif test -f $ac_dir/shtool; then
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1456 if test -n "$TRUEPRG"; then
1457 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$TRUEPRG" && break
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1468 for ac_prog in false
1470 # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1501 if test -n "$FALSEPRG"; then
1502 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 test -n "$FALSEPRG" && break
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1784 if test -z "$CC"; then
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 # This is the source file.
1904 # We found the default executable, but exeext='' is most
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2086 grep -v '^ *+' conftest.er1 >conftest.err
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2145 grep -v '^ *+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175 CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177 if test "$GCC" = yes; then
2183 if test "$GCC" = yes; then
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 ac_cv_prog_cc_stdc=no
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2220 s = g (p, va_arg (v,int));
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2226 function prototypes and stuff, but not '\xHH' hex character constants.
2227 These don't provoke an error unfortunately, instead are silently treated
2228 as 'x'. The following induces an error, until -std1 is added to get
2229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2230 array size at least. It's necessary to write '\x00'==0 to get something
2231 that's true only with -std1. */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX -qlanglvl=ansi
2251 # Ultrix and OSF/1 -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions -Aa -D_HPUX_SOURCE
2254 # SVR4 -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2257 CC="$ac_save_CC $ac_arg"
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2262 grep -v '^ *+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 ac_cv_prog_cc_stdc=$ac_arg
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2287 rm -f conftest.err conftest.$ac_objext
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2294 case "x$ac_cv_prog_cc_stdc" in
2296 echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301 CC="$CC $ac_cv_prog_cc_stdc" ;;
2304 # Some people use a C++ compiler to compile C. Since we use `exit',
2305 # in C++ we need to declare it. In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2317 grep -v '^ *+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 for ac_declaration in \
2337 'extern "C" void std::exit (int) throw (); using std::exit;' \
2338 'extern "C" void std::exit (int); using std::exit;' \
2339 'extern "C" void exit (int) throw ();' \
2340 'extern "C" void exit (int);' \
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag"
2414 || test ! -s conftest.err'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 if test -n "$ac_declaration"; then
2436 echo '#ifdef __cplusplus' >>confdefs.h
2437 echo $ac_declaration >>confdefs.h
2438 echo '#endif' >>confdefs.h
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CXX"; then
2469 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CXX"; then
2489 echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2492 echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$CXX" && break
2499 if test -z "$CXX"; then
2501 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CXX"; then
2511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 test -n "$ac_ct_CXX" && break
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548 "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551 (eval $ac_compiler --version </dev/null >&5) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556 (eval $ac_compiler -v </dev/null >&5) 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561 (eval $ac_compiler -V </dev/null >&5) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_cxx_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_cxx_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cxx_g=yes
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682 CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684 if test "$GXX" = yes; then
2690 if test "$GXX" = yes; then
2696 for ac_declaration in \
2698 'extern "C" void std::exit (int) throw (); using std::exit;' \
2699 'extern "C" void std::exit (int); using std::exit;' \
2700 'extern "C" void exit (int) throw ();' \
2701 'extern "C" void exit (int);' \
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_cxx_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 if test -n "$ac_declaration"; then
2797 echo '#ifdef __cplusplus' >>confdefs.h
2798 echo $ac_declaration >>confdefs.h
2799 echo '#endif' >>confdefs.h
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test "x$CC" != xcc; then
2809 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2812 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2815 set dummy $CC; ac_cc=`echo $2 |
2816 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
2838 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2850 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851 if test "x$CC" != xcc; then
2852 # Test first that cc exists at all.
2853 if { ac_try='cc -c conftest.$ac_ext >&5'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); };
2874 # cc exists but doesn't like -o.
2875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2880 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if test "${ac_cv_prog_CPP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 # Double quotes because CPP needs to be expanded
2914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
2948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139 then ac_cv_prog_egrep='grep -E'
3140 else ac_cv_prog_egrep='egrep'
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145 EGREP=$ac_cv_prog_egrep
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_pattern="Autoconf.*'x'"
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166 ac_cv_prog_gcc_traditional=yes
3168 ac_cv_prog_gcc_traditional=no
3173 if test $ac_cv_prog_gcc_traditional = no; then
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185 ac_cv_prog_gcc_traditional=yes
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193 if test $ac_cv_prog_gcc_traditional = yes; then
3194 CC="$CC -traditional"
3198 if test "x$CC" = xgcc; then
3199 cat >>confdefs.h <<\_ACEOF
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3236 if test -n "$CXX"; then
3237 echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3244 if test ! -e $CXX; then
3245 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247 { (exit 1); exit 1; }; }
3250 # Find a good install program. We prefer a C program (faster),
3251 # so one script is as good as another. But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3276 ./ | .// | /cC/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 if test "${ac_cv_path_install+set}" = set; then
3309 INSTALL=$ac_cv_path_install
3311 # As a last resort, use the slow shell script. We don't cache a
3312 # path for INSTALL within a source directory, because that will
3313 # break other packages using the cache if that directory is
3314 # removed, or if the path is relative.
3315 INSTALL=$ac_install_sh
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$RANLIB"; then
3338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358 echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367 ac_ct_RANLIB=$RANLIB
3368 # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$ac_ct_RANLIB"; then
3376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_RANLIB="ranlib"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 RANLIB=$ac_ct_RANLIB
3406 RANLIB="$ac_cv_prog_RANLIB"
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3441 if test -n "$MV"; then
3442 echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3445 echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3481 if test -n "$RM"; then
3482 echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3521 if test -n "$CP"; then
3522 echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3561 if test -n "$SED"; then
3562 echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3599 ECHO=$ac_cv_path_ECHO
3601 if test -n "$ECHO"; then
3602 echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3605 echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3641 if test -n "$CMP"; then
3642 echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3681 if test -n "$TBL"; then
3682 echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3721 if test -n "$AR"; then
3722 echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3759 OPENSSL=$ac_cv_path_OPENSSL
3761 if test -n "$OPENSSL"; then
3762 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3801 if test -n "$MTX"; then
3802 echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3841 if test -n "$DF"; then
3842 echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3879 MKISOFS=$ac_cv_path_MKISOFS
3881 if test -n "$MKISOFS"; then
3882 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3919 PYTHON=$ac_cv_path_PYTHON
3921 if test -n "$PYTHON"; then
3922 echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3961 if test -n "$GROWISOFS"; then
3962 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 case $DVDRWMEDIAINFO in
3978 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4001 if test -n "$DVDRWMEDIAINFO"; then
4002 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4041 if test -n "$PKGCONFIG"; then
4042 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4050 if test "x$WXCONFIG" = x; then
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4085 if test -n "$WXCONFIG"; then
4086 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4124 CDRECORD=$ac_cv_path_CDRECORD
4126 if test -n "$CDRECORD"; then
4127 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4164 PIDOF=$ac_cv_path_PIDOF
4166 if test -n "$PIDOF"; then
4167 echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4174 for ac_prog in gawk mawk nawk awk
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$AWK"; then
4184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AWK="$ac_prog"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$AWK"; then
4204 echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4211 test -n "$AWK" && break
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216 { if ((prog == $2) || (("(" prog ")") == $2) ||
4217 (("" prog "") == $2) ||
4218 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4220 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221 The regex engine of $AWK is too broken to be used you
4222 might want to install GNU AWK.
4223 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225 The regex engine of $AWK is too broken to be used you
4226 might want to install GNU AWK.
4227 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228 { (exit 1); exit 1; }; }
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4263 if test -n "$AWK"; then
4264 echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4285 # Make sure we can run config.sub.
4286 $ac_config_sub sun4 >/dev/null 2>&1 ||
4287 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4288 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4289 { (exit 1); exit 1; }; }
4291 echo "$as_me:$LINENO: checking build system type" >&5
4292 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4293 if test "${ac_cv_build+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_cv_build_alias=$build_alias
4297 test -z "$ac_cv_build_alias" &&
4298 ac_cv_build_alias=`$ac_config_guess`
4299 test -z "$ac_cv_build_alias" &&
4300 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4301 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4302 { (exit 1); exit 1; }; }
4303 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4304 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4305 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4306 { (exit 1); exit 1; }; }
4309 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4310 echo "${ECHO_T}$ac_cv_build" >&6
4312 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4313 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4314 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4318 echo "$as_me:$LINENO: checking host system type" >&5
4319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4320 if test "${ac_cv_host+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 ac_cv_host_alias=$host_alias
4324 test -z "$ac_cv_host_alias" &&
4325 ac_cv_host_alias=$ac_cv_build_alias
4326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4329 { (exit 1); exit 1; }; }
4332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4333 echo "${ECHO_T}$ac_cv_host" >&6
4335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4341 *cygwin* ) CYGWIN=yes;;
4345 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4351 HAVE_SUN_OS_FALSE='#'
4353 HAVE_SUN_OS_TRUE='#'
4356 cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_SUN_OS 1
4365 HAVE_SUN_OS_FALSE='#'
4367 HAVE_SUN_OS_TRUE='#'
4372 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4378 HAVE_OSF1_OS_FALSE='#'
4380 HAVE_OSF1_OS_TRUE='#'
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_OSF1_OS 1
4392 HAVE_OSF1_OS_FALSE='#'
4394 HAVE_OSF1_OS_TRUE='#'
4399 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4405 HAVE_AIX_OS_FALSE='#'
4407 HAVE_AIX_OS_TRUE='#'
4410 cat >>confdefs.h <<\_ACEOF
4411 #define HAVE_AIX_OS 1
4419 HAVE_AIX_OS_FALSE='#'
4421 HAVE_AIX_OS_TRUE='#'
4426 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4432 HAVE_HPUX_OS_FALSE='#'
4434 HAVE_HPUX_OS_TRUE='#'
4437 cat >>confdefs.h <<\_ACEOF
4438 #define HAVE_HPUX_OS 1
4446 HAVE_HPUX_OS_FALSE='#'
4448 HAVE_HPUX_OS_TRUE='#'
4453 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4459 HAVE_LINUX_OS_FALSE='#'
4461 HAVE_LINUX_OS_TRUE='#'
4462 HAVE_LINUX_OS_FALSE=
4464 cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LINUX_OS 1
4473 HAVE_LINUX_OS_FALSE='#'
4475 HAVE_LINUX_OS_TRUE='#'
4476 HAVE_LINUX_OS_FALSE=
4480 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4485 HAVE_FREEBSD_OS_TRUE=
4486 HAVE_FREEBSD_OS_FALSE='#'
4488 HAVE_FREEBSD_OS_TRUE='#'
4489 HAVE_FREEBSD_OS_FALSE=
4491 cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_FREEBSD_OS 1
4499 HAVE_FREEBSD_OS_TRUE=
4500 HAVE_FREEBSD_OS_FALSE='#'
4502 HAVE_FREEBSD_OS_TRUE='#'
4503 HAVE_FREEBSD_OS_FALSE=
4507 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4512 HAVE_NETBSD_OS_TRUE=
4513 HAVE_NETBSD_OS_FALSE='#'
4515 HAVE_NETBSD_OS_TRUE='#'
4516 HAVE_NETBSD_OS_FALSE=
4518 cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_NETBSD_OS 1
4526 HAVE_NETBSD_OS_TRUE=
4527 HAVE_NETBSD_OS_FALSE='#'
4529 HAVE_NETBSD_OS_TRUE='#'
4530 HAVE_NETBSD_OS_FALSE=
4534 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4539 HAVE_OPENBSD_OS_TRUE=
4540 HAVE_OPENBSD_OS_FALSE='#'
4542 HAVE_OPENBSD_OS_TRUE='#'
4543 HAVE_OPENBSD_OS_FALSE=
4545 cat >>confdefs.h <<\_ACEOF
4546 #define HAVE_OPENBSD_OS 1
4553 HAVE_OPENBSD_OS_TRUE=
4554 HAVE_OPENBSD_OS_FALSE='#'
4556 HAVE_OPENBSD_OS_TRUE='#'
4557 HAVE_OPENBSD_OS_FALSE=
4561 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4567 HAVE_BSDI_OS_FALSE='#'
4569 HAVE_BSDI_OS_TRUE='#'
4572 cat >>confdefs.h <<\_ACEOF
4573 #define HAVE_BSDI_OS 1
4581 HAVE_BSDI_OS_FALSE='#'
4583 HAVE_BSDI_OS_TRUE='#'
4588 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4594 HAVE_SGI_OS_FALSE='#'
4596 HAVE_SGI_OS_TRUE='#'
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_SGI_OS 1
4608 HAVE_SGI_OS_FALSE='#'
4610 HAVE_SGI_OS_TRUE='#'
4615 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4621 HAVE_IRIX_OS_FALSE='#'
4623 HAVE_IRIX_OS_TRUE='#'
4626 cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_IRIX_OS 1
4635 HAVE_IRIX_OS_FALSE='#'
4637 HAVE_IRIX_OS_TRUE='#'
4642 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4647 HAVE_DARWIN_OS_TRUE=
4648 HAVE_DARWIN_OS_FALSE='#'
4650 HAVE_DARWIN_OS_TRUE='#'
4651 HAVE_DARWIN_OS_FALSE=
4653 cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_DARWIN_OS 1
4661 HAVE_DARWIN_OS_TRUE=
4662 HAVE_DARWIN_OS_FALSE='#'
4664 HAVE_DARWIN_OS_TRUE='#'
4665 HAVE_DARWIN_OS_FALSE=
4670 # -----------------------------------------------------------
4671 # ----------------------------------------------------------
4672 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4673 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4674 if test "x$DISTNAME" != "x"
4676 echo "distname set to $DISTNAME"
4677 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4680 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4683 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4686 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4689 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4692 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4695 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4698 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4701 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4704 elif test -f /etc/SuSE-release
4707 elif test -d /etc/SuSEconfig
4710 elif test -f /etc/mandrake-release
4713 elif test -f /etc/whitebox-release
4716 elif test -f /etc/redhat-release
4719 elif test -f /etc/gentoo-release
4722 elif test -f /etc/debian_version
4725 elif test -f /etc/slackware-version
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4731 elif test -f /etc/engarde-version
4734 elif test "$CYGWIN" = yes
4737 cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_CYGWIN 1
4744 echo "$as_me:$LINENO: result: done" >&5
4745 echo "${ECHO_T}done" >&6
4748 # -----------------------------------------------------------
4749 # ----------------------------------------------------------
4754 INSIDE_GNOME_COMMON_TRUE=
4755 INSIDE_GNOME_COMMON_FALSE='#'
4757 INSIDE_GNOME_COMMON_TRUE='#'
4758 INSIDE_GNOME_COMMON_FALSE=
4761 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4763 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4766 # ------------------------------------------------------------------
4767 # If the user has not set --prefix, we set our default to nothing.
4768 # In this case, if the user has not set --sysconfdir, we set it
4769 # to the package default of /etc/bacula. If either --prefix or
4770 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4771 # ------------------------------------------------------------------
4772 if test x${prefix} = xNONE ; then
4773 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4774 sysconfdir=/etc/bacula
4778 sysconfdir=`eval echo ${sysconfdir}`
4780 # -------------------------------------------------------------------------
4781 # If the user has not set --exec-prefix, we default to ${prefix}
4782 # -------------------------------------------------------------------------
4783 if test x${exec_prefix} = xNONE ; then
4784 exec_prefix=${prefix}
4787 # ------------------------------------------------------------------
4788 # If the user has not set --sbindir, we set our default as /sbin
4789 # ------------------------------------------------------------------
4790 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4791 sbindir=${exec_prefix}/sbin
4793 sbindir=`eval echo ${sbindir}`
4795 # -------------------------------------------------------------------------
4796 # If the user has not set --mandir, we default to /usr/share/man
4797 # -------------------------------------------------------------------------
4798 if test x$mandir = x'${prefix}/man' ; then
4799 mandir=/usr/share/man
4803 # ------------------------------------------------------------------
4804 # All list of languages for which a translation exist. Each
4805 # language is separated by a space.
4806 # ------------------------------------------------------------------
4809 for ac_prog in msgfmt
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_path_MSGFMT+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 MSGFMT=$ac_cv_path_MSGFMT
4842 if test -n "$MSGFMT"; then
4843 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4844 echo "${ECHO_T}$MSGFMT" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4850 test -n "$MSGFMT" && break
4852 test -n "$MSGFMT" || MSGFMT="no"
4854 if test "$MSGFMT" = "no"
4856 echo 'msgfmt program not found, disabling NLS !'
4858 USE_INCLUDED_LIBINTL=no
4867 support_postgresql=no
4868 support_smartalloc=yes
4869 support_readline=yes
4872 support_wx_console=no
4876 support_static_tools=no
4877 support_static_fd=no
4878 support_static_sd=no
4879 support_static_dir=no
4880 support_static_cons=no
4882 build_client_only=no
4888 # -------------------------------------------
4889 # gnome (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-gnome or --disable-gnome was given.
4892 if test "${enable_gnome+set}" = set; then
4893 enableval="$enable_gnome"
4894 if test x$enableval = xyes; then
4900 if test x$support_gnome = xyes; then
4901 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4903 if test $pkg = 0; then
4904 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4905 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4906 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4907 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4912 GNOME_DIR=src/gnome2-console
4913 gnome_version="Version 2.x"
4915 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4916 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4917 { (exit 1); exit 1; }; }
4923 # -------------------------------------------
4924 # wx-console (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-wx-console or --disable-wx-console was given.
4927 if test "${enable_wx_console+set}" = set; then
4928 enableval="$enable_wx_console"
4929 if test x$enableval = xyes; then
4930 support_wx_console=yes
4935 if test x$support_wx_console = xyes; then
4936 abc=`$WXCONFIG $WXFLAGS --cppflags`
4938 if test $pkg = 0; then
4939 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4940 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4941 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4945 WX_DIR=src/wx-console
4948 echo "wx-config program not found. wx-console disabled."
4950 support_wx_console=no
4956 # -------------------------------------------
4957 # tray-monitor (default off)
4958 # -------------------------------------------
4959 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4960 if test "${enable_tray_monitor+set}" = set; then
4961 enableval="$enable_tray_monitor"
4962 if test x$enableval = xyes; then
4963 support_tray_monitor=yes
4968 if test x$support_tray_monitor = xyes; then
4969 abc=`$PKGCONFIG --exists gtk+-2.0`
4971 if test $pkg = 0; then
4972 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4973 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4976 TRAY_MONITOR_DIR=src/tray-monitor
4977 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4979 if test $pkg = 0; then
4980 cat >>confdefs.h <<\_ACEOF
4981 #define HAVE_GTK_2_4 1
4989 # -------------------------------------------
4990 # smartalloc (default off)
4991 # -------------------------------------------
4992 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4993 if test "${enable_smartalloc+set}" = set; then
4994 enableval="$enable_smartalloc"
4995 if test x$enableval = xno; then
4996 support_smartalloc=no
5000 if test x$support_smartalloc = xyes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define SMARTALLOC 1
5007 # -------------------------------------------
5008 # static-tools (default off)
5009 # -------------------------------------------
5010 # Check whether --enable-static-tools or --disable-static-tools was given.
5011 if test "${enable_static_tools+set}" = set; then
5012 enableval="$enable_static_tools"
5013 if test x$enableval = xyes; then
5014 support_static_tools=yes
5019 if test x$support_static_tools = xyes; then
5020 TTOOL_LDFLAGS="-static"
5024 # -------------------------------------------
5025 # static-fd (default off)
5026 # -------------------------------------------
5027 # Check whether --enable-static-fd or --disable-static-fd was given.
5028 if test "${enable_static_fd+set}" = set; then
5029 enableval="$enable_static_fd"
5030 if test x$enableval = xyes; then
5031 support_static_fd=yes
5036 if test x$support_static_fd = xyes; then
5037 STATIC_FD="static-bacula-fd"
5041 # -------------------------------------------
5042 # static-sd (default off)
5043 # -------------------------------------------
5044 # Check whether --enable-static-sd or --disable-static-sd was given.
5045 if test "${enable_static_sd+set}" = set; then
5046 enableval="$enable_static_sd"
5047 if test x$enableval = xyes; then
5048 support_static_sd=yes
5053 if test x$support_static_sd = xyes; then
5054 STATIC_SD="static-bacula-sd"
5058 # -------------------------------------------
5059 # static-dir (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-static-dir or --disable-static-dir was given.
5062 if test "${enable_static_dir+set}" = set; then
5063 enableval="$enable_static_dir"
5064 if test x$enableval = xyes; then
5065 support_static_dir=yes
5070 if test x$support_static_dir = xyes; then
5071 STATIC_DIR="static-bacula-dir"
5075 # -------------------------------------------
5076 # static-cons (default off)
5077 # -------------------------------------------
5078 # Check whether --enable-static-cons or --disable-static-cons was given.
5079 if test "${enable_static_cons+set}" = set; then
5080 enableval="$enable_static_cons"
5081 if test x$enableval = xyes; then
5082 support_static_cons=yes
5089 if test x$support_static_cons = xyes; then
5090 STATIC_CONS="static-bconsole"
5091 STATIC_GNOME_CONS="static-gnome-console"
5092 STATIC_WX_CONS="static-wx-console"
5098 # -------------------------------------------
5099 # client_only (default off)
5100 # -------------------------------------------
5101 # Check whether --enable-client-only or --disable-client-only was given.
5102 if test "${enable_client_only+set}" = set; then
5103 enableval="$enable_client_only"
5104 if test x$enableval = xyes; then
5105 build_client_only=yes
5110 if test x$build_client_only = xno; then
5117 # ---------------------------------------------------
5118 # Check for conio (Bacula readline substitute)(
5119 # ---------------------------------------------------
5120 # this allows you to turn it completely off
5121 # Check whether --enable-conio or --disable-conio was given.
5122 if test "${enable_conio+set}" = set; then
5123 enableval="$enable_conio"
5124 if test x$enableval = xno; then
5130 if test x$support_conio = xyes; then
5131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_header_stdc=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_header_stdc=no
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5186 if test $ac_cv_header_stdc = yes; then
5187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198 $EGREP "memchr" >/dev/null 2>&1; then
5201 ac_cv_header_stdc=no
5207 if test $ac_cv_header_stdc = yes; then
5208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219 $EGREP "free" >/dev/null 2>&1; then
5222 ac_cv_header_stdc=no
5228 if test $ac_cv_header_stdc = yes; then
5229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230 if test "$cross_compiling" = yes; then
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5244 # define ISLOWER(c) \
5245 (('a' <= (c) && (c) <= 'i') \
5246 || ('j' <= (c) && (c) <= 'r') \
5247 || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256 for (i = 0; i < 256; i++)
5257 if (XOR (islower (i), ISLOWER (i))
5258 || toupper (i) != TOUPPER (i))
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5276 echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_cv_header_stdc=no
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308 inttypes.h stdint.h unistd.h
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5324 #include <$ac_header>
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 eval "$as_ac_Header=yes"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 if test "${ac_cv_header_termcap_h+set}" = set; then
5370 echo "$as_me:$LINENO: checking for termcap.h" >&5
5371 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5372 if test "${ac_cv_header_termcap_h+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5378 # Is the header compilable?
5379 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5380 echo $ECHO_N "checking termcap.h usability... $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
5388 #include <termcap.h>
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_header_compiler=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_compiler=no
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5425 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <termcap.h>
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5451 if test -z "$ac_cpp_err"; then
5452 ac_header_preproc=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_header_preproc=no
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc=yes
5473 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists. ##
5489 ## ------------------------------------------ ##
5492 sed "s/^/$as_me: WARNING: /" >&2
5495 echo "$as_me:$LINENO: checking for termcap.h" >&5
5496 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5497 if test "${ac_cv_header_termcap_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_cv_header_termcap_h=$ac_header_preproc
5502 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5503 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5506 if test $ac_cv_header_termcap_h = yes; then
5507 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5508 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5509 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-ltermcap $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_lib_termcap_tgetent=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_cv_lib_termcap_tgetent=no
5565 rm -f conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5569 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5570 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5571 if test $ac_cv_lib_termcap_tgetent = yes; then
5572 CONS_LIBS="-ltermcap"
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_CONIO 1
5584 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5585 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lncurses $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_ncurses_tgetent=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_lib_ncurses_tgetent=no
5642 rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5648 if test $ac_cv_lib_ncurses_tgetent = yes; then
5649 CONS_LIBS="-lncurses"
5655 cat >>confdefs.h <<\_ACEOF
5656 #define HAVE_CONIO 1
5669 for ac_header in curses.h
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673 echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5681 # Is the header compilable?
5682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5691 #include <$ac_header>
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_c_werror_flag"
5703 || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_header_compiler=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_header_compiler=no
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6
5726 # Is the header present?
5727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <$ac_header>
5737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null; then
5745 if test -s conftest.err; then
5746 ac_cpp_err=$ac_c_preproc_warn_flag
5747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5754 if test -z "$ac_cpp_err"; then
5755 ac_header_preproc=yes
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_header_preproc=no
5762 rm -f conftest.err conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5764 echo "${ECHO_T}$ac_header_preproc" >&6
5766 # So? What about this header?
5767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5773 ac_header_preproc=yes
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5790 ## ------------------------------------------ ##
5791 ## Report this to the AC_PACKAGE_NAME lists. ##
5792 ## ------------------------------------------ ##
5795 sed "s/^/$as_me: WARNING: /" >&2
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 eval "$as_ac_Header=\$ac_header_preproc"
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 echo "$as_me:$LINENO: checking for term.h" >&5
5819 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5820 if test "${ac_cv_header_term_h+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_header_term_h=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_header_term_h=no
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5869 if test $ac_cv_header_term_h = yes; then
5870 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5871 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5872 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcurses $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_lib_curses_tgetent=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_lib_curses_tgetent=no
5928 rm -f conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5934 if test $ac_cv_lib_curses_tgetent = yes; then
5935 CONS_LIBS="-lcurses"
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_CONIO 1
5950 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5961 # ---------------------------------------------------
5962 # Check for readline support/directory (default off)
5963 # ---------------------------------------------------
5964 # this allows you to turn it completely off
5965 # Check whether --enable-readline or --disable-readline was given.
5966 if test "${enable_readline+set}" = set; then
5967 enableval="$enable_readline"
5968 if test x$enableval = xno; then
5975 if test x$support_readline = xyes; then
5977 # Check whether --with-readline or --without-readline was given.
5978 if test "${with_readline+set}" = set; then
5979 withval="$with_readline"
5981 case "$with_readline" in
5984 if test "$with_readline" != "yes"; then
5985 CONS_INC="-I${with_readline}"
5986 CONS_LDFLAGS="-L$with_readline"
5988 with_readline="/usr/include/readline"
5990 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5993 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6000 # Is the header compilable?
6001 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6002 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6010 #include <${with_readline}/readline.h>
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_header_compiler=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_compiler=no
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6047 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <${with_readline}/readline.h>
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } >/dev/null; then
6064 if test -s conftest.err; then
6065 ac_cpp_err=$ac_c_preproc_warn_flag
6066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6073 if test -z "$ac_cpp_err"; then
6074 ac_header_preproc=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_header_preproc=no
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6085 # So? What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6092 ac_header_preproc=yes
6095 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6109 ## ------------------------------------------ ##
6110 ## Report this to the AC_PACKAGE_NAME lists. ##
6111 ## ------------------------------------------ ##
6114 sed "s/^/$as_me: WARNING: /" >&2
6117 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 eval "$as_ac_Header=\$ac_header_preproc"
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_READLINE 1
6133 CONS_LIBS="-lreadline -ltermcap"
6138 echo "readline.h not found. readline turned off ..."
6150 # check for standard readline library
6151 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6152 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6153 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6158 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6160 # Is the header compilable?
6161 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6162 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6170 #include </usr/include/readline/readline.h>
6172 rm -f conftest.$ac_objext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag"
6182 || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_header_compiler=yes
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 ac_header_compiler=no
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6203 echo "${ECHO_T}$ac_header_compiler" >&6
6205 # Is the header present?
6206 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6207 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 #include </usr/include/readline/readline.h>
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null; then
6224 if test -s conftest.err; then
6225 ac_cpp_err=$ac_c_preproc_warn_flag
6226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6233 if test -z "$ac_cpp_err"; then
6234 ac_header_preproc=yes
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_header_preproc=no
6241 rm -f conftest.err conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6243 echo "${ECHO_T}$ac_header_preproc" >&6
6245 # So? What about this header?
6246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6248 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6249 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6251 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6252 ac_header_preproc=yes
6255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6256 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6258 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6264 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6266 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6269 ## ------------------------------------------ ##
6270 ## Report this to the AC_PACKAGE_NAME lists. ##
6271 ## ------------------------------------------ ##
6274 sed "s/^/$as_me: WARNING: /" >&2
6277 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6278 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6279 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6284 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6285 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6288 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6289 cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_READLINE 1
6294 CONS_INC="-I/usr/include/readline"
6295 CONS_LIBS="-lreadline -ltermcap"
6299 # Did not find standard library, so try Bacula's default
6300 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6303 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 # Is the header compilable?
6311 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6312 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 #include <${TOP_DIR}/depkgs/readline/readline.h>
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6326 grep -v '^ *+' conftest.er1 >conftest.err
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_header_compiler=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_header_compiler=no
6351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6353 echo "${ECHO_T}$ac_header_compiler" >&6
6355 # Is the header present?
6356 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6357 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 #include <${TOP_DIR}/depkgs/readline/readline.h>
6366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6369 grep -v '^ *+' conftest.er1 >conftest.err
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } >/dev/null; then
6374 if test -s conftest.err; then
6375 ac_cpp_err=$ac_c_preproc_warn_flag
6376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6383 if test -z "$ac_cpp_err"; then
6384 ac_header_preproc=yes
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 ac_header_preproc=no
6391 rm -f conftest.err conftest.$ac_ext
6392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393 echo "${ECHO_T}$ac_header_preproc" >&6
6395 # So? What about this header?
6396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6398 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6402 ac_header_preproc=yes
6405 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6408 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6416 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6419 ## ------------------------------------------ ##
6420 ## Report this to the AC_PACKAGE_NAME lists. ##
6421 ## ------------------------------------------ ##
6424 sed "s/^/$as_me: WARNING: /" >&2
6427 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6428 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 eval "$as_ac_Header=\$ac_header_preproc"
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439 cat >>confdefs.h <<\_ACEOF
6440 #define HAVE_READLINE 1
6444 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6445 CONS_LIBS="-lreadline -lhistory -ltermcap"
6446 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6447 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6451 echo "readline.h not found. readline turned off ..."
6477 # Minimal stuff for readline Makefile configuration
6480 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6481 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6482 if test "${ac_cv_header_stat_broken+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 #include <sys/types.h>
6492 #include <sys/stat.h>
6494 #if defined(S_ISBLK) && defined(S_IFDIR)
6495 # if S_ISBLK (S_IFDIR)
6500 #if defined(S_ISBLK) && defined(S_IFCHR)
6501 # if S_ISBLK (S_IFCHR)
6506 #if defined(S_ISLNK) && defined(S_IFREG)
6507 # if S_ISLNK (S_IFREG)
6512 #if defined(S_ISSOCK) && defined(S_IFREG)
6513 # if S_ISSOCK (S_IFREG)
6519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6520 $EGREP "You lose" >/dev/null 2>&1; then
6521 ac_cv_header_stat_broken=yes
6523 ac_cv_header_stat_broken=no
6528 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6529 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6530 if test $ac_cv_header_stat_broken = yes; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define STAT_MACROS_BROKEN 1
6544 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6545 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6546 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6547 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <sys/types.h>
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6573 grep -v '^ *+' conftest.er1 >conftest.err
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 eval "$as_ac_Header=yes"
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 eval "$as_ac_Header=no"
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6607 ac_header_dirent=$ac_hdr; break
6611 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6612 if test $ac_header_dirent = dirent.h; then
6613 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6615 if test "${ac_cv_search_opendir+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 ac_func_search_save_LIBS=$LIBS
6619 ac_cv_search_opendir=no
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_c_werror_flag"
6652 || test ! -s conftest.err'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest$ac_exeext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_cv_search_opendir="none required"
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6670 rm -f conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 if test "$ac_cv_search_opendir" = no; then
6673 for ac_lib in dir; do
6674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699 (eval $ac_link) 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -z "$ac_c_werror_flag"
6707 || test ! -s conftest.err'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_search_opendir="-l$ac_lib"
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6730 LIBS=$ac_func_search_save_LIBS
6732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6734 if test "$ac_cv_search_opendir" != no; then
6735 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6740 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6742 if test "${ac_cv_search_opendir+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_func_search_save_LIBS=$LIBS
6746 ac_cv_search_opendir=no
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6754 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -z "$ac_c_werror_flag"
6779 || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_cv_search_opendir="none required"
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6797 rm -f conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6799 if test "$ac_cv_search_opendir" = no; then
6801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6809 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6828 grep -v '^ *+' conftest.er1 >conftest.err
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 ac_cv_search_opendir="-l$ac_lib"
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6853 rm -f conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_func_search_save_LIBS
6859 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6860 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6861 if test "$ac_cv_search_opendir" != no; then
6862 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6876 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6879 echo "$as_me:$LINENO: checking for $ac_func" >&5
6880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_var+set}\" = set"; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6892 #define $ac_func innocuous_$ac_func
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func (); below.
6896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897 <limits.h> exists even on freestanding compilers. */
6900 # include <limits.h>
6902 # include <assert.h>
6907 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6915 /* The GNU C library defines this for functions which it implements
6916 to always fail with ENOSYS. Some functions are actually named
6917 something starting with __ and the normal name is an alias. */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6921 char (*f) () = $ac_func;
6930 return f != $ac_func;
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>conftest.er1
6939 grep -v '^ *+' conftest.er1 >conftest.err
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 eval "$as_ac_var=yes"
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 eval "$as_ac_var=no"
6964 rm -f conftest.err conftest.$ac_objext \
6965 conftest$ac_exeext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6969 if test `eval echo '${'$as_ac_var'}'` = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6979 for ac_func in nanosleep nl_langinfo
6981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6982 echo "$as_me:$LINENO: checking for $ac_func" >&5
6983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_var+set}\" = set"; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6995 #define $ac_func innocuous_$ac_func
6997 /* System header to define __stub macros and hopefully few prototypes,
6998 which can conflict with char $ac_func (); below.
6999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000 <limits.h> exists even on freestanding compilers. */
7003 # include <limits.h>
7005 # include <assert.h>
7010 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7018 /* The GNU C library defines this for functions which it implements
7019 to always fail with ENOSYS. Some functions are actually named
7020 something starting with __ and the normal name is an alias. */
7021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7024 char (*f) () = $ac_func;
7033 return f != $ac_func;
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 eval "$as_ac_var=yes"
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 eval "$as_ac_var=no"
7067 rm -f conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7072 if test `eval echo '${'$as_ac_var'}'` = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7081 for ac_header in varargs.h
7083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7093 # Is the header compilable?
7094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7103 #include <$ac_header>
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_header_compiler=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_header_compiler=no
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7136 echo "${ECHO_T}$ac_header_compiler" >&6
7138 # Is the header present?
7139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <$ac_header>
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } >/dev/null; then
7157 if test -s conftest.err; then
7158 ac_cpp_err=$ac_c_preproc_warn_flag
7159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7166 if test -z "$ac_cpp_err"; then
7167 ac_header_preproc=yes
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7172 ac_header_preproc=no
7174 rm -f conftest.err conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7176 echo "${ECHO_T}$ac_header_preproc" >&6
7178 # So? What about this header?
7179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7185 ac_header_preproc=yes
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7202 ## ------------------------------------------ ##
7203 ## Report this to the AC_PACKAGE_NAME lists. ##
7204 ## ------------------------------------------ ##
7207 sed "s/^/$as_me: WARNING: /" >&2
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 eval "$as_ac_Header=\$ac_header_preproc"
7217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231 # End of readline/conio stuff
7232 # -----------------------------------------------------------------------
7234 # -----------------------------------------------------------------------
7235 # Check for Python support
7237 echo "$as_me:$LINENO: checking for Python support" >&5
7238 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7240 # Check whether --with-python or --without-python was given.
7241 if test "${with_python+set}" = set; then
7242 withval="$with_python"
7246 if test "$withval" != "no"; then
7247 if test "$withval" = "yes"; then
7248 for python_root in /usr /usr/local; do
7249 if test -f $python_root/include/python2.2/Python.h; then
7250 PYTHON_INCDIR=-I$python_root/include/python2.2
7251 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2 -lutil"
7253 elif test -f $python_root/include/python2.3/Python.h; then
7254 PYTHON_INCDIR=-I$python_root/include/python2.3
7255 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3 -lutil"
7257 elif test -f $python_root/include/python2.4/Python.h; then
7258 PYTHON_INCDIR=-I$python_root/include/python2.4
7259 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4 -lutil"
7263 if test x$PYTHON_INCDIR = x; then
7264 if test -f $prefix/include/Python.h; then
7265 PYTHON_INCDIR=-I$prefix/include
7266 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil"
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7271 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7272 { (exit 1); exit 1; }; }
7276 if test -f $withval/Python.h; then
7277 PYTHON_INCDIR=-I$withval
7278 PYTHON_LIBS="-L$withval/config -lpython -lutil"
7279 elif test -f $withval/include/Python.h; then
7280 PYTHON_INCDIR=-I$withval/include
7281 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil"
7283 echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7285 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7286 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7287 { (exit 1); exit 1; }; }
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_PYTHON 1
7294 echo "$as_me:$LINENO: result: yes" >&5
7295 echo "${ECHO_T}yes" >&6
7299 echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7305 echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6
7314 # Find where sockets are (especially for Solaris)
7315 # Do this before the TCP Wrappers test since tcp wrappers
7316 # uses the socket library and some linkers are stupid.
7318 echo "$as_me:$LINENO: checking for socket" >&5
7319 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7320 if test "${ac_cv_func_socket+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7331 #define socket innocuous_socket
7333 /* System header to define __stub macros and hopefully few prototypes,
7334 which can conflict with char socket (); below.
7335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7336 <limits.h> exists even on freestanding compilers. */
7339 # include <limits.h>
7341 # include <assert.h>
7346 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7354 /* The GNU C library defines this for functions which it implements
7355 to always fail with ENOSYS. Some functions are actually named
7356 something starting with __ and the normal name is an alias. */
7357 #if defined (__stub_socket) || defined (__stub___socket)
7360 char (*f) () = socket;
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>conftest.er1
7378 grep -v '^ *+' conftest.er1 >conftest.err
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest$ac_exeext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_cv_func_socket=yes
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_cv_func_socket=no
7403 rm -f conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7407 echo "${ECHO_T}$ac_cv_func_socket" >&6
7408 if test $ac_cv_func_socket = yes; then
7409 echo "$as_me:$LINENO: result: using libc's socket" >&5
7410 echo "${ECHO_T}using libc's socket" >&6
7413 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7414 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7415 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_check_lib_save_LIBS=$LIBS
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any gcc2 internal prototype to avoid an error. */
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1 >conftest.err
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest$ac_exeext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_lib_xnet_socket=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_cv_lib_xnet_socket=no
7471 rm -f conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 LIBS=$ac_check_lib_save_LIBS
7475 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7476 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7477 if test $ac_cv_lib_xnet_socket = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define HAVE_LIBXNET 1
7487 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7488 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7489 if test "${ac_cv_lib_socket_socket+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 ac_check_lib_save_LIBS=$LIBS
7493 LIBS="-lsocket $LIBS"
7494 cat >conftest.$ac_ext <<_ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7501 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7516 rm -f conftest.$ac_objext conftest$ac_exeext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518 (eval $ac_link) 2>conftest.er1
7520 grep -v '^ *+' conftest.er1 >conftest.err
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -z "$ac_c_werror_flag"
7526 || test ! -s conftest.err'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; } &&
7532 { ac_try='test -s conftest$ac_exeext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_lib_socket_socket=yes
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_lib_socket_socket=no
7545 rm -f conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 LIBS=$ac_check_lib_save_LIBS
7549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7550 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7551 if test $ac_cv_lib_socket_socket = yes; then
7552 cat >>confdefs.h <<_ACEOF
7553 #define HAVE_LIBSOCKET 1
7556 LIBS="-lsocket $LIBS"
7561 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7562 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7563 if test "${ac_cv_lib_inet_socket+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 ac_check_lib_save_LIBS=$LIBS
7568 cat >conftest.$ac_ext <<_ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7575 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592 (eval $ac_link) 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -z "$ac_c_werror_flag"
7600 || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest$ac_exeext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_cv_lib_inet_socket=yes
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 ac_cv_lib_inet_socket=no
7619 rm -f conftest.err conftest.$ac_objext \
7620 conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7623 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7624 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7625 if test $ac_cv_lib_inet_socket = yes; then
7626 cat >>confdefs.h <<_ACEOF
7627 #define HAVE_LIBINET 1
7638 # -----------------------------------------------------------
7639 # Check whether user wants TCP wrappers support (default off)
7640 # -----------------------------------------------------------
7643 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7644 if test "${with_tcp_wrappers+set}" = set; then
7645 withval="$with_tcp_wrappers"
7647 if test "x$withval" != "xno" ; then
7649 LIBS="$saved_LIBS -lwrap"
7650 echo "$as_me:$LINENO: checking for libwrap" >&5
7651 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7659 int deny_severity = 0;
7660 int allow_severity = 0;
7661 struct request_info *req;
7670 rm -f conftest.$ac_objext conftest$ac_exeext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7672 (eval $ac_link) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7693 echo "$as_me:$LINENO: result: yes" >&5
7694 echo "${ECHO_T}yes" >&6
7695 cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_LIBWRAP 1
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7706 LIBS="$saved_LIBS -lwrap -lnsl"
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7714 int deny_severity = 0;
7715 int allow_severity = 0;
7716 struct request_info *req;
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>conftest.er1
7729 grep -v '^ *+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -z "$ac_c_werror_flag"
7735 || test ! -s conftest.err'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; } &&
7741 { ac_try='test -s conftest$ac_exeext'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7748 echo "$as_me:$LINENO: result: yes" >&5
7749 echo "${ECHO_T}yes" >&6
7750 cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_LIBWRAP 1
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7761 echo "$as_me: error: *** libwrap missing" >&2;}
7762 { (exit 1); exit 1; }; }
7765 rm -f conftest.err conftest.$ac_objext \
7766 conftest$ac_exeext conftest.$ac_ext
7769 rm -f conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7776 # -----------------------------------------------------------
7777 # Check whether OpenSSL is available
7778 # -----------------------------------------------------------
7779 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7780 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7782 # Check whether --with-openssl or --without-openssl was given.
7783 if test "${with_openssl+set}" = set; then
7784 withval="$with_openssl"
7785 with_openssl_directory=${withval}
7788 if test "x$with_openssl_directory" != "x"; then
7789 OPENSSL_LIBS="-lssl -lcrypto"
7792 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7793 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7794 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7798 saved_CFLAGS="$CFLAGS"
7799 LIBS="$saved_LIBS $OPENSSL_LIBS"
7800 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <openssl/ssl.h>
7812 CRYPTO_set_id_callback(NULL);
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>conftest.er1
7821 grep -v '^ *+' conftest.er1 >conftest.err
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -z "$ac_c_werror_flag"
7827 || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7847 rm -f conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7851 CFLAGS="$saved_CFLAGS"
7853 if test "$support_tls" = "yes"; then
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_OPENSSL 1
7860 cat >>confdefs.h <<\_ACEOF
7871 echo "$as_me:$LINENO: result: $support_tls" >&5
7872 echo "${ECHO_T}$support_tls" >&6
7878 # ------------------------------------------
7879 # Where to place working dir
7880 # ------------------------------------------
7881 working_dir=`eval echo ${prefix}/var/bacula/working`
7883 # Check whether --with-working-dir or --without-working-dir was given.
7884 if test "${with_working_dir+set}" = set; then
7885 withval="$with_working_dir"
7887 if test "x$withval" != "xno" ; then
7888 working_dir=$withval
7897 # ------------------------------------------
7898 # Where to place scriptdir (script files)
7899 # ------------------------------------------
7900 scriptdir=`eval echo ${sysconfdir}`
7902 # Check whether --with-scriptdir or --without-scriptdir was given.
7903 if test "${with_scriptdir+set}" = set; then
7904 withval="$with_scriptdir"
7906 if test "x$withval" != "xno" ; then
7916 # ------------------------------------------
7917 # Where to send dump email
7918 # ------------------------------------------
7919 dump_email=root@localhost
7921 # Check whether --with-dump-email or --without-dump-email was given.
7922 if test "${with_dump_email+set}" = set; then
7923 withval="$with_dump_email"
7925 if test "x$withval" != "xno" ; then
7934 # ------------------------------------------
7935 # Where to send job email
7936 # ------------------------------------------
7937 job_email=root@localhost
7939 # Check whether --with-job-email or --without-job-email was given.
7940 if test "${with_job_email+set}" = set; then
7941 withval="$with_job_email"
7943 if test "x$withval" != "xno" ; then
7952 # ------------------------------------------
7953 # Where to find smtp host
7954 # ------------------------------------------
7957 # Check whether --with-smtp_host or --without-smtp_host was given.
7958 if test "${with_smtp_host+set}" = set; then
7959 withval="$with_smtp_host"
7961 if test "x$withval" != "xno" ; then
7971 # ------------------------------------
7972 # Where to place pid files
7973 # ------------------------------------
7976 # Check whether --with-pid-dir or --without-pid-dir was given.
7977 if test "${with_pid_dir+set}" = set; then
7978 withval="$with_pid_dir"
7980 if test "x$withval" != "xno" ; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define _PATH_BACULA_PIDDIR "$piddir"
7994 # ------------------------------------
7995 # Where to place subsys "lock file"
7996 # ------------------------------------
7997 subsysdir=/var/run/subsys
7999 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8000 if test "${with_subsys_dir+set}" = set; then
8001 withval="$with_subsys_dir"
8003 if test "x$withval" != "xno" ; then
8014 # ------------------------------------
8015 # Where to start assigning ports
8016 # ------------------------------------
8019 # Check whether --with-baseport or --without-baseport was given.
8020 if test "${with_baseport+set}" = set; then
8021 withval="$with_baseport"
8023 if test "x$withval" != "xno" ; then
8031 dir_port=`expr $baseport`
8032 fd_port=`expr $baseport + 1`
8033 sd_port=`expr $fd_port + 1`
8040 # ------------------------------------------
8041 # Generate passwords
8042 # ------------------------------------------
8045 # Check whether --with-dir-password or --without-dir-password was given.
8046 if test "${with_dir_password+set}" = set; then
8047 withval="$with_dir_password"
8049 if test "x$withval" != "xno" ; then
8050 dir_password=$withval
8056 if test "x$dir_password" = "x" ; then
8057 if test "x$OPENSSL" = "xnone" ; then
8058 key=`autoconf/randpass 33`
8060 key=`openssl rand -base64 33`
8067 # Check whether --with-fd-password or --without-fd-password was given.
8068 if test "${with_fd_password+set}" = set; then
8069 withval="$with_fd_password"
8071 if test "x$withval" != "xno" ; then
8072 fd_password=$withval
8078 if test "x$fd_password" = "x" ; then
8079 if test "x$OPENSSL" = "xnone" ; then
8080 key=`autoconf/randpass 37`
8082 key=`openssl rand -base64 33`
8089 # Check whether --with-sd-password or --without-sd-password was given.
8090 if test "${with_sd_password+set}" = set; then
8091 withval="$with_sd_password"
8093 if test "x$withval" != "xno" ; then
8094 sd_password=$withval
8100 if test "x$sd_password" = "x" ; then
8101 if test "x$OPENSSL" = "xnone" ; then
8102 key=`autoconf/randpass 41`
8104 key=`openssl rand -base64 33`
8111 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8112 if test "${with_mon_dir_password+set}" = set; then
8113 withval="$with_mon_dir_password"
8115 if test "x$withval" != "xno" ; then
8116 mon_dir_password=$withval
8122 if test "x$mon_dir_password" = "x" ; then
8123 if test "x$OPENSSL" = "xnone" ; then
8124 key=`autoconf/randpass 33`
8126 key=`openssl rand -base64 33`
8128 mon_dir_password=$key
8133 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8134 if test "${with_mon_fd_password+set}" = set; then
8135 withval="$with_mon_fd_password"
8137 if test "x$withval" != "xno" ; then
8138 mon_fd_password=$withval
8144 if test "x$mon_fd_password" = "x" ; then
8145 if test "x$OPENSSL" = "xnone" ; then
8146 key=`autoconf/randpass 37`
8148 key=`openssl rand -base64 33`
8150 mon_fd_password=$key
8155 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8156 if test "${with_mon_sd_password+set}" = set; then
8157 withval="$with_mon_sd_password"
8159 if test "x$withval" != "xno" ; then
8160 mon_sd_password=$withval
8166 if test "x$mon_sd_password" = "x" ; then
8167 if test "x$OPENSSL" = "xnone" ; then
8168 key=`autoconf/randpass 41`
8170 key=`openssl rand -base64 33`
8172 mon_sd_password=$key
8184 # Handle users and groups for each daemon
8188 # Check whether --with-dir_user or --without-dir_user was given.
8189 if test "${with_dir_user+set}" = set; then
8190 withval="$with_dir_user"
8192 if test "x$withval" != "x" ; then
8201 # Check whether --with-dir_group or --without-dir_group was given.
8202 if test "${with_dir_group+set}" = set; then
8203 withval="$with_dir_group"
8205 if test "x$withval" != "x" ; then
8214 # Check whether --with-sd_user or --without-sd_user was given.
8215 if test "${with_sd_user+set}" = set; then
8216 withval="$with_sd_user"
8218 if test "x$withval" != "x" ; then
8227 # Check whether --with-sd_group or --without-sd_group was given.
8228 if test "${with_sd_group+set}" = set; then
8229 withval="$with_sd_group"
8231 if test "x$withval" != "x" ; then
8240 # Check whether --with-fd_user or --without-fd_user was given.
8241 if test "${with_fd_user+set}" = set; then
8242 withval="$with_fd_user"
8244 if test "x$withval" != "x" ; then
8253 # Check whether --with-fd_group or --without-fd_group was given.
8254 if test "${with_fd_group+set}" = set; then
8255 withval="$with_fd_group"
8257 if test "x$withval" != "x" ; then
8275 # allow setting default executable permissions
8279 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8280 if test "${with_sbin_perm+set}" = set; then
8281 withval="$with_sbin_perm"
8283 if test "x$withval" != "x" ; then
8292 # ------------------------------------------------
8293 # Bacula check for various SQL database engines
8294 # ------------------------------------------------
8297 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8298 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8300 # Check whether --with-postgresql or --without-postgresql was given.
8301 if test "${with_postgresql+set}" = set; then
8302 withval="$with_postgresql"
8304 if test "$withval" != "no"; then
8305 if test "$db_found" = "yes"; then
8306 echo "$as_me:$LINENO: result: error" >&5
8307 echo "${ECHO_T}error" >&6
8308 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8309 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8310 { (exit 1); exit 1; }; };
8312 if test "$withval" = "yes"; then
8313 if test -f /usr/local/include/libpq-fe.h; then
8314 POSTGRESQL_INCDIR=/usr/local/include
8315 POSTGRESQL_LIBDIR=/usr/local/lib
8316 POSTGRESQL_BINDIR=/usr/local/bin
8317 elif test -f /usr/include/libpq-fe.h; then
8318 POSTGRESQL_INCDIR=/usr/include
8319 POSTGRESQL_LIBDIR=/usr/lib
8320 POSTGRESQL_BINDIR=/usr/bin
8321 elif test -f /usr/include/pgsql/libpq-fe.h; then
8322 POSTGRESQL_INCDIR=/usr/include/pgsql
8323 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8324 POSTGRESQL_BINDIR=/usr/bin
8325 elif test -f /usr/include/postgresql/libpq-fe.h; then
8326 POSTGRESQL_INCDIR=/usr/include/postgresql
8327 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8328 POSTGRESQL_BINDIR=/usr/bin
8330 echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6
8332 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8333 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8334 { (exit 1); exit 1; }; }
8336 elif test -f $withval/include/libpq-fe.h; then
8337 POSTGRESQL_INCDIR=$withval/include
8338 POSTGRESQL_LIBDIR=$withval/lib
8339 POSTGRESQL_BINDIR=$withval/bin
8340 elif test -f $withval/include/postgresql/libpq-fe.h; then
8341 POSTGRESQL_INCDIR=$withval/include/postgresql
8342 POSTGRESQL_LIBDIR=$withval/lib
8343 POSTGRESQL_BINDIR=$withval/bin
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8347 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8348 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8349 { (exit 1); exit 1; }; }
8351 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8352 echo "$as_me:$LINENO: checking for crypt" >&5
8353 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8354 if test "${ac_cv_func_crypt+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8365 #define crypt innocuous_crypt
8367 /* System header to define __stub macros and hopefully few prototypes,
8368 which can conflict with char crypt (); below.
8369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8370 <limits.h> exists even on freestanding compilers. */
8373 # include <limits.h>
8375 # include <assert.h>
8380 /* Override any gcc2 internal prototype to avoid an error. */
8385 /* We use char because int might match the return type of a gcc2
8386 builtin and then its argument prototype would still apply. */
8388 /* The GNU C library defines this for functions which it implements
8389 to always fail with ENOSYS. Some functions are actually named
8390 something starting with __ and the normal name is an alias. */
8391 #if defined (__stub_crypt) || defined (__stub___crypt)
8394 char (*f) () = crypt;
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410 (eval $ac_link) 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_func_crypt=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8437 rm -f conftest.err conftest.$ac_objext \
8438 conftest$ac_exeext conftest.$ac_ext
8440 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8441 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8442 if test $ac_cv_func_crypt = yes; then
8445 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8446 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8447 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_check_lib_save_LIBS=$LIBS
8451 LIBS="-lcrypt $LIBS"
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_lib_crypt_crypt=yes
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_cv_lib_crypt_crypt=no
8503 rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8508 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8509 if test $ac_cv_lib_crypt_crypt = yes; then
8510 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8515 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8516 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8517 SQL_BINDIR=$POSTGRESQL_BINDIR
8518 cat >>confdefs.h <<\_ACEOF
8519 #define HAVE_POSTGRESQL 1
8522 echo "$as_me:$LINENO: result: yes" >&5
8523 echo "${ECHO_T}yes" >&6
8525 support_postgresql=yes
8529 echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6
8535 echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8547 echo "$as_me:$LINENO: checking for MySQL support" >&5
8548 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8550 # Check whether --with-mysql or --without-mysql was given.
8551 if test "${with_mysql+set}" = set; then
8552 withval="$with_mysql"
8554 if test "$withval" != "no"; then
8555 if test "$withval" = "yes"; then
8556 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8557 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8558 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8559 MYSQL_BINDIR=/usr/local/mysql/bin
8560 elif test -f /usr/include/mysql/mysql.h; then
8561 MYSQL_INCDIR=/usr/include/mysql
8562 MYSQL_LIBDIR=/usr/lib/mysql
8563 MYSQL_BINDIR=/usr/bin
8564 elif test -f /usr/include/mysql.h; then
8565 MYSQL_INCDIR=/usr/include
8566 MYSQL_LIBDIR=/usr/lib
8567 MYSQL_BINDIR=/usr/bin
8568 elif test -f /usr/local/include/mysql/mysql.h; then
8569 MYSQL_INCDIR=/usr/local/include/mysql
8570 MYSQL_LIBDIR=/usr/local/lib/mysql
8571 MYSQL_BINDIR=/usr/local/bin
8572 elif test -f /usr/local/include/mysql.h; then
8573 MYSQL_INCDIR=/usr/local/include
8574 MYSQL_LIBDIR=/usr/local/lib
8575 MYSQL_BINDIR=/usr/local/bin
8577 echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6
8579 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8580 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8581 { (exit 1); exit 1; }; }
8584 if test -f $withval/include/mysql/mysql.h; then
8585 MYSQL_INCDIR=$withval/include/mysql
8586 MYSQL_LIBDIR=$withval/lib/mysql
8587 MYSQL_BINDIR=$withval/bin
8588 elif test -f $withval/include/mysql.h; then
8589 MYSQL_INCDIR=$withval/include
8590 MYSQL_LIBDIR=$withval/lib
8591 MYSQL_BINDIR=$withval/bin
8593 echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6
8595 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8596 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8597 { (exit 1); exit 1; }; }
8600 SQL_INCLUDE=-I$MYSQL_INCDIR
8601 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8602 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_THREAD_SAFE_MYSQL 1
8608 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8610 SQL_BINDIR=$MYSQL_BINDIR
8612 cat >>confdefs.h <<\_ACEOF
8613 #define HAVE_MYSQL 1
8616 echo "$as_me:$LINENO: result: yes" >&5
8617 echo "${ECHO_T}yes" >&6
8624 echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6
8632 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8633 if test "${with_embedded_mysql+set}" = set; then
8634 withval="$with_embedded_mysql"
8636 if test "$withval" != "no"; then
8637 if test "$withval" = "yes"; then
8638 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8639 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8640 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8641 MYSQL_BINDIR=/usr/local/mysql/bin
8642 elif test -f /usr/include/mysql/mysql.h; then
8643 MYSQL_INCDIR=/usr/include/mysql
8644 MYSQL_LIBDIR=/usr/lib/mysql
8645 MYSQL_BINDIR=/usr/bin
8646 elif test -f /usr/include/mysql.h; then
8647 MYSQL_INCDIR=/usr/include
8648 MYSQL_LIBDIR=/usr/lib
8649 MYSQL_BINDIR=/usr/bin
8650 elif test -f /usr/local/include/mysql/mysql.h; then
8651 MYSQL_INCDIR=/usr/local/include/mysql
8652 MYSQL_LIBDIR=/usr/local/lib/mysql
8653 MYSQL_BINDIR=/usr/local/bin
8654 elif test -f /usr/local/include/mysql.h; then
8655 MYSQL_INCDIR=/usr/local/include
8656 MYSQL_LIBDIR=/usr/local/lib
8657 MYSQL_BINDIR=/usr/local/bin
8659 echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6
8661 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8662 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8663 { (exit 1); exit 1; }; }
8666 if test -f $withval/include/mysql/mysql.h; then
8667 MYSQL_INCDIR=$withval/include/mysql
8668 MYSQL_LIBDIR=$withval/lib/mysql
8669 MYSQL_BINDIR=$withval/bin
8670 elif test -f $withval/include/mysql.h; then
8671 MYSQL_INCDIR=$withval/include
8672 MYSQL_LIBDIR=$withval/lib
8673 MYSQL_BINDIR=$withval/bin
8675 echo "$as_me:$LINENO: result: no" >&5
8676 echo "${ECHO_T}no" >&6
8677 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8678 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8679 { (exit 1); exit 1; }; }
8682 SQL_INCLUDE=-I$MYSQL_INCDIR
8683 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8684 SQL_BINDIR=$MYSQL_BINDIR
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_MYSQL 1
8690 cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_EMBEDDED_MYSQL 1
8694 echo "$as_me:$LINENO: result: yes" >&5
8695 echo "${ECHO_T}yes" >&6
8702 echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6
8718 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8719 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8721 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8722 if test "${with_sqlite3+set}" = set; then
8723 withval="$with_sqlite3"
8725 if test "$withval" != "no"; then
8726 if test "$withval" = "yes"; then
8727 if test -f /usr/local/include/sqlite3.h; then
8728 SQLITE_INCDIR=/usr/local/include
8729 SQLITE_LIBDIR=/usr/local/lib
8730 SQLITE_BINDIR=/usr/local/bin
8731 elif test -f /usr/include/sqlite3.h; then
8732 SQLITE_INCDIR=/usr/include
8733 SQLITE_LIBDIR=/usr/lib
8734 SQLITE_BINDIR=/usr/bin
8735 elif test -f $prefix/include/sqlite3.h; then
8736 SQLITE_INCDIR=$prefix/include
8737 SQLITE_LIBDIR=$prefix/lib
8738 SQLITE_BINDIR=$prefix/bin
8740 echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8742 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8743 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8744 { (exit 1); exit 1; }; }
8747 if test -f $withval/sqlite3.h; then
8748 SQLITE_INCDIR=$withval
8749 SQLITE_LIBDIR=$withval
8750 SQLITE_BINDIR=$withval
8751 elif test -f $withval/include/sqlite3.h; then
8752 SQLITE_INCDIR=$withval/include
8753 SQLITE_LIBDIR=$withval/lib
8754 SQLITE_BINDIR=$withval/bin
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8759 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8760 { (exit 1); exit 1; }; }
8763 SQL_INCLUDE=-I$SQLITE_INCDIR
8764 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8765 SQL_BINDIR=$SQLITE_BINDIR
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_SQLITE3 1
8771 echo "$as_me:$LINENO: result: yes" >&5
8772 echo "${ECHO_T}yes" >&6
8779 echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6
8785 echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8797 echo "$as_me:$LINENO: checking for SQLite support" >&5
8798 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8800 # Check whether --with-sqlite or --without-sqlite was given.
8801 if test "${with_sqlite+set}" = set; then
8802 withval="$with_sqlite"
8804 if test "$withval" != "no"; then
8805 if test "$withval" = "yes"; then
8806 if test -f /usr/local/include/sqlite.h; then
8807 SQLITE_INCDIR=/usr/local/include
8808 SQLITE_LIBDIR=/usr/local/lib
8809 SQLITE_BINDIR=/usr/local/bin
8810 elif test -f /usr/include/sqlite.h; then
8811 SQLITE_INCDIR=/usr/include
8812 SQLITE_LIBDIR=/usr/lib
8813 SQLITE_BINDIR=/usr/bin
8814 elif test -f $prefix/include/sqlite.h; then
8815 SQLITE_INCDIR=$prefix/include
8816 SQLITE_LIBDIR=$prefix/lib
8817 SQLITE_BINDIR=$prefix/bin
8819 echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6
8821 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8822 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8823 { (exit 1); exit 1; }; }
8826 if test -f $withval/sqlite.h; then
8827 SQLITE_INCDIR=$withval
8828 SQLITE_LIBDIR=$withval
8829 SQLITE_BINDIR=$withval
8830 elif test -f $withval/include/sqlite.h; then
8831 SQLITE_INCDIR=$withval/include
8832 SQLITE_LIBDIR=$withval/lib
8833 SQLITE_BINDIR=$withval/bin
8835 echo "$as_me:$LINENO: result: no" >&5
8836 echo "${ECHO_T}no" >&6
8837 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8838 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8839 { (exit 1); exit 1; }; }
8842 SQL_INCLUDE=-I$SQLITE_INCDIR
8843 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8844 SQL_BINDIR=$SQLITE_BINDIR
8846 cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_SQLITE 1
8850 echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6
8858 echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8864 echo "$as_me:$LINENO: result: no" >&5
8865 echo "${ECHO_T}no" >&6
8877 cat >>confdefs.h <<\_ACEOF
8878 #define PROTOTYPES 1
8882 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8883 if test -z "$CCOPTS"; then
8884 CCOPTS='-g -O2 -Wall'
8892 largefile_support="no"
8894 # Check whether --enable-largefile or --disable-largefile was given.
8895 if test "${enable_largefile+set}" = set; then
8896 enableval="$enable_largefile"
8899 if test "$enable_largefile" != no; then
8900 if test -n "$ac_tool_prefix"; then
8901 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8902 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8903 echo "$as_me:$LINENO: checking for $ac_word" >&5
8904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8905 if test "${ac_cv_prog_GETCONF+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 if test -n "$GETCONF"; then
8909 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 GETCONF=$ac_cv_prog_GETCONF
8928 if test -n "$GETCONF"; then
8929 echo "$as_me:$LINENO: result: $GETCONF" >&5
8930 echo "${ECHO_T}$GETCONF" >&6
8932 echo "$as_me:$LINENO: result: no" >&5
8933 echo "${ECHO_T}no" >&6
8937 if test -z "$ac_cv_prog_GETCONF"; then
8938 ac_ct_GETCONF=$GETCONF
8939 # Extract the first word of "getconf", so it can be a program name with args.
8940 set dummy getconf; ac_word=$2
8941 echo "$as_me:$LINENO: checking for $ac_word" >&5
8942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8943 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 if test -n "$ac_ct_GETCONF"; then
8947 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_prog_ac_ct_GETCONF="getconf"
8957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8966 if test -n "$ac_ct_GETCONF"; then
8967 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8968 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8970 echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8974 GETCONF=$ac_ct_GETCONF
8976 GETCONF="$ac_cv_prog_GETCONF"
8979 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8980 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8981 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8985 ac_cv_sys_largefile_CFLAGS=no
8987 # IRIX 6.2 and later require cc -n32.
8988 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8989 if test "$GCC" != yes; then
8990 ac_cv_sys_largefile_CFLAGS=-n32
8993 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011 (eval $ac_link) 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -z "$ac_c_werror_flag"
9019 || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_cv_sys_largefile_CFLAGS=no
9038 rm -f conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9044 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9045 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9046 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9047 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9048 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9052 ac_cv_sys_largefile_LDFLAGS=no
9056 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9057 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9058 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9059 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9060 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9064 ac_cv_sys_largefile_LIBS=no
9068 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9069 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9071 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9074 -D_FILE_OFFSET_BITS=*) ;;
9075 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9076 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9082 '') CPPFLAGS="$ac_flag" ;;
9083 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9091 '') CFLAGS="$ac_flag" ;;
9092 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9097 case "$ac_cv_sys_largefile_LDFLAGS" in
9101 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9102 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9105 case "$ac_cv_sys_largefile_LIBS" in
9109 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9110 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9113 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9114 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9115 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_cv_sys_file_offset_bits=no
9119 ac_cv_sys_file_offset_bits=64
9120 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9122 -D_FILE_OFFSET_BITS)
9123 ac_cv_sys_file_offset_bits=1 ;;
9124 -D_FILE_OFFSET_BITS=*)
9125 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9130 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9131 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9132 if test "$ac_cv_sys_file_offset_bits" != no; then
9134 cat >>confdefs.h <<_ACEOF
9135 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9139 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9140 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9141 if test "${ac_cv_sys_largefile_source+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 ac_cv_sys_largefile_source=no
9145 ac_cv_sys_largefile_source=1
9146 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9148 -D_LARGEFILE_SOURCE)
9149 ac_cv_sys_largefile_source=1 ;;
9150 -D_LARGEFILE_SOURCE=*)
9151 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9156 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9157 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9158 if test "$ac_cv_sys_largefile_source" != no; then
9160 cat >>confdefs.h <<_ACEOF
9161 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9165 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9166 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9167 if test "${ac_cv_sys_large_files+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 ac_cv_sys_large_files=no
9171 ac_cv_sys_large_files=1
9172 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9175 ac_cv_sys_large_files=1 ;;
9177 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9182 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9183 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9184 if test "$ac_cv_sys_large_files" != no; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define _LARGE_FILES $ac_cv_sys_large_files
9195 echo "$as_me:$LINENO: checking for X" >&5
9196 echo $ECHO_N "checking for X... $ECHO_C" >&6
9199 # Check whether --with-x or --without-x was given.
9200 if test "${with_x+set}" = set; then
9204 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9205 if test "x$with_x" = xno; then
9206 # The user explicitly disabled X.
9209 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9210 # Both variables are already set.
9213 if test "${ac_cv_have_x+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 # One or both of the vars are not set, and there is no cached value.
9217 ac_x_includes=no ac_x_libraries=no
9219 if mkdir conftest.dir; then
9221 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9222 cat >Imakefile <<'_ACEOF'
9224 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9226 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9228 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9229 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9230 for ac_extension in a so sl; do
9231 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9232 test -f $ac_im_libdir/libX11.$ac_extension; then
9233 ac_im_usrlibdir=$ac_im_libdir; break
9236 # Screen out bogus values from the imake configuration. They are
9237 # bogus both because they are the default anyway, and because
9238 # using them would break gcc on systems where it needs fixed includes.
9239 case $ac_im_incroot in
9241 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9243 case $ac_im_usrlibdir in
9245 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9252 # Standard set of common directories for X headers.
9253 # Check X11 before X11Rn because it is often a symlink to the current release.
9265 /usr/local/X11/include
9266 /usr/local/X11R6/include
9267 /usr/local/X11R5/include
9268 /usr/local/X11R4/include
9270 /usr/local/include/X11
9271 /usr/local/include/X11R6
9272 /usr/local/include/X11R5
9273 /usr/local/include/X11R4
9277 /usr/XFree86/include/X11
9281 /usr/unsupported/include
9283 /usr/local/x11r5/include
9284 /usr/lpp/Xamples/include
9286 /usr/openwin/include
9287 /usr/openwin/share/include'
9289 if test "$ac_x_includes" = no; then
9290 # Guess where to find include files, by looking for Intrinsic.h.
9291 # First, try using that file with no special directory specified.
9292 cat >conftest.$ac_ext <<_ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 #include <X11/Intrinsic.h>
9300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9303 grep -v '^ *+' conftest.er1 >conftest.err
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null; then
9308 if test -s conftest.err; then
9309 ac_cpp_err=$ac_c_preproc_warn_flag
9310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9317 if test -z "$ac_cpp_err"; then
9318 # We can compile using X headers with no special include directory.
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 for ac_dir in $ac_x_header_dirs; do
9325 if test -r "$ac_dir/X11/Intrinsic.h"; then
9326 ac_x_includes=$ac_dir
9331 rm -f conftest.err conftest.$ac_ext
9332 fi # $ac_x_includes = no
9334 if test "$ac_x_libraries" = no; then
9335 # Check for the libraries.
9336 # See if we find them without any special options.
9337 # Don't add to $LIBS permanently.
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <X11/Intrinsic.h>
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9378 # We can link X programs with no special library path.
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9385 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9387 # Don't even attempt the hair of trying to link an X program!
9388 for ac_extension in a so sl; do
9389 if test -r $ac_dir/libXt.$ac_extension; then
9390 ac_x_libraries=$ac_dir
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 fi # $ac_x_libraries = no
9400 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9401 # Didn't find X anywhere. Cache the known absence of X.
9402 ac_cv_have_x="have_x=no"
9404 # Record where we found X for the cache.
9405 ac_cv_have_x="have_x=yes \
9406 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9411 eval "$ac_cv_have_x"
9414 if test "$have_x" != yes; then
9415 echo "$as_me:$LINENO: result: $have_x" >&5
9416 echo "${ECHO_T}$have_x" >&6
9419 # If each of the values was on the command line, it overrides each guess.
9420 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9421 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9422 # Update the cache value to reflect the command line values.
9423 ac_cv_have_x="have_x=yes \
9424 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9425 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9426 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9429 if test "$no_x" = yes; then
9430 # Not all programs may use this symbol, but it does not hurt to define it.
9432 cat >>confdefs.h <<\_ACEOF
9433 #define X_DISPLAY_MISSING 1
9436 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9438 if test -n "$x_includes"; then
9439 X_CFLAGS="$X_CFLAGS -I$x_includes"
9442 # It would also be nice to do this for all -L options, not just this one.
9443 if test -n "$x_libraries"; then
9444 X_LIBS="$X_LIBS -L$x_libraries"
9445 # For Solaris; some versions of Sun CC require a space after -R and
9446 # others require no space. Words are not sufficient . . . .
9447 case `(uname -sr) 2>/dev/null` in
9449 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9450 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9451 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9496 rm -f conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 if test $ac_R_nospace = yes; then
9499 echo "$as_me:$LINENO: result: no" >&5
9500 echo "${ECHO_T}no" >&6
9501 X_LIBS="$X_LIBS -R$x_libraries"
9503 LIBS="$ac_xsave_LIBS -R $x_libraries"
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9548 rm -f conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 if test $ac_R_space = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552 echo "${ECHO_T}yes" >&6
9553 X_LIBS="$X_LIBS -R $x_libraries"
9555 echo "$as_me:$LINENO: result: neither works" >&5
9556 echo "${ECHO_T}neither works" >&6
9563 # Check for system-dependent libraries X programs must link with.
9564 # Do this before checking for the system-independent R6 libraries
9565 # (-lICE), since we may need -lsocket or whatever for X linking.
9567 if test "$ISC" = yes; then
9568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9570 # Martyn Johnson says this is needed for Ultrix, if the X
9571 # libraries were built with DECnet support. And Karl Berry says
9572 # the Alpha needs dnet_stub (dnet does not exist).
9573 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any gcc2 internal prototype to avoid an error. */
9585 /* We use char because int might match the return type of a gcc2
9586 builtin and then its argument prototype would still apply. */
9587 char XOpenDisplay ();
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>conftest.er1
9600 grep -v '^ *+' conftest.er1 >conftest.err
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -z "$ac_c_werror_flag"
9606 || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9624 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9625 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 ac_check_lib_save_LIBS=$LIBS
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9637 /* Override any gcc2 internal prototype to avoid an error. */
9641 /* We use char because int might match the return type of a gcc2
9642 builtin and then its argument prototype would still apply. */
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_lib_dnet_dnet_ntoa=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_cv_lib_dnet_dnet_ntoa=no
9681 rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9685 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9686 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9687 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9688 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9691 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9692 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9693 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9694 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 ac_check_lib_save_LIBS=$LIBS
9698 LIBS="-ldnet_stub $LIBS"
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_cv_lib_dnet_stub_dnet_ntoa=no
9750 rm -f conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9754 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9756 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS="$ac_xsave_LIBS"
9766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9767 # to get the SysV transport functions.
9768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9770 # The nsl library prevents programs from opening the X display
9771 # on Irix 5.2, according to T.E. Dickey.
9772 # The functions gethostbyname, getservbyname, and inet_addr are
9773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9774 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9775 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9776 if test "${ac_cv_func_gethostbyname+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9787 #define gethostbyname innocuous_gethostbyname
9789 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char gethostbyname (); below.
9791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792 <limits.h> exists even on freestanding compilers. */
9795 # include <limits.h>
9797 # include <assert.h>
9800 #undef gethostbyname
9802 /* Override any gcc2 internal prototype to avoid an error. */
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9809 char gethostbyname ();
9810 /* The GNU C library defines this for functions which it implements
9811 to always fail with ENOSYS. Some functions are actually named
9812 something starting with __ and the normal name is an alias. */
9813 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9816 char (*f) () = gethostbyname;
9825 return f != gethostbyname;
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_func_gethostbyname=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_func_gethostbyname=no
9859 rm -f conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9862 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9863 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9865 if test $ac_cv_func_gethostbyname = no; then
9866 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9867 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9868 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 ac_check_lib_save_LIBS=$LIBS
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9880 /* Override any gcc2 internal prototype to avoid an error. */
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9886 char gethostbyname ();
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9899 grep -v '^ *+' conftest.er1 >conftest.err
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_lib_nsl_gethostbyname=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_cv_lib_nsl_gethostbyname=no
9924 rm -f conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9929 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9930 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9931 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9934 if test $ac_cv_lib_nsl_gethostbyname = no; then
9935 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9936 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9937 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 ac_check_lib_save_LIBS=$LIBS
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9955 char gethostbyname ();
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_lib_bsd_gethostbyname=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_cv_lib_bsd_gethostbyname=no
9993 rm -f conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9997 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9998 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9999 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10006 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10007 # socket/setsockopt and other routines are undefined under SCO ODT
10008 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10009 # on later versions), says Simon Leinen: it contains gethostby*
10010 # variants that don't use the name server (or something). -lsocket
10011 # must be given before -lnsl if both are needed. We assume that
10012 # if connect needs -lnsl, so does gethostbyname.
10013 echo "$as_me:$LINENO: checking for connect" >&5
10014 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10015 if test "${ac_cv_func_connect+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define connect innocuous_connect
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char connect (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10034 # include <limits.h>
10036 # include <assert.h>
10041 /* Override any gcc2 internal prototype to avoid an error. */
10046 /* We use char because int might match the return type of a gcc2
10047 builtin and then its argument prototype would still apply. */
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined (__stub_connect) || defined (__stub___connect)
10055 char (*f) () = connect;
10064 return f != connect;
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_func_connect=yes
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_func_connect=no
10098 rm -f conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10101 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10102 echo "${ECHO_T}$ac_cv_func_connect" >&6
10104 if test $ac_cv_func_connect = no; then
10105 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10106 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10107 if test "${ac_cv_lib_socket_connect+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10119 /* Override any gcc2 internal prototype to avoid an error. */
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag"
10144 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_lib_socket_connect=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_lib_socket_connect=no
10163 rm -f conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10167 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10168 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10169 if test $ac_cv_lib_socket_connect = yes; then
10170 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10175 # Guillermo Gomez says -lposix is necessary on A/UX.
10176 echo "$as_me:$LINENO: checking for remove" >&5
10177 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10178 if test "${ac_cv_func_remove+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10189 #define remove innocuous_remove
10191 /* System header to define __stub macros and hopefully few prototypes,
10192 which can conflict with char remove (); below.
10193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10194 <limits.h> exists even on freestanding compilers. */
10197 # include <limits.h>
10199 # include <assert.h>
10204 /* Override any gcc2 internal prototype to avoid an error. */
10209 /* We use char because int might match the return type of a gcc2
10210 builtin and then its argument prototype would still apply. */
10212 /* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215 #if defined (__stub_remove) || defined (__stub___remove)
10218 char (*f) () = remove;
10227 return f != remove;
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag"
10242 || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_func_remove=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_func_remove=no
10261 rm -f conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10264 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10265 echo "${ECHO_T}$ac_cv_func_remove" >&6
10267 if test $ac_cv_func_remove = no; then
10268 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10269 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10270 if test "${ac_cv_lib_posix_remove+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-lposix $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10282 /* Override any gcc2 internal prototype to avoid an error. */
10286 /* We use char because int might match the return type of a gcc2
10287 builtin and then its argument prototype would still apply. */
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag"
10307 || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest$ac_exeext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_lib_posix_remove=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_lib_posix_remove=no
10326 rm -f conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10330 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10331 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10332 if test $ac_cv_lib_posix_remove = yes; then
10333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10338 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10339 echo "$as_me:$LINENO: checking for shmat" >&5
10340 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10341 if test "${ac_cv_func_shmat+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10352 #define shmat innocuous_shmat
10354 /* System header to define __stub macros and hopefully few prototypes,
10355 which can conflict with char shmat (); below.
10356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10357 <limits.h> exists even on freestanding compilers. */
10360 # include <limits.h>
10362 # include <assert.h>
10367 /* Override any gcc2 internal prototype to avoid an error. */
10372 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10375 /* The GNU C library defines this for functions which it implements
10376 to always fail with ENOSYS. Some functions are actually named
10377 something starting with __ and the normal name is an alias. */
10378 #if defined (__stub_shmat) || defined (__stub___shmat)
10381 char (*f) () = shmat;
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_func_shmat=yes
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 ac_cv_func_shmat=no
10424 rm -f conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10428 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10430 if test $ac_cv_func_shmat = no; then
10431 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10432 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10433 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 ac_check_lib_save_LIBS=$LIBS
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10445 /* Override any gcc2 internal prototype to avoid an error. */
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10464 grep -v '^ *+' conftest.er1 >conftest.err
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 ac_cv_lib_ipc_shmat=yes
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 ac_cv_lib_ipc_shmat=no
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS=$ac_check_lib_save_LIBS
10493 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10494 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10495 if test $ac_cv_lib_ipc_shmat = yes; then
10496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10502 # Check for libraries that X11R6 Xt/Xaw programs need.
10503 ac_save_LDFLAGS=$LDFLAGS
10504 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10505 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10506 # check for ICE first), but we must link in the order -lSM -lICE or
10507 # we get undefined symbols. So assume we have SM if we have ICE.
10508 # These have to be linked with before -lX11, unlike the other
10509 # libraries we check for below, so use a different variable.
10510 # John Interrante, Karl Berry
10511 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10512 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10513 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 ac_check_lib_save_LIBS=$LIBS
10517 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10525 /* Override any gcc2 internal prototype to avoid an error. */
10529 /* We use char because int might match the return type of a gcc2
10530 builtin and then its argument prototype would still apply. */
10531 char IceConnectionNumber ();
10535 IceConnectionNumber ();
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag"
10550 || test ! -s conftest.err'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest$ac_exeext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_cv_lib_ICE_IceConnectionNumber=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_cv_lib_ICE_IceConnectionNumber=no
10569 rm -f conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571 LIBS=$ac_check_lib_save_LIBS
10573 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10574 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10575 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10576 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10579 LDFLAGS=$ac_save_LDFLAGS
10641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10643 echo "$as_me:$LINENO: checking for $ac_header" >&5
10644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10651 # Is the header compilable?
10652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 $ac_includes_default
10661 #include <$ac_header>
10663 rm -f conftest.$ac_objext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag"
10673 || test ! -s conftest.err'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest.$ac_objext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_header_compiler=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ac_header_compiler=no
10692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10694 echo "${ECHO_T}$ac_header_compiler" >&6
10696 # Is the header present?
10697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 #include <$ac_header>
10707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10710 grep -v '^ *+' conftest.er1 >conftest.err
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } >/dev/null; then
10715 if test -s conftest.err; then
10716 ac_cpp_err=$ac_c_preproc_warn_flag
10717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10724 if test -z "$ac_cpp_err"; then
10725 ac_header_preproc=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_header_preproc=no
10732 rm -f conftest.err conftest.$ac_ext
10733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10734 echo "${ECHO_T}$ac_header_preproc" >&6
10736 # So? What about this header?
10737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10743 ac_header_preproc=yes
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10760 ## ------------------------------------------ ##
10761 ## Report this to the AC_PACKAGE_NAME lists. ##
10762 ## ------------------------------------------ ##
10765 sed "s/^/$as_me: WARNING: /" >&2
10768 echo "$as_me:$LINENO: checking for $ac_header" >&5
10769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 eval "$as_ac_Header=\$ac_header_preproc"
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10780 cat >>confdefs.h <<_ACEOF
10781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10788 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10790 if test "${ac_cv_header_stdc+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 cat >conftest.$ac_ext <<_ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 #include <stdlib.h>
10800 #include <stdarg.h>
10801 #include <string.h>
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_cv_header_stdc=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_cv_header_stdc=no
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10843 if test $ac_cv_header_stdc = yes; then
10844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <string.h>
10854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10855 $EGREP "memchr" >/dev/null 2>&1; then
10858 ac_cv_header_stdc=no
10864 if test $ac_cv_header_stdc = yes; then
10865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <stdlib.h>
10875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10876 $EGREP "free" >/dev/null 2>&1; then
10879 ac_cv_header_stdc=no
10885 if test $ac_cv_header_stdc = yes; then
10886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10887 if test "$cross_compiling" = yes; then
10890 cat >conftest.$ac_ext <<_ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10897 #if ((' ' & 0x0FF) == 0x020)
10898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10901 # define ISLOWER(c) \
10902 (('a' <= (c) && (c) <= 'i') \
10903 || ('j' <= (c) && (c) <= 'r') \
10904 || ('s' <= (c) && (c) <= 'z'))
10905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10913 for (i = 0; i < 256; i++)
10914 if (XOR (islower (i), ISLOWER (i))
10915 || toupper (i) != TOUPPER (i))
10920 rm -f conftest$ac_exeext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922 (eval $ac_link) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10933 echo "$as_me: program exited with status $ac_status" >&5
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ( exit $ac_status )
10938 ac_cv_header_stdc=no
10940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10945 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10946 if test $ac_cv_header_stdc = yes; then
10948 cat >>confdefs.h <<\_ACEOF
10949 #define STDC_HEADERS 1
10954 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10955 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10956 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 #include <sys/types.h>
10969 return makedev(0, 0);
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>conftest.er1
10978 grep -v '^ *+' conftest.er1 >conftest.err
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_c_werror_flag"
10984 || test ! -s conftest.err'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; } &&
10990 { ac_try='test -s conftest$ac_exeext'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_cv_header_sys_types_h_makedev=yes
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_cv_header_sys_types_h_makedev=no
11003 rm -f conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11007 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11008 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11010 if test $ac_cv_header_sys_types_h_makedev = no; then
11011 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11012 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11013 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11014 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11018 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11020 # Is the header compilable?
11021 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11022 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11030 #include <sys/mkdev.h>
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>conftest.er1
11036 grep -v '^ *+' conftest.er1 >conftest.err
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -z "$ac_c_werror_flag"
11042 || test ! -s conftest.err'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 ac_header_compiler=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_header_compiler=no
11061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11063 echo "${ECHO_T}$ac_header_compiler" >&6
11065 # Is the header present?
11066 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11067 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 #include <sys/mkdev.h>
11076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } >/dev/null; then
11084 if test -s conftest.err; then
11085 ac_cpp_err=$ac_c_preproc_warn_flag
11086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11093 if test -z "$ac_cpp_err"; then
11094 ac_header_preproc=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_header_preproc=no
11101 rm -f conftest.err conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103 echo "${ECHO_T}$ac_header_preproc" >&6
11105 # So? What about this header?
11106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11108 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11109 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11111 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11112 ac_header_preproc=yes
11115 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11116 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11118 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11120 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11122 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11124 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11126 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11129 ## ------------------------------------------ ##
11130 ## Report this to the AC_PACKAGE_NAME lists. ##
11131 ## ------------------------------------------ ##
11134 sed "s/^/$as_me: WARNING: /" >&2
11137 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11138 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11139 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11145 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11148 if test $ac_cv_header_sys_mkdev_h = yes; then
11150 cat >>confdefs.h <<\_ACEOF
11151 #define MAJOR_IN_MKDEV 1
11158 if test $ac_cv_header_sys_mkdev_h = no; then
11159 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11160 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11161 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11162 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11166 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11168 # Is the header compilable?
11169 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11170 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 $ac_includes_default
11178 #include <sys/sysmacros.h>
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>conftest.er1
11184 grep -v '^ *+' conftest.er1 >conftest.err
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -z "$ac_c_werror_flag"
11190 || test ! -s conftest.err'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 ac_header_compiler=yes
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 ac_header_compiler=no
11209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11211 echo "${ECHO_T}$ac_header_compiler" >&6
11213 # Is the header present?
11214 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11215 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 #include <sys/sysmacros.h>
11224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1 >conftest.err
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } >/dev/null; then
11232 if test -s conftest.err; then
11233 ac_cpp_err=$ac_c_preproc_warn_flag
11234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11241 if test -z "$ac_cpp_err"; then
11242 ac_header_preproc=yes
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 ac_header_preproc=no
11249 rm -f conftest.err conftest.$ac_ext
11250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11251 echo "${ECHO_T}$ac_header_preproc" >&6
11253 # So? What about this header?
11254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11256 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11257 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11259 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11260 ac_header_preproc=yes
11263 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11264 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11266 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11268 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11270 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11272 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11274 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11277 ## ------------------------------------------ ##
11278 ## Report this to the AC_PACKAGE_NAME lists. ##
11279 ## ------------------------------------------ ##
11282 sed "s/^/$as_me: WARNING: /" >&2
11285 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11286 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11287 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11292 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11293 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11296 if test $ac_cv_header_sys_sysmacros_h = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define MAJOR_IN_SYSMACROS 1
11313 ac_header_dirent=no
11314 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11315 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11316 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11317 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <sys/types.h>
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 eval "$as_ac_Header=yes"
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 eval "$as_ac_Header=no"
11368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11377 ac_header_dirent=$ac_hdr; break
11381 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11382 if test $ac_header_dirent = dirent.h; then
11383 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11384 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11385 if test "${ac_cv_search_opendir+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 ac_func_search_save_LIBS=$LIBS
11389 ac_cv_search_opendir=no
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11397 /* Override any gcc2 internal prototype to avoid an error. */
11401 /* We use char because int might match the return type of a gcc2
11402 builtin and then its argument prototype would still apply. */
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414 (eval $ac_link) 2>conftest.er1
11416 grep -v '^ *+' conftest.er1 >conftest.err
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -z "$ac_c_werror_flag"
11422 || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_cv_search_opendir="none required"
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11440 rm -f conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442 if test "$ac_cv_search_opendir" = no; then
11443 for ac_lib in dir; do
11444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11452 /* Override any gcc2 internal prototype to avoid an error. */
11456 /* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11469 (eval $ac_link) 2>conftest.er1
11471 grep -v '^ *+' conftest.er1 >conftest.err
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag"
11477 || test ! -s conftest.err'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest$ac_exeext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_cv_search_opendir="-l$ac_lib"
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11496 rm -f conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_func_search_save_LIBS
11502 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11503 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11504 if test "$ac_cv_search_opendir" != no; then
11505 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11510 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11511 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11512 if test "${ac_cv_search_opendir+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 ac_func_search_save_LIBS=$LIBS
11516 ac_cv_search_opendir=no
11517 cat >conftest.$ac_ext <<_ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11524 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541 (eval $ac_link) 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_cv_search_opendir="none required"
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11567 rm -f conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569 if test "$ac_cv_search_opendir" = no; then
11570 for ac_lib in x; do
11571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11572 cat >conftest.$ac_ext <<_ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11579 /* Override any gcc2 internal prototype to avoid an error. */
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11594 rm -f conftest.$ac_objext conftest$ac_exeext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596 (eval $ac_link) 2>conftest.er1
11598 grep -v '^ *+' conftest.er1 >conftest.err
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_c_werror_flag"
11604 || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_search_opendir="-l$ac_lib"
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11623 rm -f conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_func_search_save_LIBS
11629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11631 if test "$ac_cv_search_opendir" != no; then
11632 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11638 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11639 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11640 if test "${ac_cv_header_stat_broken+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 #include <sys/types.h>
11650 #include <sys/stat.h>
11652 #if defined(S_ISBLK) && defined(S_IFDIR)
11653 # if S_ISBLK (S_IFDIR)
11658 #if defined(S_ISBLK) && defined(S_IFCHR)
11659 # if S_ISBLK (S_IFCHR)
11664 #if defined(S_ISLNK) && defined(S_IFREG)
11665 # if S_ISLNK (S_IFREG)
11670 #if defined(S_ISSOCK) && defined(S_IFREG)
11671 # if S_ISSOCK (S_IFREG)
11677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11678 $EGREP "You lose" >/dev/null 2>&1; then
11679 ac_cv_header_stat_broken=yes
11681 ac_cv_header_stat_broken=no
11686 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11687 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11688 if test $ac_cv_header_stat_broken = yes; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define STAT_MACROS_BROKEN 1
11696 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 #include <sys/types.h>
11708 #include <sys/wait.h>
11709 #ifndef WEXITSTATUS
11710 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag"
11736 || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_cv_header_sys_wait_h=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_cv_header_sys_wait_h=no
11755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11759 if test $ac_cv_header_sys_wait_h = yes; then
11761 cat >>confdefs.h <<\_ACEOF
11762 #define HAVE_SYS_WAIT_H 1
11767 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11768 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11769 if test "${ac_cv_header_time+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 #include <sys/types.h>
11779 #include <sys/time.h>
11785 if ((struct tm *) 0)
11791 rm -f conftest.$ac_objext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_header_time=yes
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_cv_header_time=no
11820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11822 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11823 echo "${ECHO_T}$ac_cv_header_time" >&6
11824 if test $ac_cv_header_time = yes; then
11826 cat >>confdefs.h <<\_ACEOF
11827 #define TIME_WITH_SYS_TIME 1
11833 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11834 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11835 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11848 static struct stat ac_aggr;
11849 if (ac_aggr.st_blksize)
11855 rm -f conftest.$ac_objext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>conftest.er1
11859 grep -v '^ *+' conftest.er1 >conftest.err
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_c_werror_flag"
11865 || test ! -s conftest.err'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_cv_member_struct_stat_st_blksize=yes
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11892 static struct stat ac_aggr;
11893 if (sizeof ac_aggr.st_blksize)
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag"
11909 || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_cv_member_struct_stat_st_blksize=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 ac_cv_member_struct_stat_st_blksize=no
11928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11932 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11933 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11934 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_ST_BLKSIZE 1
11948 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11949 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11950 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 $ac_includes_default
11963 static struct stat ac_aggr;
11964 if (ac_aggr.st_blocks)
11970 rm -f conftest.$ac_objext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972 (eval $ac_compile) 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -z "$ac_c_werror_flag"
11980 || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_cv_member_struct_stat_st_blocks=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 cat >conftest.$ac_ext <<_ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12007 static struct stat ac_aggr;
12008 if (sizeof ac_aggr.st_blocks)
12014 rm -f conftest.$ac_objext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag"
12024 || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_member_struct_stat_st_blocks=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_cv_member_struct_stat_st_blocks=no
12043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12049 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12051 cat >>confdefs.h <<_ACEOF
12052 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12056 cat >>confdefs.h <<\_ACEOF
12057 #define HAVE_ST_BLOCKS 1
12062 "fileblocks.$ac_objext" | \
12063 *" fileblocks.$ac_objext" | \
12064 "fileblocks.$ac_objext "* | \
12065 *" fileblocks.$ac_objext "* ) ;;
12066 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12072 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12073 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12074 if test "${ac_cv_struct_tm+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <sys/types.h>
12089 struct tm *tp; tp->tm_sec;
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag"
12104 || test ! -s conftest.err'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_cv_struct_tm=time.h
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 ac_cv_struct_tm=sys/time.h
12123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12125 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12126 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12127 if test $ac_cv_struct_tm = sys/time.h; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define TM_IN_SYS_TIME 1
12135 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12136 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12137 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 #include <sys/types.h>
12147 #include <$ac_cv_struct_tm>
12153 static struct tm ac_aggr;
12154 if (ac_aggr.tm_zone)
12160 rm -f conftest.$ac_objext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162 (eval $ac_compile) 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -z "$ac_c_werror_flag"
12170 || test ! -s conftest.err'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest.$ac_objext'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_cv_member_struct_tm_tm_zone=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193 #include <sys/types.h>
12194 #include <$ac_cv_struct_tm>
12200 static struct tm ac_aggr;
12201 if (sizeof ac_aggr.tm_zone)
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_member_struct_tm_tm_zone=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_member_struct_tm_tm_zone=no
12236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12241 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12242 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_STRUCT_TM_TM_ZONE 1
12251 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_TM_ZONE 1
12258 echo "$as_me:$LINENO: checking for tzname" >&5
12259 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12260 if test "${ac_cv_var_tzname+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 #ifndef tzname /* For SGI. */
12271 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag"
12292 || test ! -s conftest.err'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_var_tzname=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_var_tzname=no
12311 rm -f conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12314 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12315 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12316 if test $ac_cv_var_tzname = yes; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define HAVE_TZNAME 1
12326 echo "$as_me:$LINENO: checking for utime.h" >&5
12327 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12328 if test "${ba_cv_header_utime_h+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12338 #include <sys/types.h>
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ba_cv_header_utime_h=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ba_cv_header_utime_h=no
12377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12380 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12381 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_UTIME_H 1
12386 echo "$as_me:$LINENO: checking for socklen_t" >&5
12387 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12388 if test "${ba_cv_header_socklen_t+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 cat >conftest.$ac_ext <<_ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 #include <sys/types.h>
12399 #include <sys/socket.h>
12408 rm -f conftest.$ac_objext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest.$ac_objext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ba_cv_header_socklen_t=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ba_cv_header_socklen_t=no
12437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12440 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12441 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_SOCKLEN_T 1
12446 echo "$as_me:$LINENO: checking for bigendian" >&5
12447 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12448 if test "${ba_cv_bigendian+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 if test "$cross_compiling" = yes; then
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12462 rm -f conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ba_cv_bigendian=yes
12475 echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ( exit $ac_status )
12482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12485 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12486 echo "${ECHO_T}$ba_cv_bigendian" >&6
12487 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12488 #define HAVE_BIGENDIAN 1
12493 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12494 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12495 if test "${ac_cv_c_const+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12508 /* FIXME: Include the comments suggested by Paul. */
12509 #ifndef __cplusplus
12510 /* Ultrix mips cc rejects this. */
12511 typedef int charset[2];
12513 /* SunOS 4.1.1 cc rejects this. */
12514 char const *const *ccp;
12516 /* NEC SVR4.0.2 mips cc rejects this. */
12517 struct point {int x, y;};
12518 static struct point const zero = {0,0};
12519 /* AIX XL C 1.02.0.0 rejects this.
12520 It does not let you subtract one const X* pointer from another in
12521 an arm of an if-expression whose if-part is not a constant
12523 const char *g = "string";
12524 ccp = &g + (g ? g-g : 0);
12525 /* HPUX 7.0 cc rejects these. */
12528 ccp = (char const *const *) p;
12529 { /* SCO 3.2v4 cc rejects this. */
12531 char const *s = 0 ? (char *) 0 : (char const *) 0;
12535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12536 int x[] = {25, 17};
12537 const int *foo = &x[0];
12540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12541 typedef const int *iptr;
12545 { /* AIX XL C 1.02.0.0 rejects this saying
12546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12547 struct s { int j; const int *ap[3]; };
12548 struct s *b; b->j = 5;
12550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12551 const int foo = 10;
12559 rm -f conftest.$ac_objext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561 (eval $ac_compile) 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12591 echo "${ECHO_T}$ac_cv_c_const" >&6
12592 if test $ac_cv_c_const = no; then
12594 cat >>confdefs.h <<\_ACEOF
12602 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12603 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12605 # The order of these tests is important.
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <sys/statvfs.h>
12613 #include <sys/fstyp.h>
12615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } >/dev/null; then
12623 if test -s conftest.err; then
12624 ac_cpp_err=$ac_c_preproc_warn_flag
12625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12632 if test -z "$ac_cpp_err"; then
12633 cat >>confdefs.h <<\_ACEOF
12634 #define FSTYPE_STATVFS 1
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12643 rm -f conftest.err conftest.$ac_ext
12644 if test $fstype = no; then
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #include <sys/statfs.h>
12652 #include <sys/fstyp.h>
12654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12657 grep -v '^ *+' conftest.er1 >conftest.err
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } >/dev/null; then
12662 if test -s conftest.err; then
12663 ac_cpp_err=$ac_c_preproc_warn_flag
12664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12671 if test -z "$ac_cpp_err"; then
12672 cat >>confdefs.h <<\_ACEOF
12673 #define FSTYPE_USG_STATFS 1
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12682 rm -f conftest.err conftest.$ac_ext
12684 if test $fstype = no; then
12685 cat >conftest.$ac_ext <<_ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 #include <sys/statfs.h>
12692 #include <sys/vmount.h>
12694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } >/dev/null; then
12702 if test -s conftest.err; then
12703 ac_cpp_err=$ac_c_preproc_warn_flag
12704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12711 if test -z "$ac_cpp_err"; then
12712 cat >>confdefs.h <<\_ACEOF
12713 #define FSTYPE_AIX_STATFS 1
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12722 rm -f conftest.err conftest.$ac_ext
12724 if test $fstype = no; then
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 #include <mntent.h>
12733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12736 grep -v '^ *+' conftest.er1 >conftest.err
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } >/dev/null; then
12741 if test -s conftest.err; then
12742 ac_cpp_err=$ac_c_preproc_warn_flag
12743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12750 if test -z "$ac_cpp_err"; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define FSTYPE_MNTENT 1
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12761 rm -f conftest.err conftest.$ac_ext
12763 if test $fstype = no; then
12764 cat >conftest.$ac_ext <<_ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 #include <sys/mount.h>
12773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12774 $EGREP "f_type;" >/dev/null 2>&1; then
12775 cat >>confdefs.h <<\_ACEOF
12776 #define FSTYPE_STATFS 1
12783 if test $fstype = no; then
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790 #include <sys/mount.h>
12791 #include <sys/fs_types.h>
12793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } >/dev/null; then
12801 if test -s conftest.err; then
12802 ac_cpp_err=$ac_c_preproc_warn_flag
12803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12810 if test -z "$ac_cpp_err"; then
12811 cat >>confdefs.h <<\_ACEOF
12812 #define FSTYPE_GETMNT 1
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12821 rm -f conftest.err conftest.$ac_ext
12823 echo "$as_me:$LINENO: result: $fstype" >&5
12824 echo "${ECHO_T}$fstype" >&6
12826 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12827 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12828 if test "${ac_cv_type_signal+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 #include <sys/types.h>
12838 #include <signal.h>
12843 extern "C" void (*signal (int, void (*)(int)))(int);
12845 void (*signal ()) ();
12856 rm -f conftest.$ac_objext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858 (eval $ac_compile) 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest.$ac_objext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_type_signal=void
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 ac_cv_type_signal=int
12885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12887 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12888 echo "${ECHO_T}$ac_cv_type_signal" >&6
12890 cat >>confdefs.h <<_ACEOF
12891 #define RETSIGTYPE $ac_cv_type_signal
12896 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12897 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12898 if test "${bash_cv_signal_vintage+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 #include <signal.h>
12914 struct sigaction sa;
12915 sigemptyset(&ss); sigsuspend(&ss);
12916 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12917 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12927 grep -v '^ *+' conftest.er1 >conftest.err
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 bash_cv_signal_vintage=posix
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 #include <signal.h>
12962 int mask = sigmask(SIGINT);
12963 sigsetmask(mask); sigblock(mask); sigpause(mask);
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 bash_cv_signal_vintage=4.2bsd
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 #include <signal.h>
13005 RETSIGTYPE foo() { }
13010 int mask = sigmask(SIGINT);
13011 sigset(SIGINT, foo); sigrelse(SIGINT);
13012 sighold(SIGINT); sigpause(SIGINT);
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13020 (eval $ac_link) 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag"
13028 || test ! -s conftest.err'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; } &&
13034 { ac_try='test -s conftest$ac_exeext'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 bash_cv_signal_vintage=svr3
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 bash_cv_signal_vintage=v7
13048 rm -f conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13052 rm -f conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13056 rm -f conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13061 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13062 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13063 if test "$bash_cv_signal_vintage" = posix; then
13064 cat >>confdefs.h <<\_ACEOF
13065 #define HAVE_POSIX_SIGNALS 1
13068 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_BSD_SIGNALS 1
13073 elif test "$bash_cv_signal_vintage" = svr3; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_USG_SIGHOLD 1
13080 echo "$as_me:$LINENO: checking for mode_t" >&5
13081 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13082 if test "${ac_cv_type_mode_t+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 $ac_includes_default
13097 if (sizeof (mode_t))
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>conftest.er1
13107 grep -v '^ *+' conftest.er1 >conftest.err
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -z "$ac_c_werror_flag"
13113 || test ! -s conftest.err'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest.$ac_objext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_type_mode_t=yes
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_cv_type_mode_t=no
13132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13135 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13136 if test $ac_cv_type_mode_t = yes; then
13140 cat >>confdefs.h <<_ACEOF
13146 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13147 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13148 if test "${ac_cv_type_uid_t+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 #include <sys/types.h>
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "uid_t" >/dev/null 2>&1; then
13162 ac_cv_type_uid_t=yes
13164 ac_cv_type_uid_t=no
13169 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13170 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13171 if test $ac_cv_type_uid_t = no; then
13173 cat >>confdefs.h <<\_ACEOF
13178 cat >>confdefs.h <<\_ACEOF
13184 echo "$as_me:$LINENO: checking for size_t" >&5
13185 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13186 if test "${ac_cv_type_size_t+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13201 if (sizeof (size_t))
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag"
13217 || test ! -s conftest.err'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_cv_type_size_t=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_cv_type_size_t=no
13236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13238 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13239 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13240 if test $ac_cv_type_size_t = yes; then
13244 cat >>confdefs.h <<_ACEOF
13245 #define size_t unsigned
13250 echo "$as_me:$LINENO: checking for pid_t" >&5
13251 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13252 if test "${ac_cv_type_pid_t+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 $ac_includes_default
13267 if (sizeof (pid_t))
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag"
13283 || test ! -s conftest.err'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_type_pid_t=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_cv_type_pid_t=no
13302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13305 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13306 if test $ac_cv_type_pid_t = yes; then
13310 cat >>confdefs.h <<_ACEOF
13316 echo "$as_me:$LINENO: checking for off_t" >&5
13317 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13318 if test "${ac_cv_type_off_t+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 $ac_includes_default
13333 if (sizeof (off_t))
13339 rm -f conftest.$ac_objext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_c_werror_flag"
13349 || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest.$ac_objext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_type_off_t=yes
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_cv_type_off_t=no
13368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13370 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13371 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13372 if test $ac_cv_type_off_t = yes; then
13376 cat >>confdefs.h <<_ACEOF
13382 echo "$as_me:$LINENO: checking for ino_t" >&5
13383 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13384 if test "${ac_cv_type_ino_t+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13399 if (sizeof (ino_t))
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_type_ino_t=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_cv_type_ino_t=no
13434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13437 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13438 if test $ac_cv_type_ino_t = yes; then
13442 cat >>confdefs.h <<_ACEOF
13443 #define ino_t unsigned long
13448 echo "$as_me:$LINENO: checking for dev_t" >&5
13449 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13450 if test "${ac_cv_type_dev_t+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 $ac_includes_default
13465 if (sizeof (dev_t))
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_cv_type_dev_t=yes
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 ac_cv_type_dev_t=no
13500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13503 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13504 if test $ac_cv_type_dev_t = yes; then
13508 cat >>confdefs.h <<_ACEOF
13509 #define dev_t unsigned long
13514 echo "$as_me:$LINENO: checking for daddr_t" >&5
13515 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13516 if test "${ac_cv_type_daddr_t+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13531 if (sizeof (daddr_t))
13537 rm -f conftest.$ac_objext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>conftest.er1
13541 grep -v '^ *+' conftest.er1 >conftest.err
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag"
13547 || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_type_daddr_t=yes
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_type_daddr_t=no
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13569 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13570 if test $ac_cv_type_daddr_t = yes; then
13574 cat >>confdefs.h <<_ACEOF
13575 #define daddr_t long
13580 echo "$as_me:$LINENO: checking for major_t" >&5
13581 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13582 if test "${ac_cv_type_major_t+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13597 if (sizeof (major_t))
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_type_major_t=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 ac_cv_type_major_t=no
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13635 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13636 if test $ac_cv_type_major_t = yes; then
13640 cat >>confdefs.h <<_ACEOF
13641 #define major_t int
13646 echo "$as_me:$LINENO: checking for minor_t" >&5
13647 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13648 if test "${ac_cv_type_minor_t+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 $ac_includes_default
13663 if (sizeof (minor_t))
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag"
13679 || test ! -s conftest.err'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_type_minor_t=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_cv_type_minor_t=no
13698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13701 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13702 if test $ac_cv_type_minor_t = yes; then
13706 cat >>confdefs.h <<_ACEOF
13707 #define minor_t int
13712 echo "$as_me:$LINENO: checking for ssize_t" >&5
13713 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13714 if test "${ac_cv_type_ssize_t+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 $ac_includes_default
13729 if (sizeof (ssize_t))
13735 rm -f conftest.$ac_objext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag"
13745 || test ! -s conftest.err'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_type_ssize_t=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_cv_type_ssize_t=no
13764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13767 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13768 if test $ac_cv_type_ssize_t = yes; then
13772 cat >>confdefs.h <<_ACEOF
13773 #define ssize_t int
13778 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13779 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13780 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13793 static struct stat ac_aggr;
13794 if (ac_aggr.st_blocks)
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>conftest.er1
13804 grep -v '^ *+' conftest.er1 >conftest.err
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag"
13810 || test ! -s conftest.err'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest.$ac_objext'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_cv_member_struct_stat_st_blocks=yes
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13837 static struct stat ac_aggr;
13838 if (sizeof ac_aggr.st_blocks)
13844 rm -f conftest.$ac_objext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846 (eval $ac_compile) 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_member_struct_stat_st_blocks=yes
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 ac_cv_member_struct_stat_st_blocks=no
13873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13877 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13878 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13879 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13886 cat >>confdefs.h <<\_ACEOF
13887 #define HAVE_ST_BLOCKS 1
13892 "fileblocks.$ac_objext" | \
13893 *" fileblocks.$ac_objext" | \
13894 "fileblocks.$ac_objext "* | \
13895 *" fileblocks.$ac_objext "* ) ;;
13896 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13903 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13904 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13905 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 $ac_includes_default
13918 static struct stat ac_aggr;
13919 if (ac_aggr.st_rdev)
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927 (eval $ac_compile) 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag"
13935 || test ! -s conftest.err'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; } &&
13941 { ac_try='test -s conftest.$ac_objext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_member_struct_stat_st_rdev=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 cat >conftest.$ac_ext <<_ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 $ac_includes_default
13962 static struct stat ac_aggr;
13963 if (sizeof ac_aggr.st_rdev)
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_member_struct_stat_st_rdev=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_member_struct_stat_st_rdev=no
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14003 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14004 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_STRUCT_STAT_ST_RDEV 1
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_ST_RDEV 1
14018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14020 if test "${ac_cv_struct_tm+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <sys/types.h>
14035 struct tm *tp; tp->tm_sec;
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_struct_tm=time.h
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_struct_tm=sys/time.h
14069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14071 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14072 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14073 if test $ac_cv_struct_tm = sys/time.h; then
14075 cat >>confdefs.h <<\_ACEOF
14076 #define TM_IN_SYS_TIME 1
14081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14083 if test "${ac_cv_c_const+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 cat >conftest.$ac_ext <<_ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14096 /* FIXME: Include the comments suggested by Paul. */
14097 #ifndef __cplusplus
14098 /* Ultrix mips cc rejects this. */
14099 typedef int charset[2];
14101 /* SunOS 4.1.1 cc rejects this. */
14102 char const *const *ccp;
14104 /* NEC SVR4.0.2 mips cc rejects this. */
14105 struct point {int x, y;};
14106 static struct point const zero = {0,0};
14107 /* AIX XL C 1.02.0.0 rejects this.
14108 It does not let you subtract one const X* pointer from another in
14109 an arm of an if-expression whose if-part is not a constant
14111 const char *g = "string";
14112 ccp = &g + (g ? g-g : 0);
14113 /* HPUX 7.0 cc rejects these. */
14116 ccp = (char const *const *) p;
14117 { /* SCO 3.2v4 cc rejects this. */
14119 char const *s = 0 ? (char *) 0 : (char const *) 0;
14123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14124 int x[] = {25, 17};
14125 const int *foo = &x[0];
14128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14129 typedef const int *iptr;
14133 { /* AIX XL C 1.02.0.0 rejects this saying
14134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14135 struct s { int j; const int *ap[3]; };
14136 struct s *b; b->j = 5;
14138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14139 const int foo = 10;
14147 rm -f conftest.$ac_objext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149 (eval $ac_compile) 2>conftest.er1
14151 grep -v '^ *+' conftest.er1 >conftest.err
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } &&
14156 { ac_try='test -z "$ac_c_werror_flag"
14157 || test ! -s conftest.err'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; } &&
14163 { ac_try='test -s conftest.$ac_objext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14179 echo "${ECHO_T}$ac_cv_c_const" >&6
14180 if test $ac_cv_c_const = no; then
14182 cat >>confdefs.h <<\_ACEOF
14190 echo "$as_me:$LINENO: checking for char" >&5
14191 echo $ECHO_N "checking for char... $ECHO_C" >&6
14192 if test "${ac_cv_type_char+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_type_char=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14245 echo "${ECHO_T}$ac_cv_type_char" >&6
14247 echo "$as_me:$LINENO: checking size of char" >&5
14248 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14249 if test "${ac_cv_sizeof_char+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 if test "$ac_cv_type_char" = yes; then
14253 # The cast to unsigned long works around a bug in the HP C Compiler
14254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14256 # This bug is HP SR number 8606223364.
14257 if test "$cross_compiling" = yes; then
14258 # Depending upon the size, compute the lo and hi bounds.
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 $ac_includes_default
14269 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14276 rm -f conftest.$ac_objext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278 (eval $ac_compile) 2>conftest.er1
14280 grep -v '^ *+' conftest.er1 >conftest.err
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -z "$ac_c_werror_flag"
14286 || test ! -s conftest.err'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14300 cat >conftest.$ac_ext <<_ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 $ac_includes_default
14310 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
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); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_hi=$ac_mid; break
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_lo=`expr $ac_mid + 1`
14345 if test $ac_lo -le $ac_mid; then
14349 ac_mid=`expr 2 '*' $ac_mid + 1`
14351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 cat >conftest.$ac_ext <<_ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14367 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14398 cat >conftest.$ac_ext <<_ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 $ac_includes_default
14408 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14419 grep -v '^ *+' conftest.er1 >conftest.err
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
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); }; } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 ac_lo=$ac_mid; break
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 ac_hi=`expr '(' $ac_mid ')' - 1`
14443 if test $ac_mid -le $ac_hi; then
14447 ac_mid=`expr 2 '*' $ac_mid`
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460 # Binary search between lo and hi bounds.
14461 while test "x$ac_lo" != "x$ac_hi"; do
14462 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14463 cat >conftest.$ac_ext <<_ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 $ac_includes_default
14473 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14484 grep -v '^ *+' conftest.er1 >conftest.err
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_lo=`expr '(' $ac_mid ')' + 1`
14509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14512 ?*) ac_cv_sizeof_char=$ac_lo;;
14513 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14514 See \`config.log' for more details." >&5
14515 echo "$as_me: error: cannot compute sizeof (char), 77
14516 See \`config.log' for more details." >&2;}
14517 { (exit 1); exit 1; }; } ;;
14520 if test "$cross_compiling" = yes; then
14521 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14522 See \`config.log' for more details." >&5
14523 echo "$as_me: error: cannot run test program while cross compiling
14524 See \`config.log' for more details." >&2;}
14525 { (exit 1); exit 1; }; }
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 $ac_includes_default
14534 long longval () { return (long) (sizeof (char)); }
14535 unsigned long ulongval () { return (long) (sizeof (char)); }
14537 #include <stdlib.h>
14542 FILE *f = fopen ("conftest.val", "w");
14545 if (((long) (sizeof (char))) < 0)
14547 long i = longval ();
14548 if (i != ((long) (sizeof (char))))
14550 fprintf (f, "%ld\n", i);
14554 unsigned long i = ulongval ();
14555 if (i != ((long) (sizeof (char))))
14557 fprintf (f, "%lu\n", i);
14559 exit (ferror (f) || fclose (f) != 0);
14565 rm -f conftest$ac_exeext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14567 (eval $ac_link) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 ac_cv_sizeof_char=`cat conftest.val`
14578 echo "$as_me: program exited with status $ac_status" >&5
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ( exit $ac_status )
14583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14584 See \`config.log' for more details." >&5
14585 echo "$as_me: error: cannot compute sizeof (char), 77
14586 See \`config.log' for more details." >&2;}
14587 { (exit 1); exit 1; }; }
14589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14594 ac_cv_sizeof_char=0
14597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14598 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14599 cat >>confdefs.h <<_ACEOF
14600 #define SIZEOF_CHAR $ac_cv_sizeof_char
14604 echo "$as_me:$LINENO: checking for short int" >&5
14605 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14606 if test "${ac_cv_type_short_int+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 $ac_includes_default
14619 if ((short int *) 0)
14621 if (sizeof (short int))
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_type_short_int=yes
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_cv_type_short_int=no
14656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14658 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14659 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14661 echo "$as_me:$LINENO: checking size of short int" >&5
14662 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14663 if test "${ac_cv_sizeof_short_int+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 if test "$ac_cv_type_short_int" = yes; then
14667 # The cast to unsigned long works around a bug in the HP C Compiler
14668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14670 # This bug is HP SR number 8606223364.
14671 if test "$cross_compiling" = yes; then
14672 # Depending upon the size, compute the lo and hi bounds.
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 $ac_includes_default
14683 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -z "$ac_c_werror_flag"
14700 || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14714 cat >conftest.$ac_ext <<_ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14720 $ac_includes_default
14724 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14731 rm -f conftest.$ac_objext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733 (eval $ac_compile) 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_c_werror_flag"
14741 || test ! -s conftest.err'
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); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_hi=$ac_mid; break
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_lo=`expr $ac_mid + 1`
14759 if test $ac_lo -le $ac_mid; then
14763 ac_mid=`expr 2 '*' $ac_mid + 1`
14765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 $ac_includes_default
14781 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 $ac_includes_default
14822 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14829 rm -f conftest.$ac_objext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831 (eval $ac_compile) 2>conftest.er1
14833 grep -v '^ *+' conftest.er1 >conftest.err
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } &&
14838 { ac_try='test -z "$ac_c_werror_flag"
14839 || test ! -s conftest.err'
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); }; } &&
14845 { ac_try='test -s conftest.$ac_objext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_lo=$ac_mid; break
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_hi=`expr '(' $ac_mid ')' - 1`
14857 if test $ac_mid -le $ac_hi; then
14861 ac_mid=`expr 2 '*' $ac_mid`
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14874 # Binary search between lo and hi bounds.
14875 while test "x$ac_lo" != "x$ac_hi"; do
14876 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 $ac_includes_default
14887 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14894 rm -f conftest.$ac_objext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896 (eval $ac_compile) 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag"
14904 || test ! -s conftest.err'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_lo=`expr '(' $ac_mid ')' + 1`
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14926 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14927 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14928 See \`config.log' for more details." >&5
14929 echo "$as_me: error: cannot compute sizeof (short int), 77
14930 See \`config.log' for more details." >&2;}
14931 { (exit 1); exit 1; }; } ;;
14934 if test "$cross_compiling" = yes; then
14935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14936 See \`config.log' for more details." >&5
14937 echo "$as_me: error: cannot run test program while cross compiling
14938 See \`config.log' for more details." >&2;}
14939 { (exit 1); exit 1; }; }
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 $ac_includes_default
14948 long longval () { return (long) (sizeof (short int)); }
14949 unsigned long ulongval () { return (long) (sizeof (short int)); }
14951 #include <stdlib.h>
14956 FILE *f = fopen ("conftest.val", "w");
14959 if (((long) (sizeof (short int))) < 0)
14961 long i = longval ();
14962 if (i != ((long) (sizeof (short int))))
14964 fprintf (f, "%ld\n", i);
14968 unsigned long i = ulongval ();
14969 if (i != ((long) (sizeof (short int))))
14971 fprintf (f, "%lu\n", i);
14973 exit (ferror (f) || fclose (f) != 0);
14979 rm -f conftest$ac_exeext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14981 (eval $ac_link) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 ac_cv_sizeof_short_int=`cat conftest.val`
14992 echo "$as_me: program exited with status $ac_status" >&5
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ( exit $ac_status )
14997 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14998 See \`config.log' for more details." >&5
14999 echo "$as_me: error: cannot compute sizeof (short int), 77
15000 See \`config.log' for more details." >&2;}
15001 { (exit 1); exit 1; }; }
15003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15008 ac_cv_sizeof_short_int=0
15011 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15012 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15013 cat >>confdefs.h <<_ACEOF
15014 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15018 echo "$as_me:$LINENO: checking for int" >&5
15019 echo $ECHO_N "checking for int... $ECHO_C" >&6
15020 if test "${ac_cv_type_int+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try='test -z "$ac_c_werror_flag"
15051 || test ! -s conftest.err'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15072 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15073 echo "${ECHO_T}$ac_cv_type_int" >&6
15075 echo "$as_me:$LINENO: checking size of int" >&5
15076 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15077 if test "${ac_cv_sizeof_int+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 if test "$ac_cv_type_int" = yes; then
15081 # The cast to unsigned long works around a bug in the HP C Compiler
15082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15084 # This bug is HP SR number 8606223364.
15085 if test "$cross_compiling" = yes; then
15086 # Depending upon the size, compute the lo and hi bounds.
15087 cat >conftest.$ac_ext <<_ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 $ac_includes_default
15097 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15104 rm -f conftest.$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106 (eval $ac_compile) 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag"
15114 || test ! -s conftest.err'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 $ac_includes_default
15138 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15145 rm -f conftest.$ac_objext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15147 (eval $ac_compile) 2>conftest.er1
15149 grep -v '^ *+' conftest.er1 >conftest.err
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try='test -z "$ac_c_werror_flag"
15155 || test ! -s conftest.err'
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); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_hi=$ac_mid; break
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_lo=`expr $ac_mid + 1`
15173 if test $ac_lo -le $ac_mid; then
15177 ac_mid=`expr 2 '*' $ac_mid + 1`
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 $ac_includes_default
15195 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>conftest.er1
15206 grep -v '^ *+' conftest.er1 >conftest.err
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
15211 { ac_try='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 $ac_includes_default
15236 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15243 rm -f conftest.$ac_objext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15245 (eval $ac_compile) 2>conftest.er1
15247 grep -v '^ *+' conftest.er1 >conftest.err
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag"
15253 || test ! -s conftest.err'
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); }; } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_lo=$ac_mid; break
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 ac_hi=`expr '(' $ac_mid ')' - 1`
15271 if test $ac_mid -le $ac_hi; then
15275 ac_mid=`expr 2 '*' $ac_mid`
15277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15288 # Binary search between lo and hi bounds.
15289 while test "x$ac_lo" != "x$ac_hi"; do
15290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 $ac_includes_default
15301 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15308 rm -f conftest.$ac_objext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310 (eval $ac_compile) 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15335 ac_lo=`expr '(' $ac_mid ')' + 1`
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15340 ?*) ac_cv_sizeof_int=$ac_lo;;
15341 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15342 See \`config.log' for more details." >&5
15343 echo "$as_me: error: cannot compute sizeof (int), 77
15344 See \`config.log' for more details." >&2;}
15345 { (exit 1); exit 1; }; } ;;
15348 if test "$cross_compiling" = yes; then
15349 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15350 See \`config.log' for more details." >&5
15351 echo "$as_me: error: cannot run test program while cross compiling
15352 See \`config.log' for more details." >&2;}
15353 { (exit 1); exit 1; }; }
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 long longval () { return (long) (sizeof (int)); }
15363 unsigned long ulongval () { return (long) (sizeof (int)); }
15365 #include <stdlib.h>
15370 FILE *f = fopen ("conftest.val", "w");
15373 if (((long) (sizeof (int))) < 0)
15375 long i = longval ();
15376 if (i != ((long) (sizeof (int))))
15378 fprintf (f, "%ld\n", i);
15382 unsigned long i = ulongval ();
15383 if (i != ((long) (sizeof (int))))
15385 fprintf (f, "%lu\n", i);
15387 exit (ferror (f) || fclose (f) != 0);
15393 rm -f conftest$ac_exeext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15395 (eval $ac_link) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_cv_sizeof_int=`cat conftest.val`
15406 echo "$as_me: program exited with status $ac_status" >&5
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ( exit $ac_status )
15411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15412 See \`config.log' for more details." >&5
15413 echo "$as_me: error: cannot compute sizeof (int), 77
15414 See \`config.log' for more details." >&2;}
15415 { (exit 1); exit 1; }; }
15417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15425 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15426 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15427 cat >>confdefs.h <<_ACEOF
15428 #define SIZEOF_INT $ac_cv_sizeof_int
15432 echo "$as_me:$LINENO: checking for long int" >&5
15433 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15434 if test "${ac_cv_type_long_int+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 cat >conftest.$ac_ext <<_ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 $ac_includes_default
15447 if ((long int *) 0)
15449 if (sizeof (long int))
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_type_long_int=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_type_long_int=no
15484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15486 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15487 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15489 echo "$as_me:$LINENO: checking size of long int" >&5
15490 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15491 if test "${ac_cv_sizeof_long_int+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 if test "$ac_cv_type_long_int" = yes; then
15495 # The cast to unsigned long works around a bug in the HP C Compiler
15496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15498 # This bug is HP SR number 8606223364.
15499 if test "$cross_compiling" = yes; then
15500 # Depending upon the size, compute the lo and hi bounds.
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 $ac_includes_default
15511 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } &&
15527 { ac_try='test -z "$ac_c_werror_flag"
15528 || test ! -s conftest.err'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 $ac_includes_default
15552 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561 (eval $ac_compile) 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try='test -z "$ac_c_werror_flag"
15569 || test ! -s conftest.err'
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); }; } &&
15575 { ac_try='test -s conftest.$ac_objext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_hi=$ac_mid; break
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_lo=`expr $ac_mid + 1`
15587 if test $ac_lo -le $ac_mid; then
15591 ac_mid=`expr 2 '*' $ac_mid + 1`
15593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 $ac_includes_default
15609 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 $ac_includes_default
15650 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
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); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_lo=$ac_mid; break
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_hi=`expr '(' $ac_mid ')' - 1`
15685 if test $ac_mid -le $ac_hi; then
15689 ac_mid=`expr 2 '*' $ac_mid`
15691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15702 # Binary search between lo and hi bounds.
15703 while test "x$ac_lo" != "x$ac_hi"; do
15704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15715 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15722 rm -f conftest.$ac_objext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15724 (eval $ac_compile) 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag"
15732 || test ! -s conftest.err'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_lo=`expr '(' $ac_mid ')' + 1`
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15755 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15756 See \`config.log' for more details." >&5
15757 echo "$as_me: error: cannot compute sizeof (long int), 77
15758 See \`config.log' for more details." >&2;}
15759 { (exit 1); exit 1; }; } ;;
15762 if test "$cross_compiling" = yes; then
15763 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15764 See \`config.log' for more details." >&5
15765 echo "$as_me: error: cannot run test program while cross compiling
15766 See \`config.log' for more details." >&2;}
15767 { (exit 1); exit 1; }; }
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 $ac_includes_default
15776 long longval () { return (long) (sizeof (long int)); }
15777 unsigned long ulongval () { return (long) (sizeof (long int)); }
15779 #include <stdlib.h>
15784 FILE *f = fopen ("conftest.val", "w");
15787 if (((long) (sizeof (long int))) < 0)
15789 long i = longval ();
15790 if (i != ((long) (sizeof (long int))))
15792 fprintf (f, "%ld\n", i);
15796 unsigned long i = ulongval ();
15797 if (i != ((long) (sizeof (long int))))
15799 fprintf (f, "%lu\n", i);
15801 exit (ferror (f) || fclose (f) != 0);
15807 rm -f conftest$ac_exeext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15809 (eval $ac_link) 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 ac_cv_sizeof_long_int=`cat conftest.val`
15820 echo "$as_me: program exited with status $ac_status" >&5
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ( exit $ac_status )
15825 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15826 See \`config.log' for more details." >&5
15827 echo "$as_me: error: cannot compute sizeof (long int), 77
15828 See \`config.log' for more details." >&2;}
15829 { (exit 1); exit 1; }; }
15831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15836 ac_cv_sizeof_long_int=0
15839 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15840 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15841 cat >>confdefs.h <<_ACEOF
15842 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15846 echo "$as_me:$LINENO: checking for long long int" >&5
15847 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15848 if test "${ac_cv_type_long_long_int+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15861 if ((long long int *) 0)
15863 if (sizeof (long long int))
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_cv_type_long_long_int=yes
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_cv_type_long_long_int=no
15898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15900 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15901 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15903 echo "$as_me:$LINENO: checking size of long long int" >&5
15904 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15905 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 if test "$ac_cv_type_long_long_int" = yes; then
15909 # The cast to unsigned long works around a bug in the HP C Compiler
15910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15912 # This bug is HP SR number 8606223364.
15913 if test "$cross_compiling" = yes; then
15914 # Depending upon the size, compute the lo and hi bounds.
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 $ac_includes_default
15925 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15956 cat >conftest.$ac_ext <<_ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15962 $ac_includes_default
15966 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15973 rm -f conftest.$ac_objext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975 (eval $ac_compile) 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag"
15983 || test ! -s conftest.err'
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); }; } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_hi=$ac_mid; break
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 ac_lo=`expr $ac_mid + 1`
16001 if test $ac_lo -le $ac_mid; then
16005 ac_mid=`expr 2 '*' $ac_mid + 1`
16007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 cat >conftest.$ac_ext <<_ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 $ac_includes_default
16023 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032 (eval $ac_compile) 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
16039 { ac_try='test -z "$ac_c_werror_flag"
16040 || test ! -s conftest.err'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 $ac_includes_default
16064 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073 (eval $ac_compile) 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag"
16081 || test ! -s conftest.err'
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); }; } &&
16087 { ac_try='test -s conftest.$ac_objext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 ac_lo=$ac_mid; break
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 ac_hi=`expr '(' $ac_mid ')' - 1`
16099 if test $ac_mid -le $ac_hi; then
16103 ac_mid=`expr 2 '*' $ac_mid`
16105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16116 # Binary search between lo and hi bounds.
16117 while test "x$ac_lo" != "x$ac_hi"; do
16118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 $ac_includes_default
16129 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16136 rm -f conftest.$ac_objext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16138 (eval $ac_compile) 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_lo=`expr '(' $ac_mid ')' + 1`
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16169 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16170 See \`config.log' for more details." >&5
16171 echo "$as_me: error: cannot compute sizeof (long long int), 77
16172 See \`config.log' for more details." >&2;}
16173 { (exit 1); exit 1; }; } ;;
16176 if test "$cross_compiling" = yes; then
16177 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16178 See \`config.log' for more details." >&5
16179 echo "$as_me: error: cannot run test program while cross compiling
16180 See \`config.log' for more details." >&2;}
16181 { (exit 1); exit 1; }; }
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 $ac_includes_default
16190 long longval () { return (long) (sizeof (long long int)); }
16191 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16193 #include <stdlib.h>
16198 FILE *f = fopen ("conftest.val", "w");
16201 if (((long) (sizeof (long long int))) < 0)
16203 long i = longval ();
16204 if (i != ((long) (sizeof (long long int))))
16206 fprintf (f, "%ld\n", i);
16210 unsigned long i = ulongval ();
16211 if (i != ((long) (sizeof (long long int))))
16213 fprintf (f, "%lu\n", i);
16215 exit (ferror (f) || fclose (f) != 0);
16221 rm -f conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223 (eval $ac_link) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 ac_cv_sizeof_long_long_int=`cat conftest.val`
16234 echo "$as_me: program exited with status $ac_status" >&5
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 ( exit $ac_status )
16239 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16240 See \`config.log' for more details." >&5
16241 echo "$as_me: error: cannot compute sizeof (long long int), 77
16242 See \`config.log' for more details." >&2;}
16243 { (exit 1); exit 1; }; }
16245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16250 ac_cv_sizeof_long_long_int=0
16253 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16254 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16255 cat >>confdefs.h <<_ACEOF
16256 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16260 echo "$as_me:$LINENO: checking for int *" >&5
16261 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16262 if test "${ac_cv_type_int_p+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 $ac_includes_default
16277 if (sizeof (int *))
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 (eval $ac_compile) 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag"
16293 || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest.$ac_objext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_cv_type_int_p=yes
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_cv_type_int_p=no
16312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16315 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16317 echo "$as_me:$LINENO: checking size of int *" >&5
16318 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16319 if test "${ac_cv_sizeof_int_p+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 if test "$ac_cv_type_int_p" = yes; then
16323 # The cast to unsigned long works around a bug in the HP C Compiler
16324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16326 # This bug is HP SR number 8606223364.
16327 if test "$cross_compiling" = yes; then
16328 # Depending upon the size, compute the lo and hi bounds.
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 $ac_includes_default
16339 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16346 rm -f conftest.$ac_objext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348 (eval $ac_compile) 2>conftest.er1
16350 grep -v '^ *+' conftest.er1 >conftest.err
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag"
16356 || test ! -s conftest.err'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16370 cat >conftest.$ac_ext <<_ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 $ac_includes_default
16380 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
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); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_hi=$ac_mid; break
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_lo=`expr $ac_mid + 1`
16415 if test $ac_lo -le $ac_mid; then
16419 ac_mid=`expr 2 '*' $ac_mid + 1`
16421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 $ac_includes_default
16437 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16478 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>conftest.er1
16489 grep -v '^ *+' conftest.er1 >conftest.err
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
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); }; } &&
16501 { ac_try='test -s conftest.$ac_objext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_lo=$ac_mid; break
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_hi=`expr '(' $ac_mid ')' - 1`
16513 if test $ac_mid -le $ac_hi; then
16517 ac_mid=`expr 2 '*' $ac_mid`
16519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16530 # Binary search between lo and hi bounds.
16531 while test "x$ac_lo" != "x$ac_hi"; do
16532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 $ac_includes_default
16543 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_lo=`expr '(' $ac_mid ')' + 1`
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16582 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16583 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16584 See \`config.log' for more details." >&5
16585 echo "$as_me: error: cannot compute sizeof (int *), 77
16586 See \`config.log' for more details." >&2;}
16587 { (exit 1); exit 1; }; } ;;
16590 if test "$cross_compiling" = yes; then
16591 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16592 See \`config.log' for more details." >&5
16593 echo "$as_me: error: cannot run test program while cross compiling
16594 See \`config.log' for more details." >&2;}
16595 { (exit 1); exit 1; }; }
16597 cat >conftest.$ac_ext <<_ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 $ac_includes_default
16604 long longval () { return (long) (sizeof (int *)); }
16605 unsigned long ulongval () { return (long) (sizeof (int *)); }
16607 #include <stdlib.h>
16612 FILE *f = fopen ("conftest.val", "w");
16615 if (((long) (sizeof (int *))) < 0)
16617 long i = longval ();
16618 if (i != ((long) (sizeof (int *))))
16620 fprintf (f, "%ld\n", i);
16624 unsigned long i = ulongval ();
16625 if (i != ((long) (sizeof (int *))))
16627 fprintf (f, "%lu\n", i);
16629 exit (ferror (f) || fclose (f) != 0);
16635 rm -f conftest$ac_exeext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637 (eval $ac_link) 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_sizeof_int_p=`cat conftest.val`
16648 echo "$as_me: program exited with status $ac_status" >&5
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16652 ( exit $ac_status )
16653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16654 See \`config.log' for more details." >&5
16655 echo "$as_me: error: cannot compute sizeof (int *), 77
16656 See \`config.log' for more details." >&2;}
16657 { (exit 1); exit 1; }; }
16659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16664 ac_cv_sizeof_int_p=0
16667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16668 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16669 cat >>confdefs.h <<_ACEOF
16670 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16675 # Check for sys/types.h types
16676 echo "$as_me:$LINENO: checking for u_int type" >&5
16677 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16678 if test "${ac_cv_have_u_int+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 cat >conftest.$ac_ext <<_ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <sys/types.h>
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag"
16707 || test ! -s conftest.err'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_cv_have_u_int="yes"
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_cv_have_u_int="no"
16727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16730 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16731 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16732 if test "x$ac_cv_have_u_int" = "xyes" ; then
16733 cat >>confdefs.h <<\_ACEOF
16734 #define HAVE_U_INT 1
16740 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16741 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16742 if test "${ac_cv_have_intmax_t+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #include <sys/types.h>
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_have_intmax_t="yes"
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <stdint.h>
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_have_intmax_t="yes"
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_cv_have_intmax_t="no"
16834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16843 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16844 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16845 cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_INTMAX_T 1
16853 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16854 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16855 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <sys/types.h>
16869 u_intmax_t a; a = 1;
16874 rm -f conftest.$ac_objext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16876 (eval $ac_compile) 2>conftest.er1
16878 grep -v '^ *+' conftest.er1 >conftest.err
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -z "$ac_c_werror_flag"
16884 || test ! -s conftest.err'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest.$ac_objext'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_cv_have_u_intmax_t="yes"
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 #include <stdint.h>
16912 u_intmax_t a; a = 1;
16917 rm -f conftest.$ac_objext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>conftest.er1
16921 grep -v '^ *+' conftest.er1 >conftest.err
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -z "$ac_c_werror_flag"
16927 || test ! -s conftest.err'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_have_u_intmax_t="yes"
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_have_u_intmax_t="no"
16947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16955 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16956 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16957 cat >>confdefs.h <<\_ACEOF
16958 #define HAVE_U_INTMAX_T 1
16965 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16966 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16967 if test "${ac_cv_have_intxx_t+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 #include <sys/types.h>
16981 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16986 rm -f conftest.$ac_objext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16988 (eval $ac_compile) 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag"
16996 || test ! -s conftest.err'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; } &&
17002 { ac_try='test -s conftest.$ac_objext'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 ac_cv_have_intxx_t="yes"
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_cv_have_intxx_t="no"
17016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17019 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17020 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17021 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17022 cat >>confdefs.h <<\_ACEOF
17023 #define HAVE_INTXX_T 1
17029 echo "$as_me:$LINENO: checking for int64_t type" >&5
17030 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17031 if test "${ac_cv_have_int64_t+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 cat >conftest.$ac_ext <<_ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 #include <sys/types.h>
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_have_int64_t="yes"
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_cv_have_int64_t="no"
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17084 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17085 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17086 cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_INT64_T 1
17093 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17094 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17095 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 #include <sys/types.h>
17109 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17114 rm -f conftest.$ac_objext
17115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116 (eval $ac_compile) 2>conftest.er1
17118 grep -v '^ *+' conftest.er1 >conftest.err
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -z "$ac_c_werror_flag"
17124 || test ! -s conftest.err'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } &&
17130 { ac_try='test -s conftest.$ac_objext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_have_u_intxx_t="yes"
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ac_cv_have_u_intxx_t="no"
17144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17148 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17149 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17150 cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_U_INTXX_T 1
17157 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17158 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17159 if test "${ac_cv_have_u_int64_t+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 #include <sys/types.h>
17173 u_int64_t a; a = 1;
17178 rm -f conftest.$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180 (eval $ac_compile) 2>conftest.er1
17182 grep -v '^ *+' conftest.er1 >conftest.err
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_have_u_int64_t="yes"
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_cv_have_u_int64_t="no"
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17212 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17213 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17214 cat >>confdefs.h <<\_ACEOF
17215 #define HAVE_U_INT64_T 1
17221 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17222 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17224 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17225 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #include <sys/bitypes.h>
17236 int8_t a; int16_t b; int32_t c;
17237 u_int8_t e; u_int16_t f; u_int32_t g;
17238 a = b = c = e = f = g = 1;
17243 rm -f conftest.$ac_objext
17244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17245 (eval $ac_compile) 2>conftest.er1
17247 grep -v '^ *+' conftest.er1 >conftest.err
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag"
17253 || test ! -s conftest.err'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest.$ac_objext'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_U_INTXX_T 1
17269 cat >>confdefs.h <<\_ACEOF
17270 #define HAVE_INTXX_T 1
17273 cat >>confdefs.h <<\_ACEOF
17274 #define HAVE_SYS_BITYPES_H 1
17277 echo "$as_me:$LINENO: result: yes" >&5
17278 echo "${ECHO_T}yes" >&6
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 echo "$as_me:$LINENO: result: no" >&5
17284 echo "${ECHO_T}no" >&6
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17290 if test -z "$have_u_intxx_t" ; then
17291 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17292 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17293 if test "${ac_cv_have_uintxx_t+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 #include <sys/types.h>
17307 uint8_t a; uint16_t b;
17308 uint32_t c; a = b = c = 1;
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_have_uintxx_t="yes"
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_have_uintxx_t="no"
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17347 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17348 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_UINTXX_T 1
17356 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17357 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17359 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17360 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 #include <sys/bitypes.h>
17371 int64_t a; u_int64_t b;
17377 rm -f conftest.$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17381 grep -v '^ *+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_U_INT64_T 1
17403 cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_INT64_T 1
17407 echo "$as_me:$LINENO: result: yes" >&5
17408 echo "${ECHO_T}yes" >&6
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6
17417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17420 if (test -z "$have_uintxx_t" && \
17421 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17423 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17424 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 #include <sys/bitypes.h>
17435 uint8_t a; uint16_t b;
17436 uint32_t c; a = b = c = 1;
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443 (eval $ac_compile) 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest.$ac_objext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_UINTXX_T 1
17467 echo "$as_me:$LINENO: result: yes" >&5
17468 echo "${ECHO_T}yes" >&6
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 echo "$as_me:$LINENO: result: no" >&5
17474 echo "${ECHO_T}no" >&6
17477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17514 echo "$as_me:$LINENO: checking for $ac_func" >&5
17515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17516 if eval "test \"\${$as_ac_var+set}\" = set"; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 cat >conftest.$ac_ext <<_ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17527 #define $ac_func innocuous_$ac_func
17529 /* System header to define __stub macros and hopefully few prototypes,
17530 which can conflict with char $ac_func (); below.
17531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17532 <limits.h> exists even on freestanding compilers. */
17535 # include <limits.h>
17537 # include <assert.h>
17542 /* Override any gcc2 internal prototype to avoid an error. */
17547 /* We use char because int might match the return type of a gcc2
17548 builtin and then its argument prototype would still apply. */
17550 /* The GNU C library defines this for functions which it implements
17551 to always fail with ENOSYS. Some functions are actually named
17552 something starting with __ and the normal name is an alias. */
17553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17556 char (*f) () = $ac_func;
17565 return f != $ac_func;
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572 (eval $ac_link) 2>conftest.er1
17574 grep -v '^ *+' conftest.er1 >conftest.err
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 eval "$as_ac_var=yes"
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 eval "$as_ac_var=no"
17599 rm -f conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17604 if test `eval echo '${'$as_ac_var'}'` = yes; then
17605 cat >>confdefs.h <<_ACEOF
17606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17610 echo 'configure: cannot find needed function.'; exit 1
17617 for ac_func in fchdir
17619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17620 echo "$as_me:$LINENO: checking for $ac_func" >&5
17621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17622 if eval "test \"\${$as_ac_var+set}\" = set"; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17633 #define $ac_func innocuous_$ac_func
17635 /* System header to define __stub macros and hopefully few prototypes,
17636 which can conflict with char $ac_func (); below.
17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638 <limits.h> exists even on freestanding compilers. */
17641 # include <limits.h>
17643 # include <assert.h>
17648 /* Override any gcc2 internal prototype to avoid an error. */
17653 /* We use char because int might match the return type of a gcc2
17654 builtin and then its argument prototype would still apply. */
17656 /* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17662 char (*f) () = $ac_func;
17671 return f != $ac_func;
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678 (eval $ac_link) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest$ac_exeext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 eval "$as_ac_var=yes"
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 eval "$as_ac_var=no"
17705 rm -f conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
17708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17710 if test `eval echo '${'$as_ac_var'}'` = yes; then
17711 cat >>confdefs.h <<_ACEOF
17712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17714 cat >>confdefs.h <<\_ACEOF
17715 #define HAVE_FCHDIR 1
17722 for ac_func in strtoll
17724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17725 echo "$as_me:$LINENO: checking for $ac_func" >&5
17726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17727 if eval "test \"\${$as_ac_var+set}\" = set"; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17738 #define $ac_func innocuous_$ac_func
17740 /* System header to define __stub macros and hopefully few prototypes,
17741 which can conflict with char $ac_func (); below.
17742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17743 <limits.h> exists even on freestanding compilers. */
17746 # include <limits.h>
17748 # include <assert.h>
17753 /* Override any gcc2 internal prototype to avoid an error. */
17758 /* We use char because int might match the return type of a gcc2
17759 builtin and then its argument prototype would still apply. */
17761 /* The GNU C library defines this for functions which it implements
17762 to always fail with ENOSYS. Some functions are actually named
17763 something starting with __ and the normal name is an alias. */
17764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17767 char (*f) () = $ac_func;
17776 return f != $ac_func;
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17783 (eval $ac_link) 2>conftest.er1
17785 grep -v '^ *+' conftest.er1 >conftest.err
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
17790 { ac_try='test -z "$ac_c_werror_flag"
17791 || test ! -s conftest.err'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 eval "$as_ac_var=yes"
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 eval "$as_ac_var=no"
17810 rm -f conftest.err conftest.$ac_objext \
17811 conftest$ac_exeext conftest.$ac_ext
17813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17815 if test `eval echo '${'$as_ac_var'}'` = yes; then
17816 cat >>confdefs.h <<_ACEOF
17817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17819 cat >>confdefs.h <<\_ACEOF
17820 #define HAVE_STRTOLL 1
17828 for ac_func in chflags
17830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17831 echo "$as_me:$LINENO: checking for $ac_func" >&5
17832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17833 if eval "test \"\${$as_ac_var+set}\" = set"; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17844 #define $ac_func innocuous_$ac_func
17846 /* System header to define __stub macros and hopefully few prototypes,
17847 which can conflict with char $ac_func (); below.
17848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17849 <limits.h> exists even on freestanding compilers. */
17852 # include <limits.h>
17854 # include <assert.h>
17859 /* Override any gcc2 internal prototype to avoid an error. */
17864 /* We use char because int might match the return type of a gcc2
17865 builtin and then its argument prototype would still apply. */
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17873 char (*f) () = $ac_func;
17882 return f != $ac_func;
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest$ac_exeext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 eval "$as_ac_var=yes"
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 eval "$as_ac_var=no"
17916 rm -f conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17921 if test `eval echo '${'$as_ac_var'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17934 for ac_func in snprintf vsnprintf gethostid fseeko
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17939 if eval "test \"\${$as_ac_var+set}\" = set"; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17950 #define $ac_func innocuous_$ac_func
17952 /* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char $ac_func (); below.
17954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 <limits.h> exists even on freestanding compilers. */
17958 # include <limits.h>
17960 # include <assert.h>
17965 /* Override any gcc2 internal prototype to avoid an error. */
17970 /* We use char because int might match the return type of a gcc2
17971 builtin and then its argument prototype would still apply. */
17973 /* The GNU C library defines this for functions which it implements
17974 to always fail with ENOSYS. Some functions are actually named
17975 something starting with __ and the normal name is an alias. */
17976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17979 char (*f) () = $ac_func;
17988 return f != $ac_func;
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 eval "$as_ac_var=yes"
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 eval "$as_ac_var=no"
18022 rm -f conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028 cat >>confdefs.h <<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18040 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043 echo "$as_me:$LINENO: checking for $ac_func" >&5
18044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18045 if eval "test \"\${$as_ac_var+set}\" = set"; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18056 #define $ac_func innocuous_$ac_func
18058 /* System header to define __stub macros and hopefully few prototypes,
18059 which can conflict with char $ac_func (); below.
18060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061 <limits.h> exists even on freestanding compilers. */
18064 # include <limits.h>
18066 # include <assert.h>
18071 /* Override any gcc2 internal prototype to avoid an error. */
18076 /* We use char because int might match the return type of a gcc2
18077 builtin and then its argument prototype would still apply. */
18079 /* The GNU C library defines this for functions which it implements
18080 to always fail with ENOSYS. Some functions are actually named
18081 something starting with __ and the normal name is an alias. */
18082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18085 char (*f) () = $ac_func;
18094 return f != $ac_func;
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18101 (eval $ac_link) 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag"
18109 || test ! -s conftest.err'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest$ac_exeext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 eval "$as_ac_var=yes"
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 eval "$as_ac_var=no"
18128 rm -f conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18133 if test `eval echo '${'$as_ac_var'}'` = yes; then
18134 cat >>confdefs.h <<_ACEOF
18135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18142 # If resolver functions are not in libc check for -lnsl or -lresolv.
18143 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18144 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18145 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156 #define gethostbyname_r innocuous_gethostbyname_r
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char gethostbyname_r (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18164 # include <limits.h>
18166 # include <assert.h>
18169 #undef gethostbyname_r
18171 /* Override any gcc2 internal prototype to avoid an error. */
18176 /* We use char because int might match the return type of a gcc2
18177 builtin and then its argument prototype would still apply. */
18178 char gethostbyname_r ();
18179 /* The GNU C library defines this for functions which it implements
18180 to always fail with ENOSYS. Some functions are actually named
18181 something starting with __ and the normal name is an alias. */
18182 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18185 char (*f) () = gethostbyname_r;
18194 return f != gethostbyname_r;
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201 (eval $ac_link) 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest$ac_exeext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_func_gethostbyname_r=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_func_gethostbyname_r=no
18228 rm -f conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18231 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18232 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18233 if test $ac_cv_func_gethostbyname_r = yes; then
18234 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18235 echo "${ECHO_T}using libc's resolver" >&6
18238 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18239 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18240 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 ac_check_lib_save_LIBS=$LIBS
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18252 /* Override any gcc2 internal prototype to avoid an error. */
18256 /* We use char because int might match the return type of a gcc2
18257 builtin and then its argument prototype would still apply. */
18258 char gethostbyname_r ();
18262 gethostbyname_r ();
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269 (eval $ac_link) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_nsl_gethostbyname_r=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_cv_lib_nsl_gethostbyname_r=no
18296 rm -f conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18300 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18301 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18302 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18303 cat >>confdefs.h <<_ACEOF
18304 #define HAVE_LIBNSL 1
18312 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18313 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18314 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-lresolv $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18326 /* Override any gcc2 internal prototype to avoid an error. */
18330 /* We use char because int might match the return type of a gcc2
18331 builtin and then its argument prototype would still apply. */
18332 char gethostbyname_r ();
18336 gethostbyname_r ();
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343 (eval $ac_link) 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_cv_lib_resolv_gethostbyname_r=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_cv_lib_resolv_gethostbyname_r=no
18370 rm -f conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18375 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18376 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18377 cat >>confdefs.h <<_ACEOF
18378 #define HAVE_LIBRESOLV 1
18381 LIBS="-lresolv $LIBS"
18391 for ac_func in inet_pton
18393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18394 echo "$as_me:$LINENO: checking for $ac_func" >&5
18395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18396 if eval "test \"\${$as_ac_var+set}\" = set"; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18407 #define $ac_func innocuous_$ac_func
18409 /* System header to define __stub macros and hopefully few prototypes,
18410 which can conflict with char $ac_func (); below.
18411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18412 <limits.h> exists even on freestanding compilers. */
18415 # include <limits.h>
18417 # include <assert.h>
18422 /* Override any gcc2 internal prototype to avoid an error. */
18427 /* We use char because int might match the return type of a gcc2
18428 builtin and then its argument prototype would still apply. */
18430 /* The GNU C library defines this for functions which it implements
18431 to always fail with ENOSYS. Some functions are actually named
18432 something starting with __ and the normal name is an alias. */
18433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18436 char (*f) () = $ac_func;
18445 return f != $ac_func;
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18452 (eval $ac_link) 2>conftest.er1
18454 grep -v '^ *+' conftest.er1 >conftest.err
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag"
18460 || test ! -s conftest.err'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 eval "$as_ac_var=yes"
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 eval "$as_ac_var=no"
18479 rm -f conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18484 if test `eval echo '${'$as_ac_var'}'` = yes; then
18485 cat >>confdefs.h <<_ACEOF
18486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_INET_PTON 1
18496 for ac_func in inet_ntop
18498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18499 echo "$as_me:$LINENO: checking for $ac_func" >&5
18500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18501 if eval "test \"\${$as_ac_var+set}\" = set"; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18512 #define $ac_func innocuous_$ac_func
18514 /* System header to define __stub macros and hopefully few prototypes,
18515 which can conflict with char $ac_func (); below.
18516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517 <limits.h> exists even on freestanding compilers. */
18520 # include <limits.h>
18522 # include <assert.h>
18527 /* Override any gcc2 internal prototype to avoid an error. */
18532 /* We use char because int might match the return type of a gcc2
18533 builtin and then its argument prototype would still apply. */
18535 /* The GNU C library defines this for functions which it implements
18536 to always fail with ENOSYS. Some functions are actually named
18537 something starting with __ and the normal name is an alias. */
18538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18541 char (*f) () = $ac_func;
18550 return f != $ac_func;
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18557 (eval $ac_link) 2>conftest.er1
18559 grep -v '^ *+' conftest.er1 >conftest.err
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } &&
18564 { ac_try='test -z "$ac_c_werror_flag"
18565 || test ! -s conftest.err'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest$ac_exeext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 eval "$as_ac_var=yes"
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 eval "$as_ac_var=no"
18584 rm -f conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18589 if test `eval echo '${'$as_ac_var'}'` = yes; then
18590 cat >>confdefs.h <<_ACEOF
18591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18593 cat >>confdefs.h <<\_ACEOF
18594 #define HAVE_INET_NTOP 1
18601 for ac_func in gethostbyname2
18603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18604 echo "$as_me:$LINENO: checking for $ac_func" >&5
18605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18606 if eval "test \"\${$as_ac_var+set}\" = set"; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 cat >conftest.$ac_ext <<_ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18617 #define $ac_func innocuous_$ac_func
18619 /* System header to define __stub macros and hopefully few prototypes,
18620 which can conflict with char $ac_func (); below.
18621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18622 <limits.h> exists even on freestanding compilers. */
18625 # include <limits.h>
18627 # include <assert.h>
18632 /* Override any gcc2 internal prototype to avoid an error. */
18637 /* We use char because int might match the return type of a gcc2
18638 builtin and then its argument prototype would still apply. */
18640 /* The GNU C library defines this for functions which it implements
18641 to always fail with ENOSYS. Some functions are actually named
18642 something starting with __ and the normal name is an alias. */
18643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18646 char (*f) () = $ac_func;
18655 return f != $ac_func;
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18662 (eval $ac_link) 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag"
18670 || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 eval "$as_ac_var=yes"
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 eval "$as_ac_var=no"
18689 rm -f conftest.err conftest.$ac_objext \
18690 conftest$ac_exeext conftest.$ac_ext
18692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18694 if test `eval echo '${'$as_ac_var'}'` = yes; then
18695 cat >>confdefs.h <<_ACEOF
18696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18698 cat >>confdefs.h <<\_ACEOF
18699 #define HAVE_GETHOSTBYNAME2 1
18706 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18707 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18708 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 #include <sys/socket.h>
18721 struct sockaddr s; s.sa_len;
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_cv_struct_sockaddr_sa_len=yes
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_cv_struct_sockaddr_sa_len=no
18755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18758 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18760 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18762 cat >>confdefs.h <<\_ACEOF
18763 #define HAVE_SA_LEN 1
18769 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18770 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18771 if test "${ac_cv_ipv6_support+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 #include <sys/types.h>
18781 #include <sys/socket.h>
18782 #include <netinet/in.h>
18786 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18794 (eval $ac_link) 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_c_werror_flag"
18802 || test ! -s conftest.err'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest$ac_exeext'
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_ipv6_support=yes
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18819 ac_cv_ipv6_support=no
18821 rm -f conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18824 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18825 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18827 if test "$ac_cv_ipv6_support" = yes; then
18829 cat >>confdefs.h <<\_ACEOF
18830 #define HAVE_IPV6 1
18838 for ac_func in strftime
18840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18841 echo "$as_me:$LINENO: checking for $ac_func" >&5
18842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18843 if eval "test \"\${$as_ac_var+set}\" = set"; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18854 #define $ac_func innocuous_$ac_func
18856 /* System header to define __stub macros and hopefully few prototypes,
18857 which can conflict with char $ac_func (); below.
18858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859 <limits.h> exists even on freestanding compilers. */
18862 # include <limits.h>
18864 # include <assert.h>
18869 /* Override any gcc2 internal prototype to avoid an error. */
18874 /* We use char because int might match the return type of a gcc2
18875 builtin and then its argument prototype would still apply. */
18877 /* The GNU C library defines this for functions which it implements
18878 to always fail with ENOSYS. Some functions are actually named
18879 something starting with __ and the normal name is an alias. */
18880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18883 char (*f) () = $ac_func;
18892 return f != $ac_func;
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 eval "$as_ac_var=yes"
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 eval "$as_ac_var=no"
18926 rm -f conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18931 if test `eval echo '${'$as_ac_var'}'` = yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18937 # strftime is in -lintl on SCO UNIX.
18938 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18939 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18940 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lintl $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18952 /* Override any gcc2 internal prototype to avoid an error. */
18956 /* We use char because int might match the return type of a gcc2
18957 builtin and then its argument prototype would still apply. */
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_c_werror_flag"
18977 || test ! -s conftest.err'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_lib_intl_strftime=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_lib_intl_strftime=no
18996 rm -f conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
19000 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19001 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19002 if test $ac_cv_lib_intl_strftime = yes; then
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE_STRFTIME 1
19007 LIBS="-lintl $LIBS"
19014 for ac_func in vprintf
19016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19017 echo "$as_me:$LINENO: checking for $ac_func" >&5
19018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19019 if eval "test \"\${$as_ac_var+set}\" = set"; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19030 #define $ac_func innocuous_$ac_func
19032 /* System header to define __stub macros and hopefully few prototypes,
19033 which can conflict with char $ac_func (); below.
19034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19035 <limits.h> exists even on freestanding compilers. */
19038 # include <limits.h>
19040 # include <assert.h>
19045 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19053 /* The GNU C library defines this for functions which it implements
19054 to always fail with ENOSYS. Some functions are actually named
19055 something starting with __ and the normal name is an alias. */
19056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19059 char (*f) () = $ac_func;
19068 return f != $ac_func;
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075 (eval $ac_link) 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 eval "$as_ac_var=yes"
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 eval "$as_ac_var=no"
19102 rm -f conftest.err conftest.$ac_objext \
19103 conftest$ac_exeext conftest.$ac_ext
19105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19107 if test `eval echo '${'$as_ac_var'}'` = yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19112 echo "$as_me:$LINENO: checking for _doprnt" >&5
19113 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19114 if test "${ac_cv_func__doprnt+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19125 #define _doprnt innocuous__doprnt
19127 /* System header to define __stub macros and hopefully few prototypes,
19128 which can conflict with char _doprnt (); below.
19129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19130 <limits.h> exists even on freestanding compilers. */
19133 # include <limits.h>
19135 # include <assert.h>
19140 /* Override any gcc2 internal prototype to avoid an error. */
19145 /* We use char because int might match the return type of a gcc2
19146 builtin and then its argument prototype would still apply. */
19148 /* The GNU C library defines this for functions which it implements
19149 to always fail with ENOSYS. Some functions are actually named
19150 something starting with __ and the normal name is an alias. */
19151 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19154 char (*f) () = _doprnt;
19163 return f != _doprnt;
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest$ac_exeext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_func__doprnt=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_cv_func__doprnt=no
19197 rm -f conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19200 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19201 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19202 if test $ac_cv_func__doprnt = yes; then
19204 cat >>confdefs.h <<\_ACEOF
19205 #define HAVE_DOPRNT 1
19214 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19215 # for constant arguments. Useless!
19216 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19217 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19218 if test "${ac_cv_working_alloca_h+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19221 cat >conftest.$ac_ext <<_ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 #include <alloca.h>
19231 char *p = (char *) alloca (2 * sizeof (int));
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag"
19246 || test ! -s conftest.err'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; } &&
19252 { ac_try='test -s conftest$ac_exeext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 ac_cv_working_alloca_h=yes
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_cv_working_alloca_h=no
19265 rm -f conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext conftest.$ac_ext
19268 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19269 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19270 if test $ac_cv_working_alloca_h = yes; then
19272 cat >>confdefs.h <<\_ACEOF
19273 #define HAVE_ALLOCA_H 1
19278 echo "$as_me:$LINENO: checking for alloca" >&5
19279 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19280 if test "${ac_cv_func_alloca_works+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 # define alloca __builtin_alloca
19293 # include <malloc.h>
19294 # define alloca _alloca
19297 # include <alloca.h>
19302 # ifndef alloca /* predefined by HP cc +Olibcalls */
19313 char *p = (char *) alloca (1);
19318 rm -f conftest.$ac_objext conftest$ac_exeext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320 (eval $ac_link) 2>conftest.er1
19322 grep -v '^ *+' conftest.er1 >conftest.err
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_c_werror_flag"
19328 || test ! -s conftest.err'
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest$ac_exeext'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340 ac_cv_func_alloca_works=yes
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 ac_cv_func_alloca_works=no
19347 rm -f conftest.err conftest.$ac_objext \
19348 conftest$ac_exeext conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19351 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19353 if test $ac_cv_func_alloca_works = yes; then
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE_ALLOCA 1
19360 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19361 # that cause trouble. Some versions do not even contain alloca or
19362 # contain a buggy version. If you still want to use their alloca,
19363 # use ar to extract alloca.o from them instead of compiling alloca.c.
19365 ALLOCA=alloca.$ac_objext
19367 cat >>confdefs.h <<\_ACEOF
19372 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19373 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19374 if test "${ac_cv_os_cray+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 #if defined(CRAY) && ! defined(CRAY2)
19390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19391 $EGREP "webecray" >/dev/null 2>&1; then
19399 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19400 echo "${ECHO_T}$ac_cv_os_cray" >&6
19401 if test $ac_cv_os_cray = yes; then
19402 for ac_func in _getb67 GETB67 getb67; do
19403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19404 echo "$as_me:$LINENO: checking for $ac_func" >&5
19405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19406 if eval "test \"\${$as_ac_var+set}\" = set"; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417 #define $ac_func innocuous_$ac_func
19419 /* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char $ac_func (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19425 # include <limits.h>
19427 # include <assert.h>
19432 /* Override any gcc2 internal prototype to avoid an error. */
19437 /* We use char because int might match the return type of a gcc2
19438 builtin and then its argument prototype would still apply. */
19440 /* The GNU C library defines this for functions which it implements
19441 to always fail with ENOSYS. Some functions are actually named
19442 something starting with __ and the normal name is an alias. */
19443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19446 char (*f) () = $ac_func;
19455 return f != $ac_func;
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462 (eval $ac_link) 2>conftest.er1
19464 grep -v '^ *+' conftest.er1 >conftest.err
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 eval "$as_ac_var=yes"
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 eval "$as_ac_var=no"
19489 rm -f conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19494 if test `eval echo '${'$as_ac_var'}'` = yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define CRAY_STACKSEG_END $ac_func
19506 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19507 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19508 if test "${ac_cv_c_stack_direction+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 if test "$cross_compiling" = yes; then
19512 ac_cv_c_stack_direction=0
19514 cat >conftest.$ac_ext <<_ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19521 find_stack_direction ()
19523 static char *addr = 0;
19528 return find_stack_direction ();
19531 return (&dummy > addr) ? 1 : -1;
19537 exit (find_stack_direction () < 0);
19540 rm -f conftest$ac_exeext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19542 (eval $ac_link) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_c_stack_direction=1
19553 echo "$as_me: program exited with status $ac_status" >&5
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ( exit $ac_status )
19558 ac_cv_c_stack_direction=-1
19560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19563 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19564 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19566 cat >>confdefs.h <<_ACEOF
19567 #define STACK_DIRECTION $ac_cv_c_stack_direction
19573 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19574 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19575 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19576 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 ac_check_lib_save_LIBS=$LIBS
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19588 /* Override any gcc2 internal prototype to avoid an error. */
19592 /* We use char because int might match the return type of a gcc2
19593 builtin and then its argument prototype would still apply. */
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605 (eval $ac_link) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_lib_sun_getmntent=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_sun_getmntent=no
19632 rm -f conftest.err conftest.$ac_objext \
19633 conftest$ac_exeext conftest.$ac_ext
19634 LIBS=$ac_check_lib_save_LIBS
19636 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19637 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19638 if test $ac_cv_lib_sun_getmntent = yes; then
19641 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19642 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19643 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 ac_check_lib_save_LIBS=$LIBS
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19655 /* Override any gcc2 internal prototype to avoid an error. */
19659 /* We use char because int might match the return type of a gcc2
19660 builtin and then its argument prototype would still apply. */
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19672 (eval $ac_link) 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest$ac_exeext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_lib_seq_getmntent=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_lib_seq_getmntent=no
19699 rm -f conftest.err conftest.$ac_objext \
19700 conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19703 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19704 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19705 if test $ac_cv_lib_seq_getmntent = yes; then
19708 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19709 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19710 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 ac_check_lib_save_LIBS=$LIBS
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19722 /* Override any gcc2 internal prototype to avoid an error. */
19726 /* We use char because int might match the return type of a gcc2
19727 builtin and then its argument prototype would still apply. */
19737 rm -f conftest.$ac_objext conftest$ac_exeext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19739 (eval $ac_link) 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
19746 { ac_try='test -z "$ac_c_werror_flag"
19747 || test ! -s conftest.err'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest$ac_exeext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_cv_lib_gen_getmntent=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_lib_gen_getmntent=no
19766 rm -f conftest.err conftest.$ac_objext \
19767 conftest$ac_exeext conftest.$ac_ext
19768 LIBS=$ac_check_lib_save_LIBS
19770 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19771 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19772 if test $ac_cv_lib_gen_getmntent = yes; then
19781 for ac_func in getmntent
19783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19784 echo "$as_me:$LINENO: checking for $ac_func" >&5
19785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19786 if eval "test \"\${$as_ac_var+set}\" = set"; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19797 #define $ac_func innocuous_$ac_func
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char $ac_func (); below.
19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802 <limits.h> exists even on freestanding compilers. */
19805 # include <limits.h>
19807 # include <assert.h>
19812 /* Override any gcc2 internal prototype to avoid an error. */
19817 /* We use char because int might match the return type of a gcc2
19818 builtin and then its argument prototype would still apply. */
19820 /* The GNU C library defines this for functions which it implements
19821 to always fail with ENOSYS. Some functions are actually named
19822 something starting with __ and the normal name is an alias. */
19823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19826 char (*f) () = $ac_func;
19835 return f != $ac_func;
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842 (eval $ac_link) 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_c_werror_flag"
19850 || test ! -s conftest.err'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest$ac_exeext'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 eval "$as_ac_var=yes"
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 eval "$as_ac_var=no"
19869 rm -f conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19874 if test `eval echo '${'$as_ac_var'}'` = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19883 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19884 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19885 if test "${ac_cv_func_closedir_void+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 if test "$cross_compiling" = yes; then
19889 ac_cv_func_closedir_void=yes
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 $ac_includes_default
19898 #include <$ac_header_dirent>
19899 #ifndef __cplusplus
19906 exit (closedir (opendir (".")) != 0);
19911 rm -f conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913 (eval $ac_link) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_func_closedir_void=no
19924 echo "$as_me: program exited with status $ac_status" >&5
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ( exit $ac_status )
19929 ac_cv_func_closedir_void=yes
19931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19934 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19935 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19936 if test $ac_cv_func_closedir_void = yes; then
19938 cat >>confdefs.h <<\_ACEOF
19939 #define CLOSEDIR_VOID 1
19944 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19945 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19946 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 if test "$cross_compiling" = yes; then
19950 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19951 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19952 { (exit 1); exit 1; }; }
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19961 # include <unistd.h>
19967 /* If this system has a BSD-style setpgrp which takes arguments,
19968 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19969 exit successfully. */
19970 exit (setpgrp (1,1) == -1 ? 0 : 1);
19975 rm -f conftest$ac_exeext
19976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19977 (eval $ac_link) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
19986 ac_cv_func_setpgrp_void=no
19988 echo "$as_me: program exited with status $ac_status" >&5
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 ( exit $ac_status )
19993 ac_cv_func_setpgrp_void=yes
19995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19998 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19999 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20000 if test $ac_cv_func_setpgrp_void = yes; then
20002 cat >>confdefs.h <<\_ACEOF
20003 #define SETPGRP_VOID 1
20007 # AC_FUNC_FNMATCH dnl use local version
20010 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20011 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20012 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lxpg4 $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20024 /* Override any gcc2 internal prototype to avoid an error. */
20028 /* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_cv_lib_xpg4_setlocale=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_lib_xpg4_setlocale=no
20068 rm -f conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20070 LIBS=$ac_check_lib_save_LIBS
20072 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20073 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20074 if test $ac_cv_lib_xpg4_setlocale = yes; then
20075 LIBS="$LIBS -lxpg4"
20081 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20082 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20083 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 ac_check_lib_save_LIBS=$LIBS
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20095 /* Override any gcc2 internal prototype to avoid an error. */
20099 /* We use char because int might match the return type of a gcc2
20100 builtin and then its argument prototype would still apply. */
20110 rm -f conftest.$ac_objext conftest$ac_exeext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112 (eval $ac_link) 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest$ac_exeext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_cv_lib_sun_getpwnam=yes
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 ac_cv_lib_sun_getpwnam=no
20139 rm -f conftest.err conftest.$ac_objext \
20140 conftest$ac_exeext conftest.$ac_ext
20141 LIBS=$ac_check_lib_save_LIBS
20143 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20144 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20145 if test $ac_cv_lib_sun_getpwnam = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_LIBSUN 1
20156 for ac_header in zlib.h
20158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160 echo "$as_me:$LINENO: checking for $ac_header" >&5
20161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20168 # Is the header compilable?
20169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 $ac_includes_default
20178 #include <$ac_header>
20180 rm -f conftest.$ac_objext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20182 (eval $ac_compile) 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest.$ac_objext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_header_compiler=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_header_compiler=no
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20211 echo "${ECHO_T}$ac_header_compiler" >&6
20213 # Is the header present?
20214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include <$ac_header>
20224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } >/dev/null; then
20232 if test -s conftest.err; then
20233 ac_cpp_err=$ac_c_preproc_warn_flag
20234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20241 if test -z "$ac_cpp_err"; then
20242 ac_header_preproc=yes
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 ac_header_preproc=no
20249 rm -f conftest.err conftest.$ac_ext
20250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251 echo "${ECHO_T}$ac_header_preproc" >&6
20253 # So? What about this header?
20254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260 ac_header_preproc=yes
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20277 ## ------------------------------------------ ##
20278 ## Report this to the AC_PACKAGE_NAME lists. ##
20279 ## ------------------------------------------ ##
20282 sed "s/^/$as_me: WARNING: /" >&2
20285 echo "$as_me:$LINENO: checking for $ac_header" >&5
20286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 eval "$as_ac_Header=\$ac_header_preproc"
20292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20297 cat >>confdefs.h <<_ACEOF
20298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20305 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20306 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20307 if test "${ac_cv_lib_z_deflate+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 ac_check_lib_save_LIBS=$LIBS
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try='test -z "$ac_c_werror_flag"
20344 || test ! -s conftest.err'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest$ac_exeext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_lib_z_deflate=yes
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ac_cv_lib_z_deflate=no
20363 rm -f conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20367 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20368 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20369 if test $ac_cv_lib_z_deflate = yes; then
20374 if test x$FDLIBS = x-lz; then
20375 cat >>confdefs.h <<\_ACEOF
20376 #define HAVE_LIBZ 1
20382 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20383 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20384 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20385 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20389 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20391 # Is the header compilable?
20392 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20393 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 $ac_includes_default
20401 #include <sys/acl.h>
20403 rm -f conftest.$ac_objext
20404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20405 (eval $ac_compile) 2>conftest.er1
20407 grep -v '^ *+' conftest.er1 >conftest.err
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } &&
20412 { ac_try='test -z "$ac_c_werror_flag"
20413 || test ! -s conftest.err'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_header_compiler=yes
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_compiler=no
20432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20434 echo "${ECHO_T}$ac_header_compiler" >&6
20436 # Is the header present?
20437 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20438 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20439 cat >conftest.$ac_ext <<_ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20445 #include <sys/acl.h>
20447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20450 grep -v '^ *+' conftest.er1 >conftest.err
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } >/dev/null; then
20455 if test -s conftest.err; then
20456 ac_cpp_err=$ac_c_preproc_warn_flag
20457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20464 if test -z "$ac_cpp_err"; then
20465 ac_header_preproc=yes
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_header_preproc=no
20472 rm -f conftest.err conftest.$ac_ext
20473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20474 echo "${ECHO_T}$ac_header_preproc" >&6
20476 # So? What about this header?
20477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20479 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20480 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20482 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20483 ac_header_preproc=yes
20486 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20487 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20489 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20491 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20493 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20495 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20497 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20500 ## ------------------------------------------ ##
20501 ## Report this to the AC_PACKAGE_NAME lists. ##
20502 ## ------------------------------------------ ##
20505 sed "s/^/$as_me: WARNING: /" >&2
20508 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20509 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20510 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 ac_cv_header_sys_acl_h=$ac_header_preproc
20515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20516 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20521 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20522 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20523 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 ac_check_lib_save_LIBS=$LIBS
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20535 /* Override any gcc2 internal prototype to avoid an error. */
20539 /* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20541 char acl_get_file ();
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20552 (eval $ac_link) 2>conftest.er1
20554 grep -v '^ *+' conftest.er1 >conftest.err
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
20559 { ac_try='test -z "$ac_c_werror_flag"
20560 || test ! -s conftest.err'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_lib_acl_acl_get_file=yes
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_cv_lib_acl_acl_get_file=no
20579 rm -f conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20583 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20584 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20585 if test $ac_cv_lib_acl_acl_get_file = yes; then
20586 FDLIBS="-lacl $FDLIBS"
20590 if test $ac_cv_lib_acl_acl_get_file = yes; then
20591 cat >>confdefs.h <<\_ACEOF
20599 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 ac_check_lib_save_LIBS=$LIBS
20605 LIBS="-lpthread $LIBS"
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20613 /* Override any gcc2 internal prototype to avoid an error. */
20617 /* We use char because int might match the return type of a gcc2
20618 builtin and then its argument prototype would still apply. */
20619 char pthread_create ();
20628 rm -f conftest.$ac_objext conftest$ac_exeext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20630 (eval $ac_link) 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try='test -z "$ac_c_werror_flag"
20638 || test ! -s conftest.err'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest$ac_exeext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 ac_cv_lib_pthread_pthread_create=yes
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_lib_pthread_pthread_create=no
20657 rm -f conftest.err conftest.$ac_objext \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20662 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20663 if test $ac_cv_lib_pthread_pthread_create = yes; then
20664 PTHREAD_LIB="-lpthread"
20666 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20667 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20668 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 ac_check_lib_save_LIBS=$LIBS
20672 LIBS="-lpthreads $LIBS"
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20680 /* Override any gcc2 internal prototype to avoid an error. */
20684 /* We use char because int might match the return type of a gcc2
20685 builtin and then its argument prototype would still apply. */
20686 char pthread_create ();
20695 rm -f conftest.$ac_objext conftest$ac_exeext
20696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20697 (eval $ac_link) 2>conftest.er1
20699 grep -v '^ *+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } &&
20704 { ac_try='test -z "$ac_c_werror_flag"
20705 || test ! -s conftest.err'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; } &&
20711 { ac_try='test -s conftest$ac_exeext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 ac_cv_lib_pthreads_pthread_create=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_lib_pthreads_pthread_create=no
20724 rm -f conftest.err conftest.$ac_objext \
20725 conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20728 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20729 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20730 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20731 PTHREAD_LIB="-lpthreads"
20733 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20734 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20735 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 ac_check_lib_save_LIBS=$LIBS
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 /* Override any gcc2 internal prototype to avoid an error. */
20751 /* We use char because int might match the return type of a gcc2
20752 builtin and then its argument prototype would still apply. */
20753 char pthread_create ();
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764 (eval $ac_link) 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_c_werror_flag"
20772 || test ! -s conftest.err'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest$ac_exeext'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_cv_lib_c_r_pthread_create=yes
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 ac_cv_lib_c_r_pthread_create=no
20791 rm -f conftest.err conftest.$ac_objext \
20792 conftest$ac_exeext conftest.$ac_ext
20793 LIBS=$ac_check_lib_save_LIBS
20795 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20796 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20797 if test $ac_cv_lib_c_r_pthread_create = yes; then
20798 PTHREAD_LIB="-lc_r"
20800 echo "$as_me:$LINENO: checking for pthread_create" >&5
20801 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20802 if test "${ac_cv_func_pthread_create+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20811 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20813 #define pthread_create innocuous_pthread_create
20815 /* System header to define __stub macros and hopefully few prototypes,
20816 which can conflict with char pthread_create (); below.
20817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20818 <limits.h> exists even on freestanding compilers. */
20821 # include <limits.h>
20823 # include <assert.h>
20826 #undef pthread_create
20828 /* Override any gcc2 internal prototype to avoid an error. */
20833 /* We use char because int might match the return type of a gcc2
20834 builtin and then its argument prototype would still apply. */
20835 char pthread_create ();
20836 /* The GNU C library defines this for functions which it implements
20837 to always fail with ENOSYS. Some functions are actually named
20838 something starting with __ and the normal name is an alias. */
20839 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20842 char (*f) () = pthread_create;
20851 return f != pthread_create;
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858 (eval $ac_link) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ac_cv_func_pthread_create=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_cv_func_pthread_create=no
20885 rm -f conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20888 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20889 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20902 cat >>confdefs.h <<\_ACEOF
20908 CFLAGS=${CFLAGS--O}
20909 LDFLAGS=${LDFLAGS--O}
20910 DB_LIBS="${SQL_LFLAGS}"
20912 CPPFLAGS="$CPPFLAGS"
20937 # Finally we set appropriate distribution specific
20938 # variables and defaults
20940 # PFILES are platform specific files
20941 PFILES="platforms/Makefile"
20945 PYTHON_LIBS_EXTRAS="-ldl"
20946 hostname=`uname -n | cut -d '.' -f 1`
20947 case "$DISTNAME" in
20950 PSCMD="ps -e -o pid,comm"
20951 PFILES="${PFILES} \
20952 platforms/aix/Makefile"
20953 TAPEDRIVE="/dev/rmt0.1"
20957 PTHREAD_LIB="-lpthread -lexc"
20958 if test "${CC}" = "gcc" ; then
20965 TAPEDRIVE="/dev/nrmt0"
20968 DISTVER=`uname -a |awk '{print $3}'`
20969 TAPEDRIVE="/dev/nrmt0"
20970 PTHREAD_LIB="-pthread"
20971 CFLAGS="${CFLAGS} -pthread"
20972 PSCMD="ps -ax -o pid,command"
20975 PFILES="${PFILES} \
20976 platforms/bsdi/Makefile \
20977 platforms/bsdi/bacula-fd \
20978 platforms/bsdi/bacula-sd \
20979 platforms/bsdi/bacula-dir"
20980 largefile_support="yes"
20983 DISTVER=`uname -a |awk '{print $3}'`
20984 TAPEDRIVE="/dev/nrst0"
20986 WCFLAGS="-mwindows"
20987 WLDFLAGS="-mwindows"
20991 TAPEDRIVE="/dev/nst0"
20992 PSCMD="ps -e -o pid,command"
20994 PFILES="${PFILES} \
20995 platforms/darwin/Makefile"
20998 DISTVER=`cat /etc/debian_version`
20999 TAPEDRIVE="/dev/nrst0"
21000 PSCMD="ps -e -o pid,command"
21003 DISTVER=`uname -a |awk '{print $3}'`
21004 VER=`echo $DISTVER | cut -c 1`
21005 if test x$VER = x4 ; then
21006 PTHREAD_LIB="-pthread"
21007 CFLAGS="${CFLAGS} -pthread"
21011 TAPEDRIVE="/dev/nrsa0"
21012 PSCMD="ps -ax -o pid,command"
21013 PFILES="${PFILES} \
21014 platforms/freebsd/Makefile \
21015 platforms/freebsd/bacula-fd \
21016 platforms/freebsd/bacula-sd \
21017 platforms/freebsd/bacula-dir"
21018 largefile_support="yes"
21019 PYTHON_LIBS_EXTRAS=
21022 PSCMD="UNIX95=1 ps -e -o pid,comm"
21023 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21025 TAPEDRIVE="/dev/rmt/0hnb"
21026 PTHREAD_LIB="-lpthread"
21027 cat >>confdefs.h <<\_ACEOF
21028 #define _INCLUDE_LONGLONG 1
21034 TAPEDRIVE="/dev/rmt/0cbn"
21035 PSCMD="ps -e -o pid,comm"
21036 PFILES="${PFILES} \
21037 platforms/irix/Makefile \
21038 platforms/irix/bacula-fd \
21039 platforms/irix/bacula-sd \
21040 platforms/irix/bacula-dir"
21043 DISTVER=`uname -a |awk '{print $3}'`
21046 TAPEDRIVE="/dev/nrst0"
21047 PSCMD="ps -ax -o pid,command"
21048 PTHREAD_LIB="-pthread"
21049 CFLAGS="${CFLAGS} -pthread"
21052 DISTVER=`uname -a |awk '{print $3}'`
21055 TAPEDRIVE="/dev/nrst0"
21056 PSCMD="ps -ax -o pid,command"
21057 PTHREAD_LIB="-pthread"
21058 CFLAGS="${CFLAGS} -pthread"
21059 PFILES="${PFILES} \
21060 platforms/openbsd/Makefile \
21061 platforms/openbsd/bacula-fd \
21062 platforms/openbsd/bacula-sd \
21063 platforms/openbsd/bacula-dir"
21066 if test -f /etc/whitebox-release ; then
21067 f=/etc/whitebox-release
21069 f=/etc/redhat-release
21071 if test `cat $f | grep release |\
21072 cut -f 3 -d ' '`x = "Enterprise"x ; then
21073 DISTVER="Enterprise "`cat $f | grep release |\
21076 DISTVER=`cat /etc/redhat-release | grep release |\
21079 TAPEDRIVE="/dev/nst0"
21080 PSCMD="ps -e -o pid,command"
21081 PFILES="${PFILES} \
21082 platforms/redhat/Makefile \
21083 platforms/redhat/bacula-fd \
21084 platforms/redhat/bacula-sd \
21085 platforms/redhat/bacula-dir \
21086 platforms/redhat/bacula.spec \
21088 hostname=`hostname -s`
21091 DISTVER=`cat /etc/mandrake-release | grep release |\
21093 TAPEDRIVE="/dev/nst0"
21094 PSCMD="ps -e -o pid,command"
21095 PFILES="${PFILES} \
21096 platforms/mandrake/Makefile \
21097 platforms/mandrake/bacula-fd \
21098 platforms/mandrake/bacula-sd \
21099 platforms/mandrake/bacula-dir \
21100 platforms/mandrake/bacula.spec \
21104 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21105 TAPEDRIVE="/dev/nst0"
21106 PSCMD="ps -e -o pid,command"
21107 PFILES="${PFILES} \
21108 platforms/gentoo/Makefile \
21109 platforms/gentoo/bacula-init \
21110 platforms/gentoo/bacula-fd \
21111 platforms/gentoo/bacula-sd \
21112 platforms/gentoo/bacula-dir"
21115 DISTVER=`cat /etc/slackware-version`
21116 TAPEDRIVE="/dev/nst0"
21117 PSCMD="ps -e -o pid,command"
21118 PFILES="${PFILES} \
21119 platforms/slackware/Makefile \
21120 platforms/slackware/rc.bacula-fd \
21121 platforms/slackware/rc.bacula-sd \
21122 platforms/slackware/rc.bacula-dir\
21123 platforms/slackware/functions.bacula"
21127 TAPEDRIVE="/dev/rmt/0cbn"
21128 PSCMD="ps -e -o pid,comm"
21129 PFILES="${PFILES} \
21130 platforms/solaris/Makefile \
21131 platforms/solaris/bacula-fd \
21132 platforms/solaris/bacula-sd \
21133 platforms/solaris/bacula-dir"
21134 if test x$DISTVER = x5.6 ; then
21135 cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_OLD_SOCKOPT 1
21140 LIBS="$LIBS -lresolv"
21143 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21145 TAPEDRIVE="/dev/nst0"
21146 PSCMD="ps -e -o pid,command"
21147 PFILES="${PFILES} \
21148 platforms/suse/Makefile \
21149 platforms/suse/bacula-fd \
21150 platforms/suse/bacula-sd \
21151 platforms/suse/bacula-dir \
21152 platforms/suse/bacula \
21153 platforms/suse/bacula.spec"
21158 TAPEDRIVE="/dev/nst0"
21159 PSCMD="ps -e -o pid,command"
21160 PFILES="${PFILES} \
21161 platforms/suse/Makefile \
21162 platforms/suse/bacula-fd \
21163 platforms/suse/bacula-sd \
21164 platforms/suse/bacula-dir"
21168 TAPEDRIVE="/dev/nst0"
21171 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21177 LIBS="$PTHREAD_LIB $LIBS"
21178 if test "x$PYTHON_LIBS" != x -a "x$PYTHON_LIBS_EXTRAS" != x; then
21179 PYTHON_LIBS="$PYTHON_LIBS $PYTHON_LIBS_EXTRAS"
21182 cat >>confdefs.h <<_ACEOF
21186 cat >>confdefs.h <<_ACEOF
21197 MCOMMON=./autoconf/Make.common
21200 if test "x${subsysdir}" = "x${sbindir}" ; then
21203 echo "You have set both --sbindir and --with-subsys-dir"
21204 echo " equal to: ${subsysdir} "
21205 echo "This is not permitted. Please reconfigure."
21207 echo "Aborting configuration ..."
21213 ac_config_files="$ac_config_files autoconf/Make.common 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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 $PFILES"
21214 ac_config_commands="$ac_config_commands default"
21215 cat >confcache <<\_ACEOF
21216 # This file is a shell script that caches the results of configure
21217 # tests run on this system so they can be shared between configure
21218 # scripts and configure runs, see configure's option --config-cache.
21219 # It is not useful on other systems. If it contains results you don't
21220 # want to keep, you may remove or edit it.
21222 # config.status only pays attention to the cache file if you give it
21223 # the --recheck option to rerun configure.
21225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21227 # following values.
21231 # The following way of writing the cache mishandles newlines in values,
21232 # but we know of no workaround that is simple, portable, and efficient.
21233 # So, don't put newlines in cache variables' values.
21234 # Ultrix sh set writes to stderr and can't be redirected directly,
21235 # and sets the high bit in the cache file unless we assign to the vars.
21238 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21240 # `set' does not quote correctly, so add quotes (double-quote
21241 # substitution turns \\\\ into \\, and sed turns \\ into \).
21244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21247 # `set' quotes correctly as required by POSIX, so do not add quotes.
21249 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21258 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21260 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21261 if test -w $cache_file; then
21262 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21263 cat confcache >$cache_file
21265 echo "not updating unwritable cache $cache_file"
21270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21271 # Let make expand exec_prefix.
21272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21276 # trailing colons and then remove the whole line if VPATH becomes empty
21277 # (actually we leave an empty line to preserve line numbers).
21278 if test "x$srcdir" = x.; then
21279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21280 s/:*\$(srcdir):*/:/;
21281 s/:*\${srcdir}:*/:/;
21283 s/^\([^=]*=[ ]*\):*/\1/;
21289 DEFS=-DHAVE_CONFIG_H
21293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21294 # 1. Remove the extension, and $U if already installed.
21295 ac_i=`echo "$ac_i" |
21296 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21298 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21299 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21301 LIBOBJS=$ac_libobjs
21303 LTLIBOBJS=$ac_ltlibobjs
21307 : ${CONFIG_STATUS=./config.status}
21308 ac_clean_files_save=$ac_clean_files
21309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21310 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21311 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21312 cat >$CONFIG_STATUS <<_ACEOF
21314 # Generated by $as_me.
21315 # Run this file to recreate the current configuration.
21316 # Compiler output produced by configure, useful for debugging
21317 # configure, is in config.log if it exists.
21320 ac_cs_recheck=false
21322 SHELL=\${CONFIG_SHELL-$SHELL}
21325 cat >>$CONFIG_STATUS <<\_ACEOF
21326 ## --------------------- ##
21327 ## M4sh Initialization. ##
21328 ## --------------------- ##
21330 # Be Bourne compatible
21331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21334 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21335 # is contrary to our usage. Disable this feature.
21336 alias -g '${1+"$@"}'='"$@"'
21337 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21340 DUALCASE=1; export DUALCASE # for MKS sh
21342 # Support unset when possible.
21343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21350 # Work around bugs in pre-3.0 UWIN ksh.
21351 $as_unset ENV MAIL MAILPATH
21358 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21359 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21360 LC_TELEPHONE LC_TIME
21362 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21363 eval $as_var=C; export $as_var
21369 # Required to use basename.
21370 if expr a : '\(a\)' >/dev/null 2>&1; then
21376 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21377 as_basename=basename
21383 # Name of the executable.
21384 as_me=`$as_basename "$0" ||
21385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21386 X"$0" : 'X\(//\)$' \| \
21387 X"$0" : 'X\(/\)$' \| \
21388 . : '\(.\)' 2>/dev/null ||
21390 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21391 /^X\/\(\/\/\)$/{ s//\1/; q; }
21392 /^X\/\(\/\).*/{ s//\1/; q; }
21396 # PATH needs CR, and LINENO needs CR and PATH.
21397 # Avoid depending upon Character Ranges.
21398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21401 as_cr_digits='0123456789'
21402 as_cr_alnum=$as_cr_Letters$as_cr_digits
21404 # The user is always right.
21405 if test "${PATH_SEPARATOR+set}" != set; then
21406 echo "#! /bin/sh" >conf$$.sh
21407 echo "exit 0" >>conf$$.sh
21409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21418 as_lineno_1=$LINENO
21419 as_lineno_2=$LINENO
21420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21421 test "x$as_lineno_1" != "x$as_lineno_2" &&
21422 test "x$as_lineno_3" = "x$as_lineno_2" || {
21423 # Find who we are. Look in the path if we contain no path at all
21426 *[\\/]* ) as_myself=$0 ;;
21427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21428 for as_dir in $PATH
21431 test -z "$as_dir" && as_dir=.
21432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21437 # We did not find ourselves, most probably we were run as `sh COMMAND'
21438 # in which case we are not to be found in the path.
21439 if test "x$as_myself" = x; then
21442 if test ! -f "$as_myself"; then
21443 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21444 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21445 { (exit 1); exit 1; }; }
21447 case $CONFIG_SHELL in
21449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21450 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21453 test -z "$as_dir" && as_dir=.
21454 for as_base in sh bash ksh sh5; do
21457 if ("$as_dir/$as_base" -c '
21458 as_lineno_1=$LINENO
21459 as_lineno_2=$LINENO
21460 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21461 test "x$as_lineno_1" != "x$as_lineno_2" &&
21462 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21463 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21464 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21465 CONFIG_SHELL=$as_dir/$as_base
21466 export CONFIG_SHELL
21467 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21475 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21476 # uniformly replaced by the line number. The first 'sed' inserts a
21477 # line-number line before each line; the second 'sed' does the real
21478 # work. The second script uses 'N' to pair each line-number line
21479 # with the numbered line, and appends trailing '-' during
21480 # substitution so that $LINENO is not a special case at line end.
21481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21482 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21483 sed '=' <$as_myself |
21488 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21491 s,^['$as_cr_digits']*\n,,
21492 ' >$as_me.lineno &&
21493 chmod +x $as_me.lineno ||
21494 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21495 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21496 { (exit 1); exit 1; }; }
21498 # Don't try to exec as it changes $[0], causing all sort of problems
21499 # (the dirname of $[0] is not the place where we might find the
21500 # original and so on. Autoconf is especially sensible to this).
21502 # Exit status is that of the last command.
21507 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21508 *c*,-n*) ECHO_N= ECHO_C='
21510 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21511 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21514 if expr a : '\(a\)' >/dev/null 2>&1; then
21520 rm -f conf$$ conf$$.exe conf$$.file
21522 if ln -s conf$$.file conf$$ 2>/dev/null; then
21523 # We could just check for DJGPP; but this test a) works b) is more generic
21524 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21525 if test -f conf$$.exe; then
21526 # Don't use ln at all; we don't have any links
21531 elif ln conf$$.file conf$$ 2>/dev/null; then
21536 rm -f conf$$ conf$$.exe conf$$.file
21538 if mkdir -p . 2>/dev/null; then
21541 test -d ./-p && rmdir ./-p
21545 as_executable_p="test -f"
21547 # Sed expression to map a string onto a valid CPP name.
21548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21550 # Sed expression to map a string onto a valid variable name.
21551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21555 # We need space, tab and new line, in precisely that order.
21565 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21566 # report actual input values of CONFIG_FILES etc. instead of their
21567 # values after options handling. Logging --version etc. is OK.
21571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21572 ## Running $as_me. ##
21577 This file was extended by $as_me, which was
21578 generated by GNU Autoconf 2.59. Invocation command line was
21580 CONFIG_FILES = $CONFIG_FILES
21581 CONFIG_HEADERS = $CONFIG_HEADERS
21582 CONFIG_LINKS = $CONFIG_LINKS
21583 CONFIG_COMMANDS = $CONFIG_COMMANDS
21587 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21591 # Files that config.status was made for.
21592 if test -n "$ac_config_files"; then
21593 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21596 if test -n "$ac_config_headers"; then
21597 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21600 if test -n "$ac_config_links"; then
21601 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21604 if test -n "$ac_config_commands"; then
21605 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21608 cat >>$CONFIG_STATUS <<\_ACEOF
21611 \`$as_me' instantiates files from templates according to the
21612 current configuration.
21614 Usage: $0 [OPTIONS] [FILE]...
21616 -h, --help print this help, then exit
21617 -V, --version print version number, then exit
21618 -q, --quiet do not print progress messages
21619 -d, --debug don't remove temporary files
21620 --recheck update $as_me by reconfiguring in the same conditions
21621 --file=FILE[:TEMPLATE]
21622 instantiate the configuration file FILE
21623 --header=FILE[:TEMPLATE]
21624 instantiate the configuration header FILE
21626 Configuration files:
21629 Configuration headers:
21632 Configuration commands:
21635 Report bugs to <bug-autoconf@gnu.org>."
21638 cat >>$CONFIG_STATUS <<_ACEOF
21641 configured by $0, generated by GNU Autoconf 2.59,
21642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21644 Copyright (C) 2003 Free Software Foundation, Inc.
21645 This config.status script is free software; the Free Software Foundation
21646 gives unlimited permission to copy, distribute and modify it."
21651 cat >>$CONFIG_STATUS <<\_ACEOF
21652 # If no file are specified by the user, then we need to provide default
21653 # value. By we need to know if files were specified by the user.
21659 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21660 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21668 *) # This is not an option, so the user has probably given explicit
21671 ac_need_defaults=false;;
21675 # Handling of the options.
21677 cat >>$CONFIG_STATUS <<\_ACEOF
21678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21680 --version | --vers* | -V )
21681 echo "$ac_cs_version"; exit 0 ;;
21683 # Conflict between --help and --header
21684 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21685 Try \`$0 --help' for more information." >&5
21686 echo "$as_me: error: ambiguous option: $1
21687 Try \`$0 --help' for more information." >&2;}
21688 { (exit 1); exit 1; }; };;
21689 --help | --hel | -h )
21690 echo "$ac_cs_usage"; exit 0 ;;
21691 --debug | --d* | -d )
21693 --file | --fil | --fi | --f )
21695 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21696 ac_need_defaults=false;;
21697 --header | --heade | --head | --hea )
21699 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21700 ac_need_defaults=false;;
21701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21705 # This is an error.
21706 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21707 Try \`$0 --help' for more information." >&5
21708 echo "$as_me: error: unrecognized option: $1
21709 Try \`$0 --help' for more information." >&2;}
21710 { (exit 1); exit 1; }; } ;;
21712 *) ac_config_targets="$ac_config_targets $1" ;;
21718 ac_configure_extra_args=
21720 if $ac_cs_silent; then
21722 ac_configure_extra_args="$ac_configure_extra_args --silent"
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 if \$ac_cs_recheck; then
21728 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21729 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21738 cat >>$CONFIG_STATUS <<\_ACEOF
21739 for ac_config_target in $ac_config_targets
21741 case "$ac_config_target" in
21742 # Handling of arguments.
21743 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21744 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21745 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21746 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21747 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21748 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21749 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21750 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21751 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21752 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21753 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21754 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21755 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21756 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21757 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21758 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21759 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21760 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21761 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21762 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21763 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21764 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21765 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21766 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21767 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21768 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21769 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21770 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21771 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21772 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21773 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21774 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21775 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21776 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21777 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21778 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21779 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21780 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21781 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21782 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21783 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21784 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21785 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21786 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21787 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21788 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21789 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21790 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21791 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21792 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21793 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21794 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21795 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21796 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21797 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21798 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21799 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21800 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21801 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21802 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21803 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21804 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21805 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21806 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21807 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21808 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
21809 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
21810 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
21811 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
21812 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
21813 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
21814 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21815 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21816 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21817 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21818 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21819 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21820 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21821 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21822 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21823 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21824 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21825 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21826 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21827 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21828 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21829 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21830 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21831 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21832 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21833 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21834 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21835 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21836 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21837 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21838 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21839 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21840 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21841 { (exit 1); exit 1; }; };;
21845 # If the user did not use the arguments to specify the items to instantiate,
21846 # then the envvar interface is used. Set only those that are not.
21847 # We use the long form for the default assignment because of an extremely
21848 # bizarre bug on SunOS 4.1.3.
21849 if $ac_need_defaults; then
21850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21855 # Have a temporary directory for convenience. Make it in the build tree
21856 # simply because there is no reason to put it here, and in addition,
21857 # creating and moving files from /tmp can sometimes cause problems.
21858 # Create a temporary directory, and hook for its removal unless debugging.
21861 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21862 trap '{ (exit 1); exit 1; }' 1 2 13 15
21865 # Create a (secure) tmp directory for tmp files.
21868 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21869 test -n "$tmp" && test -d "$tmp"
21872 tmp=./confstat$$-$RANDOM
21873 (umask 077 && mkdir $tmp)
21876 echo "$me: cannot create a temporary directory in ." >&2
21877 { (exit 1); exit 1; }
21882 cat >>$CONFIG_STATUS <<_ACEOF
21885 # CONFIG_FILES section.
21888 # No need to generate the scripts if there are no CONFIG_FILES.
21889 # This happens for instance when ./config.status config.h
21890 if test -n "\$CONFIG_FILES"; then
21891 # Protect against being on the right side of a sed subst in config.status.
21892 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21893 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21894 s,@SHELL@,$SHELL,;t t
21895 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21896 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21897 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21898 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21899 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21900 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21901 s,@exec_prefix@,$exec_prefix,;t t
21902 s,@prefix@,$prefix,;t t
21903 s,@program_transform_name@,$program_transform_name,;t t
21904 s,@bindir@,$bindir,;t t
21905 s,@sbindir@,$sbindir,;t t
21906 s,@libexecdir@,$libexecdir,;t t
21907 s,@datadir@,$datadir,;t t
21908 s,@sysconfdir@,$sysconfdir,;t t
21909 s,@sharedstatedir@,$sharedstatedir,;t t
21910 s,@localstatedir@,$localstatedir,;t t
21911 s,@libdir@,$libdir,;t t
21912 s,@includedir@,$includedir,;t t
21913 s,@oldincludedir@,$oldincludedir,;t t
21914 s,@infodir@,$infodir,;t t
21915 s,@mandir@,$mandir,;t t
21916 s,@build_alias@,$build_alias,;t t
21917 s,@host_alias@,$host_alias,;t t
21918 s,@target_alias@,$target_alias,;t t
21919 s,@DEFS@,$DEFS,;t t
21920 s,@ECHO_C@,$ECHO_C,;t t
21921 s,@ECHO_N@,$ECHO_N,;t t
21922 s,@ECHO_T@,$ECHO_T,;t t
21923 s,@LIBS@,$LIBS,;t t
21924 s,@BUILD_DIR@,$BUILD_DIR,;t t
21925 s,@TRUEPRG@,$TRUEPRG,;t t
21926 s,@FALSEPRG@,$FALSEPRG,;t t
21927 s,@VERSION@,$VERSION,;t t
21928 s,@DATE@,$DATE,;t t
21929 s,@LSMDATE@,$LSMDATE,;t t
21931 s,@CFLAGS@,$CFLAGS,;t t
21932 s,@LDFLAGS@,$LDFLAGS,;t t
21933 s,@CPPFLAGS@,$CPPFLAGS,;t t
21934 s,@ac_ct_CC@,$ac_ct_CC,;t t
21935 s,@EXEEXT@,$EXEEXT,;t t
21936 s,@OBJEXT@,$OBJEXT,;t t
21938 s,@CXXFLAGS@,$CXXFLAGS,;t t
21939 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21941 s,@EGREP@,$EGREP,;t t
21942 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21943 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21944 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21945 s,@RANLIB@,$RANLIB,;t t
21946 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21951 s,@ECHO@,$ECHO,;t t
21955 s,@OPENSSL@,$OPENSSL,;t t
21958 s,@MKISOFS@,$MKISOFS,;t t
21959 s,@PYTHON@,$PYTHON,;t t
21960 s,@GROWISOFS@,$GROWISOFS,;t t
21961 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
21962 s,@PKGCONFIG@,$PKGCONFIG,;t t
21963 s,@WXCONFIG@,$WXCONFIG,;t t
21964 s,@WXFLAGS@,$WXFLAGS,;t t
21965 s,@CDRECORD@,$CDRECORD,;t t
21966 s,@PIDOF@,$PIDOF,;t t
21968 s,@ARFLAGS@,$ARFLAGS,;t t
21969 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21970 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21971 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21972 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21973 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21974 s,@build@,$build,;t t
21975 s,@build_cpu@,$build_cpu,;t t
21976 s,@build_vendor@,$build_vendor,;t t
21977 s,@build_os@,$build_os,;t t
21978 s,@host@,$host,;t t
21979 s,@host_cpu@,$host_cpu,;t t
21980 s,@host_vendor@,$host_vendor,;t t
21981 s,@host_os@,$host_os,;t t
21982 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21983 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21984 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21985 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21986 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21987 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21988 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21989 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21990 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21991 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21992 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21993 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21994 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21995 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21996 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21997 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21998 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21999 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22000 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22001 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22002 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22003 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22004 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22005 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22006 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22007 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22008 s,@MSGFMT@,$MSGFMT,;t t
22009 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22010 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22011 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22012 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22013 s,@GNOME_DIR@,$GNOME_DIR,;t t
22014 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22015 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22016 s,@WX_DIR@,$WX_DIR,;t t
22017 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22018 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22019 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22020 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22021 s,@STATIC_FD@,$STATIC_FD,;t t
22022 s,@STATIC_SD@,$STATIC_SD,;t t
22023 s,@STATIC_DIR@,$STATIC_DIR,;t t
22024 s,@STATIC_CONS@,$STATIC_CONS,;t t
22025 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22026 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22027 s,@ALL_DIRS@,$ALL_DIRS,;t t
22028 s,@CONS_INC@,$CONS_INC,;t t
22029 s,@CONS_OBJ@,$CONS_OBJ,;t t
22030 s,@CONS_SRC@,$CONS_SRC,;t t
22031 s,@CONS_LIBS@,$CONS_LIBS,;t t
22032 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22033 s,@READLINE_SRC@,$READLINE_SRC,;t t
22034 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22035 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22036 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22037 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22038 s,@working_dir@,$working_dir,;t t
22039 s,@scriptdir@,$scriptdir,;t t
22040 s,@dump_email@,$dump_email,;t t
22041 s,@job_email@,$job_email,;t t
22042 s,@smtp_host@,$smtp_host,;t t
22043 s,@piddir@,$piddir,;t t
22044 s,@subsysdir@,$subsysdir,;t t
22045 s,@baseport@,$baseport,;t t
22046 s,@dir_port@,$dir_port,;t t
22047 s,@fd_port@,$fd_port,;t t
22048 s,@sd_port@,$sd_port,;t t
22049 s,@dir_password@,$dir_password,;t t
22050 s,@fd_password@,$fd_password,;t t
22051 s,@sd_password@,$sd_password,;t t
22052 s,@mon_dir_password@,$mon_dir_password,;t t
22053 s,@mon_fd_password@,$mon_fd_password,;t t
22054 s,@mon_sd_password@,$mon_sd_password,;t t
22055 s,@dir_user@,$dir_user,;t t
22056 s,@dir_group@,$dir_group,;t t
22057 s,@sd_user@,$sd_user,;t t
22058 s,@sd_group@,$sd_group,;t t
22059 s,@fd_user@,$fd_user,;t t
22060 s,@fd_group@,$fd_group,;t t
22061 s,@SBINPERM@,$SBINPERM,;t t
22062 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22063 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22064 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22065 s,@cats@,$cats,;t t
22066 s,@DB_NAME@,$DB_NAME,;t t
22067 s,@GETCONF@,$GETCONF,;t t
22068 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22069 s,@X_CFLAGS@,$X_CFLAGS,;t t
22070 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22071 s,@X_LIBS@,$X_LIBS,;t t
22072 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22073 s,@LIBOBJS@,$LIBOBJS,;t t
22074 s,@ALLOCA@,$ALLOCA,;t t
22075 s,@FDLIBS@,$FDLIBS,;t t
22076 s,@DEBUG@,$DEBUG,;t t
22077 s,@DINCLUDE@,$DINCLUDE,;t t
22078 s,@DLIB@,$DLIB,;t t
22079 s,@DB_LIBS@,$DB_LIBS,;t t
22080 s,@WCFLAGS@,$WCFLAGS,;t t
22081 s,@WLDFLAGS@,$WLDFLAGS,;t t
22082 s,@OBJLIST@,$OBJLIST,;t t
22083 s,@hostname@,$hostname,;t t
22084 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22085 s,@PSCMD@,$PSCMD,;t t
22086 s,@WIN32@,$WIN32,;t t
22087 s,@MACOSX@,$MACOSX,;t t
22088 s,@DISTNAME@,$DISTNAME,;t t
22089 s,@DISTVER@,$DISTVER,;t t
22090 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22091 /@MCOMMON@/r $MCOMMON
22097 cat >>$CONFIG_STATUS <<\_ACEOF
22098 # Split the substitutions into bite-sized pieces for seds with
22099 # small command number limits, like on Digital OSF/1 and HP-UX.
22100 ac_max_sed_lines=48
22101 ac_sed_frag=1 # Number of current file.
22102 ac_beg=1 # First line for current file.
22103 ac_end=$ac_max_sed_lines # Line after last line for current file.
22106 while $ac_more_lines; do
22107 if test $ac_beg -gt 1; then
22108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22112 if test ! -s $tmp/subs.frag; then
22113 ac_more_lines=false
22115 # The purpose of the label and of the branching condition is to
22116 # speed up the sed processing (if there are no `@' at all, there
22117 # is no need to browse any of the substitutions).
22118 # These are the two extra sed commands mentioned above.
22120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22121 if test -z "$ac_sed_cmds"; then
22122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22126 ac_sed_frag=`expr $ac_sed_frag + 1`
22128 ac_end=`expr $ac_end + $ac_max_sed_lines`
22131 if test -z "$ac_sed_cmds"; then
22134 fi # test -n "$CONFIG_FILES"
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22141 - | *:- | *:-:* ) # input from stdin
22143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22147 * ) ac_file_in=$ac_file.in ;;
22150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22153 X"$ac_file" : 'X\(//\)[^/]' \| \
22154 X"$ac_file" : 'X\(//\)$' \| \
22155 X"$ac_file" : 'X\(/\)' \| \
22156 . : '\(.\)' 2>/dev/null ||
22158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22160 /^X\(\/\/\)$/{ s//\1/; q; }
22161 /^X\(\/\).*/{ s//\1/; q; }
22163 { if $as_mkdir_p; then
22168 while test ! -d "$as_dir"; do
22169 as_dirs="$as_dir $as_dirs"
22170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172 X"$as_dir" : 'X\(//\)[^/]' \| \
22173 X"$as_dir" : 'X\(//\)$' \| \
22174 X"$as_dir" : 'X\(/\)' \| \
22175 . : '\(.\)' 2>/dev/null ||
22177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22179 /^X\(\/\/\)$/{ s//\1/; q; }
22180 /^X\(\/\).*/{ s//\1/; q; }
22183 test ! -n "$as_dirs" || mkdir $as_dirs
22184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22186 { (exit 1); exit 1; }; }; }
22190 if test "$ac_dir" != .; then
22191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22192 # A "../" for each directory in $ac_dir_suffix.
22193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22195 ac_dir_suffix= ac_top_builddir=
22199 .) # No --srcdir option. We are building in place.
22201 if test -z "$ac_top_builddir"; then
22204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22206 [\\/]* | ?:[\\/]* ) # Absolute path.
22207 ac_srcdir=$srcdir$ac_dir_suffix;
22208 ac_top_srcdir=$srcdir ;;
22209 *) # Relative path.
22210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22214 # Do not use `cd foo && pwd` to compute absolute paths, because
22215 # the directories may not exist.
22217 .) ac_abs_builddir="$ac_dir";;
22220 .) ac_abs_builddir=`pwd`;;
22221 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22222 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22225 case $ac_abs_builddir in
22226 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22228 case ${ac_top_builddir}. in
22229 .) ac_abs_top_builddir=$ac_abs_builddir;;
22230 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22231 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22234 case $ac_abs_builddir in
22235 .) ac_abs_srcdir=$ac_srcdir;;
22238 .) ac_abs_srcdir=$ac_abs_builddir;;
22239 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22240 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22243 case $ac_abs_builddir in
22244 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22246 case $ac_top_srcdir in
22247 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22248 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22249 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22259 if test x"$ac_file" != x-; then
22260 { echo "$as_me:$LINENO: creating $ac_file" >&5
22261 echo "$as_me: creating $ac_file" >&6;}
22264 # Let's still pretend it is `configure' which instantiates (i.e., don't
22265 # use $as_me), people would be surprised to read:
22266 # /* config.h. Generated by config.status. */
22267 if test x"$ac_file" = x-; then
22270 configure_input="$ac_file. "
22272 configure_input=$configure_input"Generated from `echo $ac_file_in |
22273 sed 's,.*/,,'` by configure."
22275 # First look for the input files in the build tree, otherwise in the
22277 ac_file_inputs=`IFS=:
22278 for f in $ac_file_in; do
22280 -) echo $tmp/stdin ;;
22282 # Absolute (can't be DOS-style, as IFS=:)
22283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22284 echo "$as_me: error: cannot find input file: $f" >&2;}
22285 { (exit 1); exit 1; }; }
22288 if test -f "$f"; then
22291 elif test -f "$srcdir/$f"; then
22296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22297 echo "$as_me: error: cannot find input file: $f" >&2;}
22298 { (exit 1); exit 1; }; }
22301 done` || { (exit 1); exit 1; }
22303 cat >>$CONFIG_STATUS <<_ACEOF
22307 cat >>$CONFIG_STATUS <<\_ACEOF
22309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22310 s,@configure_input@,$configure_input,;t t
22311 s,@srcdir@,$ac_srcdir,;t t
22312 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22313 s,@top_srcdir@,$ac_top_srcdir,;t t
22314 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22315 s,@builddir@,$ac_builddir,;t t
22316 s,@abs_builddir@,$ac_abs_builddir,;t t
22317 s,@top_builddir@,$ac_top_builddir,;t t
22318 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22319 s,@INSTALL@,$ac_INSTALL,;t t
22320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22322 if test x"$ac_file" != x-; then
22323 mv $tmp/out $ac_file
22331 cat >>$CONFIG_STATUS <<\_ACEOF
22334 # CONFIG_HEADER section.
22337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22340 # ac_d sets the value in "#define NAME VALUE" lines.
22341 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22342 ac_dB='[ ].*$,\1#\2'
22345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22346 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22347 ac_uB='$,\1#\2define\3'
22351 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22354 - | *:- | *:-:* ) # input from stdin
22356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22360 * ) ac_file_in=$ac_file.in ;;
22363 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22364 echo "$as_me: creating $ac_file" >&6;}
22366 # First look for the input files in the build tree, otherwise in the
22368 ac_file_inputs=`IFS=:
22369 for f in $ac_file_in; do
22371 -) echo $tmp/stdin ;;
22373 # Absolute (can't be DOS-style, as IFS=:)
22374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22375 echo "$as_me: error: cannot find input file: $f" >&2;}
22376 { (exit 1); exit 1; }; }
22377 # Do quote $f, to prevent DOS paths from being IFS'd.
22380 if test -f "$f"; then
22383 elif test -f "$srcdir/$f"; then
22388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22389 echo "$as_me: error: cannot find input file: $f" >&2;}
22390 { (exit 1); exit 1; }; }
22393 done` || { (exit 1); exit 1; }
22394 # Remove the trailing spaces.
22395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22400 # `conftest.undefs', that substitutes the proper values into
22401 # config.h.in to produce config.h. The first handles `#define'
22402 # templates, and the second `#undef' templates.
22403 # And first: Protect against being on the right side of a sed subst in
22404 # config.status. Protect against being in an unquoted here document
22405 # in config.status.
22406 rm -f conftest.defines conftest.undefs
22407 # Using a here document instead of a string reduces the quoting nightmare.
22408 # Putting comments in sed scripts is not portable.
22410 # `end' is used to avoid that the second main sed command (meant for
22411 # 0-ary CPP macros) applies to n-ary macro definitions.
22412 # See the Autoconf documentation for `clear'.
22413 cat >confdef2sed.sed <<\_ACEOF
22418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22423 # If some macros were called several times there might be several times
22424 # the same #defines, which is useless. Nevertheless, we may not want to
22425 # sort them, since we want the *last* AC-DEFINE to be honored.
22426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22428 rm -f confdef2sed.sed
22430 # This sed command replaces #undef with comments. This is necessary, for
22431 # example, in the case of _POSIX_SOURCE, which is predefined and required
22432 # on some systems where configure will not decide to define it.
22433 cat >>conftest.undefs <<\_ACEOF
22434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22437 # Break up conftest.defines because some shells have a limit on the size
22438 # of here documents, and old seds have small limits too (100 cmds).
22439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22440 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22442 echo ' :' >>$CONFIG_STATUS
22443 rm -f conftest.tail
22444 while grep . conftest.defines >/dev/null
22446 # Write a limited-size here document to $tmp/defines.sed.
22447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22448 # Speed up: don't consider the non `#define' lines.
22449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22450 # Work around the forget-to-reset-the-flag bug.
22451 echo 't clr' >>$CONFIG_STATUS
22452 echo ': clr' >>$CONFIG_STATUS
22453 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22457 mv $tmp/out $tmp/in
22459 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22460 rm -f conftest.defines
22461 mv conftest.tail conftest.defines
22463 rm -f conftest.defines
22464 echo ' fi # grep' >>$CONFIG_STATUS
22465 echo >>$CONFIG_STATUS
22467 # Break up conftest.undefs because some shells have a limit on the size
22468 # of here documents, and old seds have small limits too (100 cmds).
22469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22470 rm -f conftest.tail
22471 while grep . conftest.undefs >/dev/null
22473 # Write a limited-size here document to $tmp/undefs.sed.
22474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22475 # Speed up: don't consider the non `#undef'
22476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22477 # Work around the forget-to-reset-the-flag bug.
22478 echo 't clr' >>$CONFIG_STATUS
22479 echo ': clr' >>$CONFIG_STATUS
22480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22484 mv $tmp/out $tmp/in
22486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22487 rm -f conftest.undefs
22488 mv conftest.tail conftest.undefs
22490 rm -f conftest.undefs
22492 cat >>$CONFIG_STATUS <<\_ACEOF
22493 # Let's still pretend it is `configure' which instantiates (i.e., don't
22494 # use $as_me), people would be surprised to read:
22495 # /* config.h. Generated by config.status. */
22496 if test x"$ac_file" = x-; then
22497 echo "/* Generated by configure. */" >$tmp/config.h
22499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22501 cat $tmp/in >>$tmp/config.h
22503 if test x"$ac_file" != x-; then
22504 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22506 echo "$as_me: $ac_file is unchanged" >&6;}
22508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22510 X"$ac_file" : 'X\(//\)[^/]' \| \
22511 X"$ac_file" : 'X\(//\)$' \| \
22512 X"$ac_file" : 'X\(/\)' \| \
22513 . : '\(.\)' 2>/dev/null ||
22515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22517 /^X\(\/\/\)$/{ s//\1/; q; }
22518 /^X\(\/\).*/{ s//\1/; q; }
22520 { if $as_mkdir_p; then
22525 while test ! -d "$as_dir"; do
22526 as_dirs="$as_dir $as_dirs"
22527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22529 X"$as_dir" : 'X\(//\)[^/]' \| \
22530 X"$as_dir" : 'X\(//\)$' \| \
22531 X"$as_dir" : 'X\(/\)' \| \
22532 . : '\(.\)' 2>/dev/null ||
22534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22536 /^X\(\/\/\)$/{ s//\1/; q; }
22537 /^X\(\/\).*/{ s//\1/; q; }
22540 test ! -n "$as_dirs" || mkdir $as_dirs
22541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22543 { (exit 1); exit 1; }; }; }
22546 mv $tmp/config.h $ac_file
22550 rm -f $tmp/config.h
22554 cat >>$CONFIG_STATUS <<\_ACEOF
22557 # CONFIG_COMMANDS section.
22559 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22560 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22561 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22562 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22563 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564 X"$ac_dest" : 'X\(//\)[^/]' \| \
22565 X"$ac_dest" : 'X\(//\)$' \| \
22566 X"$ac_dest" : 'X\(/\)' \| \
22567 . : '\(.\)' 2>/dev/null ||
22569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22571 /^X\(\/\/\)$/{ s//\1/; q; }
22572 /^X\(\/\).*/{ s//\1/; q; }
22574 { if $as_mkdir_p; then
22579 while test ! -d "$as_dir"; do
22580 as_dirs="$as_dir $as_dirs"
22581 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22583 X"$as_dir" : 'X\(//\)[^/]' \| \
22584 X"$as_dir" : 'X\(//\)$' \| \
22585 X"$as_dir" : 'X\(/\)' \| \
22586 . : '\(.\)' 2>/dev/null ||
22588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22590 /^X\(\/\/\)$/{ s//\1/; q; }
22591 /^X\(\/\).*/{ s//\1/; q; }
22594 test ! -n "$as_dirs" || mkdir $as_dirs
22595 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22597 { (exit 1); exit 1; }; }; }
22601 if test "$ac_dir" != .; then
22602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22603 # A "../" for each directory in $ac_dir_suffix.
22604 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22606 ac_dir_suffix= ac_top_builddir=
22610 .) # No --srcdir option. We are building in place.
22612 if test -z "$ac_top_builddir"; then
22615 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22617 [\\/]* | ?:[\\/]* ) # Absolute path.
22618 ac_srcdir=$srcdir$ac_dir_suffix;
22619 ac_top_srcdir=$srcdir ;;
22620 *) # Relative path.
22621 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22622 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22625 # Do not use `cd foo && pwd` to compute absolute paths, because
22626 # the directories may not exist.
22628 .) ac_abs_builddir="$ac_dir";;
22631 .) ac_abs_builddir=`pwd`;;
22632 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22633 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22636 case $ac_abs_builddir in
22637 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22639 case ${ac_top_builddir}. in
22640 .) ac_abs_top_builddir=$ac_abs_builddir;;
22641 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22642 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22645 case $ac_abs_builddir in
22646 .) ac_abs_srcdir=$ac_srcdir;;
22649 .) ac_abs_srcdir=$ac_abs_builddir;;
22650 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22651 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22654 case $ac_abs_builddir in
22655 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22657 case $ac_top_srcdir in
22658 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22659 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22660 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22666 echo "$as_me: executing $ac_dest commands" >&6;}
22668 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22674 cat >>$CONFIG_STATUS <<\_ACEOF
22676 { (exit 0); exit 0; }
22678 chmod +x $CONFIG_STATUS
22679 ac_clean_files=$ac_clean_files_save
22682 # configure is writing to config.log, and then calls config.status.
22683 # config.status does its own redirection, appending to config.log.
22684 # Unfortunately, on DOS this fails, as config.log is still kept open
22685 # by configure, so config.status won't be able to write to it; its
22686 # output is simply discarded. So we exec the FD to /dev/null,
22687 # effectively closing config.log, so it can be properly (re)opened and
22688 # appended to by config.status. When coming back to configure, we
22689 # need to make the FD available again.
22690 if test "$no_create" != yes; then
22692 ac_config_status_args=
22693 test "$silent" = yes &&
22694 ac_config_status_args="$ac_config_status_args --quiet"
22696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22699 # would make configure fail if this is the last instruction.
22700 $ac_cs_success || { (exit 1); exit 1; }
22705 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22706 chmod 755 dvd-writepart dvd-freespace
22707 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22712 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22713 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22715 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22716 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22718 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22719 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22721 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22722 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22724 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22725 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22727 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22728 chmod 755 $c/sqlite
22731 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22732 largefile_support="yes"
22736 # A whole lot of hand springs to get the compiler version.
22737 # This is because gcc changed the output in version 3.0
22739 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22740 if test "x${CCVERSION}" = "x" ; then
22741 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22743 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22744 if test x"${CXXVERSION}" = x ; then
22745 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22748 if test "x${subsysdir}" = "x${sbindir}" ; then
22751 echo "You have set --sbindir and --with-subsys-dir"
22752 echo " both equal to: ${subsysdir} "
22753 echo " This is not permitted. Please reconfigure."
22755 echo "Aborting configuration ..."
22761 if test "x${db_name}" = "xInternal" ; then
22764 echo "You have not specified either --enable-client-only or one of the"
22765 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
22766 echo " This is not permitted. Please reconfigure."
22768 echo "Aborting the configuration ..."
22775 Configuration on `date`:
22777 Host: $host -- ${DISTNAME} ${DISTVER}
22778 Bacula version: ${VERSION} (${DATE})
22779 Source code location: ${srcdir}
22780 Install binaries: ${sbindir}
22781 Install config files: ${sysconfdir}
22782 Scripts directory: ${scriptdir}
22783 Working directory: ${working_dir}
22784 PID directory: ${piddir}
22785 Subsys directory: ${subsysdir}
22786 Man directory: ${mandir}
22787 C Compiler: ${CC} ${CCVERSION}
22788 C++ Compiler: ${CXX} ${CXXVERSION}
22789 Compiler flags: ${WCFLAGS} ${CFLAGS}
22790 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22792 Statically Linked Tools: ${support_static_tools}
22793 Statically Linked FD: ${support_static_fd}
22794 Statically Linked SD: ${support_static_sd}
22795 Statically Linked DIR: ${support_static_dir}
22796 Statically Linked CONS: ${support_static_cons}
22797 Database type: ${db_name}
22798 Database lib: ${DB_LIBS}
22800 Job Output Email: ${job_email}
22801 Traceback Email: ${dump_email}
22802 SMTP Host Address: ${smtp_host}
22804 Director Port: ${dir_port}
22805 File daemon Port: ${fd_port}
22806 Storage daemon Port: ${sd_port}
22808 Director User: ${dir_user}
22809 Director Group: ${dir_group}
22810 Storage Daemon User: ${sd_user}
22811 Storage DaemonGroup: ${sd_group}
22812 File Daemon User: ${fd_user}
22813 File Daemon Group: ${fd_group}
22815 SQL binaries Directory ${SQL_BINDIR}
22817 Large file support: $largefile_support
22818 Bacula conio support: ${got_conio} ${CONS_LIBS}
22819 readline support: ${got_readline} ${PRTREADLINE_SRC}
22820 TCP Wrappers support: ${TCPW_MSG}
22821 TLS support: ${support_tls}
22822 ZLIB support: ${have_zlib}
22823 enable-smartalloc: ${support_smartalloc}
22824 enable-gnome: ${support_gnome} ${gnome_version}
22825 enable-wx-console: ${support_wx_console} ${wx_version}
22826 enable-tray-monitor: ${support_tray_monitor}
22827 client-only: ${build_client_only}
22828 ACL support: ${have_acl}
22829 Python support: ${support_python} ${PYTHON_LIBS}