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 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 "mkisofs", so it can be a program name with args.
3810 set dummy mkisofs; 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_MKISOFS+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_MKISOFS="$MKISOFS" # 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_MKISOFS="$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_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3839 MKISOFS=$ac_cv_path_MKISOFS
3841 if test -n "$MKISOFS"; then
3842 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3843 echo "${ECHO_T}$MKISOFS" >&6
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 # Extract the first word of "python", so it can be a program name with args.
3850 set dummy python; 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_PYTHON+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 ac_cv_path_PYTHON="$PYTHON" # 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_PYTHON="$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_PYTHON" && ac_cv_path_PYTHON="python"
3879 PYTHON=$ac_cv_path_PYTHON
3881 if test -n "$PYTHON"; then
3882 echo "$as_me:$LINENO: result: $PYTHON" >&5
3883 echo "${ECHO_T}$PYTHON" >&6
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3889 # Extract the first word of "growisofs", so it can be a program name with args.
3890 set dummy growisofs; 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_GROWISOFS+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_cv_path_GROWISOFS="$GROWISOFS" # 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_GROWISOFS="$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_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3919 GROWISOFS=$ac_cv_path_GROWISOFS
3921 if test -n "$GROWISOFS"; then
3922 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3923 echo "${ECHO_T}$GROWISOFS" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3930 set dummy dvd+rw-mediainfo; 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_DVDRWMEDIAINFO+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 case $DVDRWMEDIAINFO in
3938 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # 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_DVDRWMEDIAINFO="$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_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3959 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3961 if test -n "$DVDRWMEDIAINFO"; then
3962 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3963 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "pkg-config", so it can be a program name with args.
3970 set dummy pkg-config; 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_PKGCONFIG+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 ac_cv_path_PKGCONFIG="$PKGCONFIG" # 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_PKGCONFIG="$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_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3999 PKGCONFIG=$ac_cv_path_PKGCONFIG
4001 if test -n "$PKGCONFIG"; then
4002 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4003 echo "${ECHO_T}$PKGCONFIG" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4010 if test "x$WXCONFIG" = x; then
4013 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4014 set dummy ${WXCONFIG}; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4043 WXCONFIG=$ac_cv_path_WXCONFIG
4045 if test -n "$WXCONFIG"; then
4046 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4047 echo "${ECHO_T}$WXCONFIG" >&6
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4054 # Extract the first word of "cdrecord", so it can be a program name with args.
4055 set dummy cdrecord; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_path_CDRECORD+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4084 CDRECORD=$ac_cv_path_CDRECORD
4086 if test -n "$CDRECORD"; then
4087 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4088 echo "${ECHO_T}$CDRECORD" >&6
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4094 # Extract the first word of "pidof", so it can be a program name with args.
4095 set dummy pidof; 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_PIDOF+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_cv_path_PIDOF="$PIDOF" # 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_PIDOF="$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_PIDOF" && ac_cv_path_PIDOF="pidof"
4124 PIDOF=$ac_cv_path_PIDOF
4126 if test -n "$PIDOF"; then
4127 echo "$as_me:$LINENO: result: $PIDOF" >&5
4128 echo "${ECHO_T}$PIDOF" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 for ac_prog in gawk mawk nawk awk
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_AWK+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -n "$AWK"; then
4144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
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_prog_AWK="$ac_prog"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 if test -n "$AWK"; then
4164 echo "$as_me:$LINENO: result: $AWK" >&5
4165 echo "${ECHO_T}$AWK" >&6
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4171 test -n "$AWK" && break
4174 # Some AWK programs fail, so test it and warn the user
4175 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4176 { if ((prog == $2) || (("(" prog ")") == $2) ||
4177 (("" prog "") == $2) ||
4178 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4180 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4181 The regex engine of $AWK is too broken to be used you
4182 might want to install GNU AWK.
4183 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4184 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4185 The regex engine of $AWK is too broken to be used you
4186 might want to install GNU AWK.
4187 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4188 { (exit 1); exit 1; }; }
4191 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4192 set dummy $THE_AWK; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_path_AWK+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4223 if test -n "$AWK"; then
4224 echo "$as_me:$LINENO: result: $AWK" >&5
4225 echo "${ECHO_T}$AWK" >&6
4227 echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4232 test -n "$ARFLAG" || ARFLAGS="cr"
4245 # Make sure we can run config.sub.
4246 $ac_config_sub sun4 >/dev/null 2>&1 ||
4247 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4249 { (exit 1); exit 1; }; }
4251 echo "$as_me:$LINENO: checking build system type" >&5
4252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4253 if test "${ac_cv_build+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_cv_build_alias=$build_alias
4257 test -z "$ac_cv_build_alias" &&
4258 ac_cv_build_alias=`$ac_config_guess`
4259 test -z "$ac_cv_build_alias" &&
4260 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4262 { (exit 1); exit 1; }; }
4263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4264 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4266 { (exit 1); exit 1; }; }
4269 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4270 echo "${ECHO_T}$ac_cv_build" >&6
4272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4278 echo "$as_me:$LINENO: checking host system type" >&5
4279 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4280 if test "${ac_cv_host+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 ac_cv_host_alias=$host_alias
4284 test -z "$ac_cv_host_alias" &&
4285 ac_cv_host_alias=$ac_cv_build_alias
4286 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4287 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4288 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4289 { (exit 1); exit 1; }; }
4292 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4293 echo "${ECHO_T}$ac_cv_host" >&6
4295 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4296 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4297 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4301 *cygwin* ) CYGWIN=yes;;
4305 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4311 HAVE_SUN_OS_FALSE='#'
4313 HAVE_SUN_OS_TRUE='#'
4316 cat >>confdefs.h <<\_ACEOF
4317 #define HAVE_SUN_OS 1
4325 HAVE_SUN_OS_FALSE='#'
4327 HAVE_SUN_OS_TRUE='#'
4332 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4338 HAVE_OSF1_OS_FALSE='#'
4340 HAVE_OSF1_OS_TRUE='#'
4343 cat >>confdefs.h <<\_ACEOF
4344 #define HAVE_OSF1_OS 1
4352 HAVE_OSF1_OS_FALSE='#'
4354 HAVE_OSF1_OS_TRUE='#'
4359 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4365 HAVE_AIX_OS_FALSE='#'
4367 HAVE_AIX_OS_TRUE='#'
4370 cat >>confdefs.h <<\_ACEOF
4371 #define HAVE_AIX_OS 1
4379 HAVE_AIX_OS_FALSE='#'
4381 HAVE_AIX_OS_TRUE='#'
4386 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4392 HAVE_HPUX_OS_FALSE='#'
4394 HAVE_HPUX_OS_TRUE='#'
4397 cat >>confdefs.h <<\_ACEOF
4398 #define HAVE_HPUX_OS 1
4406 HAVE_HPUX_OS_FALSE='#'
4408 HAVE_HPUX_OS_TRUE='#'
4413 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4419 HAVE_LINUX_OS_FALSE='#'
4421 HAVE_LINUX_OS_TRUE='#'
4422 HAVE_LINUX_OS_FALSE=
4424 cat >>confdefs.h <<\_ACEOF
4425 #define HAVE_LINUX_OS 1
4433 HAVE_LINUX_OS_FALSE='#'
4435 HAVE_LINUX_OS_TRUE='#'
4436 HAVE_LINUX_OS_FALSE=
4440 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4445 HAVE_FREEBSD_OS_TRUE=
4446 HAVE_FREEBSD_OS_FALSE='#'
4448 HAVE_FREEBSD_OS_TRUE='#'
4449 HAVE_FREEBSD_OS_FALSE=
4451 cat >>confdefs.h <<\_ACEOF
4452 #define HAVE_FREEBSD_OS 1
4459 HAVE_FREEBSD_OS_TRUE=
4460 HAVE_FREEBSD_OS_FALSE='#'
4462 HAVE_FREEBSD_OS_TRUE='#'
4463 HAVE_FREEBSD_OS_FALSE=
4467 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4472 HAVE_NETBSD_OS_TRUE=
4473 HAVE_NETBSD_OS_FALSE='#'
4475 HAVE_NETBSD_OS_TRUE='#'
4476 HAVE_NETBSD_OS_FALSE=
4478 cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_NETBSD_OS 1
4486 HAVE_NETBSD_OS_TRUE=
4487 HAVE_NETBSD_OS_FALSE='#'
4489 HAVE_NETBSD_OS_TRUE='#'
4490 HAVE_NETBSD_OS_FALSE=
4494 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4499 HAVE_OPENBSD_OS_TRUE=
4500 HAVE_OPENBSD_OS_FALSE='#'
4502 HAVE_OPENBSD_OS_TRUE='#'
4503 HAVE_OPENBSD_OS_FALSE=
4505 cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_OPENBSD_OS 1
4513 HAVE_OPENBSD_OS_TRUE=
4514 HAVE_OPENBSD_OS_FALSE='#'
4516 HAVE_OPENBSD_OS_TRUE='#'
4517 HAVE_OPENBSD_OS_FALSE=
4521 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4527 HAVE_BSDI_OS_FALSE='#'
4529 HAVE_BSDI_OS_TRUE='#'
4532 cat >>confdefs.h <<\_ACEOF
4533 #define HAVE_BSDI_OS 1
4541 HAVE_BSDI_OS_FALSE='#'
4543 HAVE_BSDI_OS_TRUE='#'
4548 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4554 HAVE_SGI_OS_FALSE='#'
4556 HAVE_SGI_OS_TRUE='#'
4559 cat >>confdefs.h <<\_ACEOF
4560 #define HAVE_SGI_OS 1
4568 HAVE_SGI_OS_FALSE='#'
4570 HAVE_SGI_OS_TRUE='#'
4575 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4581 HAVE_IRIX_OS_FALSE='#'
4583 HAVE_IRIX_OS_TRUE='#'
4586 cat >>confdefs.h <<\_ACEOF
4587 #define HAVE_IRIX_OS 1
4595 HAVE_IRIX_OS_FALSE='#'
4597 HAVE_IRIX_OS_TRUE='#'
4602 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4607 HAVE_DARWIN_OS_TRUE=
4608 HAVE_DARWIN_OS_FALSE='#'
4610 HAVE_DARWIN_OS_TRUE='#'
4611 HAVE_DARWIN_OS_FALSE=
4613 cat >>confdefs.h <<\_ACEOF
4614 #define HAVE_DARWIN_OS 1
4621 HAVE_DARWIN_OS_TRUE=
4622 HAVE_DARWIN_OS_FALSE='#'
4624 HAVE_DARWIN_OS_TRUE='#'
4625 HAVE_DARWIN_OS_FALSE=
4630 # -----------------------------------------------------------
4631 # ----------------------------------------------------------
4632 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4633 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4634 if test "x$DISTNAME" != "x"
4636 echo "distname set to $DISTNAME"
4637 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4640 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4643 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4646 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4649 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4652 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4655 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4658 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4661 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4664 elif test -f /etc/SuSE-release
4667 elif test -d /etc/SuSEconfig
4670 elif test -f /etc/mandrake-release
4673 elif test -f /etc/whitebox-release
4676 elif test -f /etc/redhat-release
4679 elif test -f /etc/gentoo-release
4682 elif test -f /etc/debian_version
4685 elif test -f /etc/slackware-version
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4691 elif test -f /etc/engarde-version
4694 elif test "$CYGWIN" = yes
4697 cat >>confdefs.h <<\_ACEOF
4698 #define HAVE_CYGWIN 1
4704 echo "$as_me:$LINENO: result: done" >&5
4705 echo "${ECHO_T}done" >&6
4708 # -----------------------------------------------------------
4709 # ----------------------------------------------------------
4714 INSIDE_GNOME_COMMON_TRUE=
4715 INSIDE_GNOME_COMMON_FALSE='#'
4717 INSIDE_GNOME_COMMON_TRUE='#'
4718 INSIDE_GNOME_COMMON_FALSE=
4721 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4723 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4726 # ------------------------------------------------------------------
4727 # If the user has not set --prefix, we set our default to nothing.
4728 # In this case, if the user has not set --sysconfdir, we set it
4729 # to the package default of /etc/bacula. If either --prefix or
4730 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4731 # ------------------------------------------------------------------
4732 if test x${prefix} = xNONE ; then
4733 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4734 sysconfdir=/etc/bacula
4738 sysconfdir=`eval echo ${sysconfdir}`
4740 # -------------------------------------------------------------------------
4741 # If the user has not set --exec-prefix, we default to ${prefix}
4742 # -------------------------------------------------------------------------
4743 if test x${exec_prefix} = xNONE ; then
4744 exec_prefix=${prefix}
4747 # ------------------------------------------------------------------
4748 # If the user has not set --sbindir, we set our default as /sbin
4749 # ------------------------------------------------------------------
4750 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4751 sbindir=${exec_prefix}/sbin
4753 sbindir=`eval echo ${sbindir}`
4755 # -------------------------------------------------------------------------
4756 # If the user has not set --mandir, we default to /usr/share/man
4757 # -------------------------------------------------------------------------
4758 if test x$mandir = x'${prefix}/man' ; then
4759 mandir=/usr/share/man
4763 # ------------------------------------------------------------------
4764 # All list of languages for which a translation exist. Each
4765 # language is separated by a space.
4766 # ------------------------------------------------------------------
4769 for ac_prog in msgfmt
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775 if test "${ac_cv_path_MSGFMT+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 MSGFMT=$ac_cv_path_MSGFMT
4802 if test -n "$MSGFMT"; then
4803 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4804 echo "${ECHO_T}$MSGFMT" >&6
4806 echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4810 test -n "$MSGFMT" && break
4812 test -n "$MSGFMT" || MSGFMT="no"
4814 if test "$MSGFMT" = "no"
4816 echo 'msgfmt program not found, disabling NLS !'
4818 USE_INCLUDED_LIBINTL=no
4827 support_postgresql=no
4828 support_smartalloc=yes
4829 support_readline=yes
4832 support_wx_console=no
4836 support_static_tools=no
4837 support_static_fd=no
4838 support_static_sd=no
4839 support_static_dir=no
4840 support_static_cons=no
4842 build_client_only=no
4848 # -------------------------------------------
4849 # gnome (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-gnome or --disable-gnome was given.
4852 if test "${enable_gnome+set}" = set; then
4853 enableval="$enable_gnome"
4854 if test x$enableval = xyes; then
4860 if test x$support_gnome = xyes; then
4861 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4863 if test $pkg = 0; then
4864 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4865 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4866 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4867 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4872 GNOME_DIR=src/gnome2-console
4873 gnome_version="Version 2.x"
4875 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4876 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4877 { (exit 1); exit 1; }; }
4883 # -------------------------------------------
4884 # wx-console (default off)
4885 # -------------------------------------------
4886 # Check whether --enable-wx-console or --disable-wx-console was given.
4887 if test "${enable_wx_console+set}" = set; then
4888 enableval="$enable_wx_console"
4889 if test x$enableval = xyes; then
4890 support_wx_console=yes
4895 if test x$support_wx_console = xyes; then
4896 abc=`$WXCONFIG $WXFLAGS --cppflags`
4898 if test $pkg = 0; then
4899 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4900 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4901 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4905 WX_DIR=src/wx-console
4908 echo "wx-config program not found. wx-console disabled."
4910 support_wx_console=no
4916 # -------------------------------------------
4917 # tray-monitor (default off)
4918 # -------------------------------------------
4919 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4920 if test "${enable_tray_monitor+set}" = set; then
4921 enableval="$enable_tray_monitor"
4922 if test x$enableval = xyes; then
4923 support_tray_monitor=yes
4928 if test x$support_tray_monitor = xyes; then
4929 abc=`$PKGCONFIG --exists gtk+-2.0`
4931 if test $pkg = 0; then
4932 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4933 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4936 TRAY_MONITOR_DIR=src/tray-monitor
4937 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4939 if test $pkg = 0; then
4940 cat >>confdefs.h <<\_ACEOF
4941 #define HAVE_GTK_2_4 1
4949 # -------------------------------------------
4950 # smartalloc (default off)
4951 # -------------------------------------------
4952 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4953 if test "${enable_smartalloc+set}" = set; then
4954 enableval="$enable_smartalloc"
4955 if test x$enableval = xno; then
4956 support_smartalloc=no
4960 if test x$support_smartalloc = xyes; then
4961 cat >>confdefs.h <<\_ACEOF
4962 #define SMARTALLOC 1
4967 # -------------------------------------------
4968 # static-tools (default off)
4969 # -------------------------------------------
4970 # Check whether --enable-static-tools or --disable-static-tools was given.
4971 if test "${enable_static_tools+set}" = set; then
4972 enableval="$enable_static_tools"
4973 if test x$enableval = xyes; then
4974 support_static_tools=yes
4979 if test x$support_static_tools = xyes; then
4980 TTOOL_LDFLAGS="-static"
4984 # -------------------------------------------
4985 # static-fd (default off)
4986 # -------------------------------------------
4987 # Check whether --enable-static-fd or --disable-static-fd was given.
4988 if test "${enable_static_fd+set}" = set; then
4989 enableval="$enable_static_fd"
4990 if test x$enableval = xyes; then
4991 support_static_fd=yes
4996 if test x$support_static_fd = xyes; then
4997 STATIC_FD="static-bacula-fd"
5001 # -------------------------------------------
5002 # static-sd (default off)
5003 # -------------------------------------------
5004 # Check whether --enable-static-sd or --disable-static-sd was given.
5005 if test "${enable_static_sd+set}" = set; then
5006 enableval="$enable_static_sd"
5007 if test x$enableval = xyes; then
5008 support_static_sd=yes
5013 if test x$support_static_sd = xyes; then
5014 STATIC_SD="static-bacula-sd"
5018 # -------------------------------------------
5019 # static-dir (default off)
5020 # -------------------------------------------
5021 # Check whether --enable-static-dir or --disable-static-dir was given.
5022 if test "${enable_static_dir+set}" = set; then
5023 enableval="$enable_static_dir"
5024 if test x$enableval = xyes; then
5025 support_static_dir=yes
5030 if test x$support_static_dir = xyes; then
5031 STATIC_DIR="static-bacula-dir"
5035 # -------------------------------------------
5036 # static-cons (default off)
5037 # -------------------------------------------
5038 # Check whether --enable-static-cons or --disable-static-cons was given.
5039 if test "${enable_static_cons+set}" = set; then
5040 enableval="$enable_static_cons"
5041 if test x$enableval = xyes; then
5042 support_static_cons=yes
5049 if test x$support_static_cons = xyes; then
5050 STATIC_CONS="static-bconsole"
5051 STATIC_GNOME_CONS="static-gnome-console"
5052 STATIC_WX_CONS="static-wx-console"
5058 # -------------------------------------------
5059 # client_only (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-client-only or --disable-client-only was given.
5062 if test "${enable_client_only+set}" = set; then
5063 enableval="$enable_client_only"
5064 if test x$enableval = xyes; then
5065 build_client_only=yes
5070 if test x$build_client_only = xno; then
5077 # ---------------------------------------------------
5078 # Check for conio (Bacula readline substitute)(
5079 # ---------------------------------------------------
5080 # this allows you to turn it completely off
5081 # Check whether --enable-conio or --disable-conio was given.
5082 if test "${enable_conio+set}" = set; then
5083 enableval="$enable_conio"
5084 if test x$enableval = xno; then
5090 if test x$support_conio = xyes; then
5091 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5093 if test "${ac_cv_header_stdc+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -z "$ac_c_werror_flag"
5125 || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_header_stdc=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_cv_header_stdc=no
5144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat >conftest.$ac_ext <<_ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "memchr" >/dev/null 2>&1; then
5161 ac_cv_header_stdc=no
5167 if test $ac_cv_header_stdc = yes; then
5168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "free" >/dev/null 2>&1; then
5182 ac_cv_header_stdc=no
5188 if test $ac_cv_header_stdc = yes; then
5189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5190 if test "$cross_compiling" = yes; then
5193 cat >conftest.$ac_ext <<_ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5200 #if ((' ' & 0x0FF) == 0x020)
5201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204 # define ISLOWER(c) \
5205 (('a' <= (c) && (c) <= 'i') \
5206 || ('j' <= (c) && (c) <= 'r') \
5207 || ('s' <= (c) && (c) <= 'z'))
5208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5216 for (i = 0; i < 256; i++)
5217 if (XOR (islower (i), ISLOWER (i))
5218 || toupper (i) != TOUPPER (i))
5223 rm -f conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5236 echo "$as_me: program exited with status $ac_status" >&5
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5241 ac_cv_header_stdc=no
5243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5249 if test $ac_cv_header_stdc = yes; then
5251 cat >>confdefs.h <<\_ACEOF
5252 #define STDC_HEADERS 1
5257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5268 inttypes.h stdint.h unistd.h
5270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5271 echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5284 #include <$ac_header>
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 eval "$as_ac_Header=yes"
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 eval "$as_ac_Header=no"
5315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5329 if test "${ac_cv_header_termcap_h+set}" = set; then
5330 echo "$as_me:$LINENO: checking for termcap.h" >&5
5331 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5332 if test "${ac_cv_header_termcap_h+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5336 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5338 # Is the header compilable?
5339 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5340 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5341 cat >conftest.$ac_ext <<_ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 #include <termcap.h>
5350 rm -f conftest.$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1 >conftest.err
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try='test -z "$ac_c_werror_flag"
5360 || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest.$ac_objext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_header_compiler=yes
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 ac_header_compiler=no
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381 echo "${ECHO_T}$ac_header_compiler" >&6
5383 # Is the header present?
5384 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5385 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <termcap.h>
5394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } >/dev/null; then
5402 if test -s conftest.err; then
5403 ac_cpp_err=$ac_c_preproc_warn_flag
5404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 if test -z "$ac_cpp_err"; then
5412 ac_header_preproc=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_preproc=no
5419 rm -f conftest.err conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5421 echo "${ECHO_T}$ac_header_preproc" >&6
5423 # So? What about this header?
5424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5426 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5427 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5429 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5430 ac_header_preproc=yes
5433 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5434 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5436 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5438 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5440 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5442 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5444 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5447 ## ------------------------------------------ ##
5448 ## Report this to the AC_PACKAGE_NAME lists. ##
5449 ## ------------------------------------------ ##
5452 sed "s/^/$as_me: WARNING: /" >&2
5455 echo "$as_me:$LINENO: checking for termcap.h" >&5
5456 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5457 if test "${ac_cv_header_termcap_h+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_cv_header_termcap_h=$ac_header_preproc
5462 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5463 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5466 if test $ac_cv_header_termcap_h = yes; then
5467 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5468 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5469 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_check_lib_save_LIBS=$LIBS
5473 LIBS="-ltermcap $LIBS"
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5481 /* Override any gcc2 internal prototype to avoid an error. */
5485 /* We use char because int might match the return type of a gcc2
5486 builtin and then its argument prototype would still apply. */
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -z "$ac_c_werror_flag"
5506 || test ! -s conftest.err'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest$ac_exeext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_cv_lib_termcap_tgetent=yes
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_cv_lib_termcap_tgetent=no
5525 rm -f conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5527 LIBS=$ac_check_lib_save_LIBS
5529 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5530 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5531 if test $ac_cv_lib_termcap_tgetent = yes; then
5532 CONS_LIBS="-ltermcap"
5538 cat >>confdefs.h <<\_ACEOF
5539 #define HAVE_CONIO 1
5544 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5545 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5546 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 ac_check_lib_save_LIBS=$LIBS
5550 LIBS="-lncurses $LIBS"
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5558 /* Override any gcc2 internal prototype to avoid an error. */
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5573 rm -f conftest.$ac_objext conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest$ac_exeext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_lib_ncurses_tgetent=yes
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 ac_cv_lib_ncurses_tgetent=no
5602 rm -f conftest.err conftest.$ac_objext \
5603 conftest$ac_exeext conftest.$ac_ext
5604 LIBS=$ac_check_lib_save_LIBS
5606 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5607 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5608 if test $ac_cv_lib_ncurses_tgetent = yes; then
5609 CONS_LIBS="-lncurses"
5615 cat >>confdefs.h <<\_ACEOF
5616 #define HAVE_CONIO 1
5629 for ac_header in curses.h
5631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5633 echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5641 # Is the header compilable?
5642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5651 #include <$ac_header>
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -z "$ac_c_werror_flag"
5663 || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_header_compiler=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_header_compiler=no
5682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5684 echo "${ECHO_T}$ac_header_compiler" >&6
5686 # Is the header present?
5687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #include <$ac_header>
5697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } >/dev/null; then
5705 if test -s conftest.err; then
5706 ac_cpp_err=$ac_c_preproc_warn_flag
5707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5714 if test -z "$ac_cpp_err"; then
5715 ac_header_preproc=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_header_preproc=no
5722 rm -f conftest.err conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5724 echo "${ECHO_T}$ac_header_preproc" >&6
5726 # So? What about this header?
5727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5733 ac_header_preproc=yes
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5750 ## ------------------------------------------ ##
5751 ## Report this to the AC_PACKAGE_NAME lists. ##
5752 ## ------------------------------------------ ##
5755 sed "s/^/$as_me: WARNING: /" >&2
5758 echo "$as_me:$LINENO: checking for $ac_header" >&5
5759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 eval "$as_ac_Header=\$ac_header_preproc"
5765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5770 cat >>confdefs.h <<_ACEOF
5771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5778 echo "$as_me:$LINENO: checking for term.h" >&5
5779 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5780 if test "${ac_cv_header_term_h+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5800 grep -v '^ *+' conftest.er1 >conftest.err
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag"
5806 || test ! -s conftest.err'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest.$ac_objext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 ac_cv_header_term_h=yes
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 ac_cv_header_term_h=no
5825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5828 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5829 if test $ac_cv_header_term_h = yes; then
5830 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5831 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5832 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_check_lib_save_LIBS=$LIBS
5836 LIBS="-lcurses $LIBS"
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 /* Override any gcc2 internal prototype to avoid an error. */
5848 /* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_lib_curses_tgetent=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_cv_lib_curses_tgetent=no
5888 rm -f conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5893 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5894 if test $ac_cv_lib_curses_tgetent = yes; then
5895 CONS_LIBS="-lcurses"
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_CONIO 1
5910 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5921 # ---------------------------------------------------
5922 # Check for readline support/directory (default off)
5923 # ---------------------------------------------------
5924 # this allows you to turn it completely off
5925 # Check whether --enable-readline or --disable-readline was given.
5926 if test "${enable_readline+set}" = set; then
5927 enableval="$enable_readline"
5928 if test x$enableval = xno; then
5935 if test x$support_readline = xyes; then
5937 # Check whether --with-readline or --without-readline was given.
5938 if test "${with_readline+set}" = set; then
5939 withval="$with_readline"
5941 case "$with_readline" in
5944 if test "$with_readline" != "yes"; then
5945 CONS_INC="-I${with_readline}"
5946 CONS_LDFLAGS="-L$with_readline"
5948 with_readline="/usr/include/readline"
5950 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5953 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5960 # Is the header compilable?
5961 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5962 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 #include <${with_readline}/readline.h>
5972 rm -f conftest.$ac_objext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>conftest.er1
5976 grep -v '^ *+' conftest.er1 >conftest.err
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -z "$ac_c_werror_flag"
5982 || test ! -s conftest.err'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_header_compiler=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_header_compiler=no
6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6003 echo "${ECHO_T}$ac_header_compiler" >&6
6005 # Is the header present?
6006 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6007 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <${with_readline}/readline.h>
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 if test -z "$ac_cpp_err"; then
6034 ac_header_preproc=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_preproc=no
6041 rm -f conftest.err conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6043 echo "${ECHO_T}$ac_header_preproc" >&6
6045 # So? What about this header?
6046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6048 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6049 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6051 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6052 ac_header_preproc=yes
6055 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6056 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6058 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6060 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6062 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6064 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6066 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6069 ## ------------------------------------------ ##
6070 ## Report this to the AC_PACKAGE_NAME lists. ##
6071 ## ------------------------------------------ ##
6074 sed "s/^/$as_me: WARNING: /" >&2
6077 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6078 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 eval "$as_ac_Header=\$ac_header_preproc"
6084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_READLINE 1
6093 CONS_LIBS="-lreadline -ltermcap"
6098 echo "readline.h not found. readline turned off ..."
6110 # check for standard readline library
6111 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6112 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6113 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6114 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6118 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6120 # Is the header compilable?
6121 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6122 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6130 #include </usr/include/readline/readline.h>
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_header_compiler=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_header_compiler=no
6161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163 echo "${ECHO_T}$ac_header_compiler" >&6
6165 # Is the header present?
6166 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6167 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include </usr/include/readline/readline.h>
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } >/dev/null; then
6184 if test -s conftest.err; then
6185 ac_cpp_err=$ac_c_preproc_warn_flag
6186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193 if test -z "$ac_cpp_err"; then
6194 ac_header_preproc=yes
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 ac_header_preproc=no
6201 rm -f conftest.err conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6203 echo "${ECHO_T}$ac_header_preproc" >&6
6205 # So? What about this header?
6206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6208 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6209 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6211 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6212 ac_header_preproc=yes
6215 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6216 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6218 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6220 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6222 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6224 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6226 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6229 ## ------------------------------------------ ##
6230 ## Report this to the AC_PACKAGE_NAME lists. ##
6231 ## ------------------------------------------ ##
6234 sed "s/^/$as_me: WARNING: /" >&2
6237 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6238 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6239 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6244 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6245 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6248 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6249 cat >>confdefs.h <<\_ACEOF
6250 #define HAVE_READLINE 1
6254 CONS_INC="-I/usr/include/readline"
6255 CONS_LIBS="-lreadline -ltermcap"
6259 # Did not find standard library, so try Bacula's default
6260 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6262 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6263 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6270 # Is the header compilable?
6271 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6272 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 $ac_includes_default
6280 #include <${TOP_DIR}/depkgs/readline/readline.h>
6282 rm -f conftest.$ac_objext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284 (eval $ac_compile) 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_c_werror_flag"
6292 || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_header_compiler=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_header_compiler=no
6311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6313 echo "${ECHO_T}$ac_header_compiler" >&6
6315 # Is the header present?
6316 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6317 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <${TOP_DIR}/depkgs/readline/readline.h>
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329 grep -v '^ *+' conftest.er1 >conftest.err
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } >/dev/null; then
6334 if test -s conftest.err; then
6335 ac_cpp_err=$ac_c_preproc_warn_flag
6336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6343 if test -z "$ac_cpp_err"; then
6344 ac_header_preproc=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_header_preproc=no
6351 rm -f conftest.err conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353 echo "${ECHO_T}$ac_header_preproc" >&6
6355 # So? What about this header?
6356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6358 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6361 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6362 ac_header_preproc=yes
6365 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6376 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6379 ## ------------------------------------------ ##
6380 ## Report this to the AC_PACKAGE_NAME lists. ##
6381 ## ------------------------------------------ ##
6384 sed "s/^/$as_me: WARNING: /" >&2
6387 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6388 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 eval "$as_ac_Header=\$ac_header_preproc"
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399 cat >>confdefs.h <<\_ACEOF
6400 #define HAVE_READLINE 1
6404 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6405 CONS_LIBS="-lreadline -lhistory -ltermcap"
6406 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6407 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6411 echo "readline.h not found. readline turned off ..."
6437 # Minimal stuff for readline Makefile configuration
6440 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6441 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6442 if test "${ac_cv_header_stat_broken+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 #include <sys/types.h>
6452 #include <sys/stat.h>
6454 #if defined(S_ISBLK) && defined(S_IFDIR)
6455 # if S_ISBLK (S_IFDIR)
6460 #if defined(S_ISBLK) && defined(S_IFCHR)
6461 # if S_ISBLK (S_IFCHR)
6466 #if defined(S_ISLNK) && defined(S_IFREG)
6467 # if S_ISLNK (S_IFREG)
6472 #if defined(S_ISSOCK) && defined(S_IFREG)
6473 # if S_ISSOCK (S_IFREG)
6479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6480 $EGREP "You lose" >/dev/null 2>&1; then
6481 ac_cv_header_stat_broken=yes
6483 ac_cv_header_stat_broken=no
6488 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6489 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6490 if test $ac_cv_header_stat_broken = yes; then
6492 cat >>confdefs.h <<\_ACEOF
6493 #define STAT_MACROS_BROKEN 1
6504 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6505 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6506 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6507 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <sys/types.h>
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531 (eval $ac_compile) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_Header=yes"
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 eval "$as_ac_Header=no"
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6567 ac_header_dirent=$ac_hdr; break
6571 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6572 if test $ac_header_dirent = dirent.h; then
6573 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6574 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6575 if test "${ac_cv_search_opendir+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 ac_func_search_save_LIBS=$LIBS
6579 ac_cv_search_opendir=no
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6587 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1 >conftest.err
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_search_opendir="none required"
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6630 rm -f conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 if test "$ac_cv_search_opendir" = no; then
6633 for ac_lib in dir; do
6634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>conftest.er1
6661 grep -v '^ *+' conftest.er1 >conftest.err
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try='test -z "$ac_c_werror_flag"
6667 || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try='test -s conftest$ac_exeext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_search_opendir="-l$ac_lib"
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6686 rm -f conftest.err conftest.$ac_objext \
6687 conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_func_search_save_LIBS
6692 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6693 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6694 if test "$ac_cv_search_opendir" != no; then
6695 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6700 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6701 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6702 if test "${ac_cv_search_opendir+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_func_search_save_LIBS=$LIBS
6706 ac_cv_search_opendir=no
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6714 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731 (eval $ac_link) 2>conftest.er1
6733 grep -v '^ *+' conftest.er1 >conftest.err
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_cv_search_opendir="none required"
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6757 rm -f conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 if test "$ac_cv_search_opendir" = no; then
6761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6769 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6786 (eval $ac_link) 2>conftest.er1
6788 grep -v '^ *+' conftest.er1 >conftest.err
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_c_werror_flag"
6794 || test ! -s conftest.err'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; } &&
6800 { ac_try='test -s conftest$ac_exeext'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_cv_search_opendir="-l$ac_lib"
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6813 rm -f conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6817 LIBS=$ac_func_search_save_LIBS
6819 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6820 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6821 if test "$ac_cv_search_opendir" != no; then
6822 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6836 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6839 echo "$as_me:$LINENO: checking for $ac_func" >&5
6840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6841 if eval "test \"\${$as_ac_var+set}\" = set"; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6852 #define $ac_func innocuous_$ac_func
6854 /* System header to define __stub macros and hopefully few prototypes,
6855 which can conflict with char $ac_func (); below.
6856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6857 <limits.h> exists even on freestanding compilers. */
6860 # include <limits.h>
6862 # include <assert.h>
6867 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6875 /* The GNU C library defines this for functions which it implements
6876 to always fail with ENOSYS. Some functions are actually named
6877 something starting with __ and the normal name is an alias. */
6878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6881 char (*f) () = $ac_func;
6890 return f != $ac_func;
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897 (eval $ac_link) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 eval "$as_ac_var=yes"
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 eval "$as_ac_var=no"
6924 rm -f conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6929 if test `eval echo '${'$as_ac_var'}'` = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6939 for ac_func in nanosleep nl_langinfo
6941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6942 echo "$as_me:$LINENO: checking for $ac_func" >&5
6943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6944 if eval "test \"\${$as_ac_var+set}\" = set"; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6955 #define $ac_func innocuous_$ac_func
6957 /* System header to define __stub macros and hopefully few prototypes,
6958 which can conflict with char $ac_func (); below.
6959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6960 <limits.h> exists even on freestanding compilers. */
6963 # include <limits.h>
6965 # include <assert.h>
6970 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6978 /* The GNU C library defines this for functions which it implements
6979 to always fail with ENOSYS. Some functions are actually named
6980 something starting with __ and the normal name is an alias. */
6981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6984 char (*f) () = $ac_func;
6993 return f != $ac_func;
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>conftest.er1
7002 grep -v '^ *+' conftest.er1 >conftest.err
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest$ac_exeext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 eval "$as_ac_var=yes"
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 eval "$as_ac_var=no"
7027 rm -f conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7032 if test `eval echo '${'$as_ac_var'}'` = yes; then
7033 cat >>confdefs.h <<_ACEOF
7034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7041 for ac_header in varargs.h
7043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7045 echo "$as_me:$LINENO: checking for $ac_header" >&5
7046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7053 # Is the header compilable?
7054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7063 #include <$ac_header>
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1 >conftest.err
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_header_compiler=yes
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_header_compiler=no
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7096 echo "${ECHO_T}$ac_header_compiler" >&6
7098 # Is the header present?
7099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <$ac_header>
7109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 grep -v '^ *+' conftest.er1 >conftest.err
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } >/dev/null; then
7117 if test -s conftest.err; then
7118 ac_cpp_err=$ac_c_preproc_warn_flag
7119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7126 if test -z "$ac_cpp_err"; then
7127 ac_header_preproc=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_header_preproc=no
7134 rm -f conftest.err conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7136 echo "${ECHO_T}$ac_header_preproc" >&6
7138 # So? What about this header?
7139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7145 ac_header_preproc=yes
7148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7162 ## ------------------------------------------ ##
7163 ## Report this to the AC_PACKAGE_NAME lists. ##
7164 ## ------------------------------------------ ##
7167 sed "s/^/$as_me: WARNING: /" >&2
7170 echo "$as_me:$LINENO: checking for $ac_header" >&5
7171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 eval "$as_ac_Header=\$ac_header_preproc"
7177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7182 cat >>confdefs.h <<_ACEOF
7183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7191 # End of readline/conio stuff
7192 # -----------------------------------------------------------------------
7194 # -----------------------------------------------------------------------
7195 # Check for Python support
7197 echo "$as_me:$LINENO: checking for Python support" >&5
7198 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7200 # Check whether --with-python or --without-python was given.
7201 if test "${with_python+set}" = set; then
7202 withval="$with_python"
7206 if test "$withval" != "no"; then
7207 if test "$withval" = "yes"; then
7208 if test -f /usr/include/python2.2/Python.h; then
7209 PYTHON_INCDIR=-I/usr/include/python2.2
7210 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7211 elif test -f /usr/include/python2.3/Python.h; then
7212 PYTHON_INCDIR=-I/usr/include/python2.3
7213 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7214 elif test -f /usr/include/python2.4/Python.h; then
7215 PYTHON_INCDIR=-I/usr/include/python2.4
7216 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7217 elif test -f $prefix/include/Python.h; then
7218 PYTHON_INCDIR=-I$prefix/include
7219 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7221 echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7224 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7225 { (exit 1); exit 1; }; }
7228 if test -f $withval/Python.h; then
7229 PYTHON_INCDIR=-I$withval
7230 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7231 elif test -f $withval/include/Python.h; then
7232 PYTHON_INCDIR=-I$withval/include
7233 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7235 echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7237 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7238 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7239 { (exit 1); exit 1; }; }
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_PYTHON 1
7246 echo "$as_me:$LINENO: result: yes" >&5
7247 echo "${ECHO_T}yes" >&6
7251 echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6
7257 echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7266 # Find where sockets are (especially for Solaris)
7267 # Do this before the TCP Wrappers test since tcp wrappers
7268 # uses the socket library and some linkers are stupid.
7270 echo "$as_me:$LINENO: checking for socket" >&5
7271 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7272 if test "${ac_cv_func_socket+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 cat >conftest.$ac_ext <<_ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7283 #define socket innocuous_socket
7285 /* System header to define __stub macros and hopefully few prototypes,
7286 which can conflict with char socket (); below.
7287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7288 <limits.h> exists even on freestanding compilers. */
7291 # include <limits.h>
7293 # include <assert.h>
7298 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_socket) || defined (__stub___socket)
7312 char (*f) () = socket;
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328 (eval $ac_link) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_func_socket=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 ac_cv_func_socket=no
7355 rm -f conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7358 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7359 echo "${ECHO_T}$ac_cv_func_socket" >&6
7360 if test $ac_cv_func_socket = yes; then
7361 echo "$as_me:$LINENO: result: using libc's socket" >&5
7362 echo "${ECHO_T}using libc's socket" >&6
7365 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7366 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7367 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_check_lib_save_LIBS=$LIBS
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 /* Override any gcc2 internal prototype to avoid an error. */
7383 /* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396 (eval $ac_link) 2>conftest.er1
7398 grep -v '^ *+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -z "$ac_c_werror_flag"
7404 || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_lib_xnet_socket=yes
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_cv_lib_xnet_socket=no
7423 rm -f conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 LIBS=$ac_check_lib_save_LIBS
7427 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7428 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7429 if test $ac_cv_lib_xnet_socket = yes; then
7430 cat >>confdefs.h <<_ACEOF
7431 #define HAVE_LIBXNET 1
7439 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7440 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7441 if test "${ac_cv_lib_socket_socket+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 ac_check_lib_save_LIBS=$LIBS
7445 LIBS="-lsocket $LIBS"
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7453 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 (eval $ac_link) 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_socket_socket=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_lib_socket_socket=no
7497 rm -f conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499 LIBS=$ac_check_lib_save_LIBS
7501 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7502 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7503 if test $ac_cv_lib_socket_socket = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define HAVE_LIBSOCKET 1
7508 LIBS="-lsocket $LIBS"
7513 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7514 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7515 if test "${ac_cv_lib_inet_socket+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 ac_check_lib_save_LIBS=$LIBS
7520 cat >conftest.$ac_ext <<_ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7527 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544 (eval $ac_link) 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -z "$ac_c_werror_flag"
7552 || test ! -s conftest.err'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; } &&
7558 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 ac_cv_lib_inet_socket=yes
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ac_cv_lib_inet_socket=no
7571 rm -f conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7576 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7577 if test $ac_cv_lib_inet_socket = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_LIBINET 1
7590 # -----------------------------------------------------------
7591 # Check whether user wants TCP wrappers support (default off)
7592 # -----------------------------------------------------------
7595 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7596 if test "${with_tcp_wrappers+set}" = set; then
7597 withval="$with_tcp_wrappers"
7599 if test "x$withval" != "xno" ; then
7601 LIBS="$saved_LIBS -lwrap"
7602 echo "$as_me:$LINENO: checking for libwrap" >&5
7603 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7611 int deny_severity = 0;
7612 int allow_severity = 0;
7613 struct request_info *req;
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -z "$ac_c_werror_flag"
7632 || test ! -s conftest.err'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7645 echo "$as_me:$LINENO: result: yes" >&5
7646 echo "${ECHO_T}yes" >&6
7647 cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_LIBWRAP 1
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7658 LIBS="$saved_LIBS -lwrap -lnsl"
7659 cat >conftest.$ac_ext <<_ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7666 int deny_severity = 0;
7667 int allow_severity = 0;
7668 struct request_info *req;
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7681 grep -v '^ *+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7700 echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_LIBWRAP 1
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7713 echo "$as_me: error: *** libwrap missing" >&2;}
7714 { (exit 1); exit 1; }; }
7717 rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7721 rm -f conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7728 # -----------------------------------------------------------
7729 # Check whether OpenSSL is available
7730 # -----------------------------------------------------------
7731 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7732 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7734 # Check whether --with-openssl or --without-openssl was given.
7735 if test "${with_openssl+set}" = set; then
7736 withval="$with_openssl"
7737 with_openssl_directory=${withval}
7740 if test "x$with_openssl_directory" != "x"; then
7741 OPENSSL_LIBS="-lssl -lcrypto"
7744 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7745 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7746 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7750 saved_CFLAGS="$CFLAGS"
7751 LIBS="$saved_LIBS $OPENSSL_LIBS"
7752 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <openssl/ssl.h>
7764 CRYPTO_set_id_callback(NULL);
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771 (eval $ac_link) 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -z "$ac_c_werror_flag"
7779 || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try='test -s conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7799 rm -f conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7803 CFLAGS="$saved_CFLAGS"
7805 if test "$support_tls" = "yes"; then
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_OPENSSL 1
7812 cat >>confdefs.h <<\_ACEOF
7823 echo "$as_me:$LINENO: result: $support_tls" >&5
7824 echo "${ECHO_T}$support_tls" >&6
7830 # ------------------------------------------
7831 # Where to place working dir
7832 # ------------------------------------------
7833 working_dir=`eval echo ${prefix}/var/bacula/working`
7835 # Check whether --with-working-dir or --without-working-dir was given.
7836 if test "${with_working_dir+set}" = set; then
7837 withval="$with_working_dir"
7839 if test "x$withval" != "xno" ; then
7840 working_dir=$withval
7849 # ------------------------------------------
7850 # Where to place scriptdir (script files)
7851 # ------------------------------------------
7852 scriptdir=`eval echo ${sysconfdir}`
7854 # Check whether --with-scriptdir or --without-scriptdir was given.
7855 if test "${with_scriptdir+set}" = set; then
7856 withval="$with_scriptdir"
7858 if test "x$withval" != "xno" ; then
7868 # ------------------------------------------
7869 # Where to send dump email
7870 # ------------------------------------------
7871 dump_email=root@localhost
7873 # Check whether --with-dump-email or --without-dump-email was given.
7874 if test "${with_dump_email+set}" = set; then
7875 withval="$with_dump_email"
7877 if test "x$withval" != "xno" ; then
7886 # ------------------------------------------
7887 # Where to send job email
7888 # ------------------------------------------
7889 job_email=root@localhost
7891 # Check whether --with-job-email or --without-job-email was given.
7892 if test "${with_job_email+set}" = set; then
7893 withval="$with_job_email"
7895 if test "x$withval" != "xno" ; then
7904 # ------------------------------------------
7905 # Where to find smtp host
7906 # ------------------------------------------
7909 # Check whether --with-smtp_host or --without-smtp_host was given.
7910 if test "${with_smtp_host+set}" = set; then
7911 withval="$with_smtp_host"
7913 if test "x$withval" != "xno" ; then
7923 # ------------------------------------
7924 # Where to place pid files
7925 # ------------------------------------
7928 # Check whether --with-pid-dir or --without-pid-dir was given.
7929 if test "${with_pid_dir+set}" = set; then
7930 withval="$with_pid_dir"
7932 if test "x$withval" != "xno" ; then
7939 cat >>confdefs.h <<_ACEOF
7940 #define _PATH_BACULA_PIDDIR "$piddir"
7946 # ------------------------------------
7947 # Where to place subsys "lock file"
7948 # ------------------------------------
7949 subsysdir=/var/run/subsys
7951 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7952 if test "${with_subsys_dir+set}" = set; then
7953 withval="$with_subsys_dir"
7955 if test "x$withval" != "xno" ; then
7966 # ------------------------------------
7967 # Where to start assigning ports
7968 # ------------------------------------
7971 # Check whether --with-baseport or --without-baseport was given.
7972 if test "${with_baseport+set}" = set; then
7973 withval="$with_baseport"
7975 if test "x$withval" != "xno" ; then
7983 dir_port=`expr $baseport`
7984 fd_port=`expr $baseport + 1`
7985 sd_port=`expr $fd_port + 1`
7992 # ------------------------------------------
7993 # Generate passwords
7994 # ------------------------------------------
7997 # Check whether --with-dir-password or --without-dir-password was given.
7998 if test "${with_dir_password+set}" = set; then
7999 withval="$with_dir_password"
8001 if test "x$withval" != "xno" ; then
8002 dir_password=$withval
8008 if test "x$dir_password" = "x" ; then
8009 if test "x$OPENSSL" = "xnone" ; then
8010 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8011 key=`autoconf/randpass 33`
8013 key=`openssl rand -base64 33`
8020 # Check whether --with-fd-password or --without-fd-password was given.
8021 if test "${with_fd_password+set}" = set; then
8022 withval="$with_fd_password"
8024 if test "x$withval" != "xno" ; then
8025 fd_password=$withval
8031 if test "x$fd_password" = "x" ; then
8032 if test "x$OPENSSL" = "xnone" ; then
8033 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8034 key=`autoconf/randpass 37`
8036 key=`openssl rand -base64 33`
8043 # Check whether --with-sd-password or --without-sd-password was given.
8044 if test "${with_sd_password+set}" = set; then
8045 withval="$with_sd_password"
8047 if test "x$withval" != "xno" ; then
8048 sd_password=$withval
8054 if test "x$sd_password" = "x" ; then
8055 if test "x$OPENSSL" = "xnone" ; then
8056 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8057 key=`autoconf/randpass 41`
8059 key=`openssl rand -base64 33`
8066 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8067 if test "${with_mon_dir_password+set}" = set; then
8068 withval="$with_mon_dir_password"
8070 if test "x$withval" != "xno" ; then
8071 mon_dir_password=$withval
8077 if test "x$mon_dir_password" = "x" ; then
8078 if test "x$OPENSSL" = "xnone" ; then
8079 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8080 key=`autoconf/randpass 33`
8082 key=`openssl rand -base64 33`
8084 mon_dir_password=$key
8089 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8090 if test "${with_mon_fd_password+set}" = set; then
8091 withval="$with_mon_fd_password"
8093 if test "x$withval" != "xno" ; then
8094 mon_fd_password=$withval
8100 if test "x$mon_fd_password" = "x" ; then
8101 if test "x$OPENSSL" = "xnone" ; then
8102 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8103 key=`autoconf/randpass 37`
8105 key=`openssl rand -base64 33`
8107 mon_fd_password=$key
8112 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8113 if test "${with_mon_sd_password+set}" = set; then
8114 withval="$with_mon_sd_password"
8116 if test "x$withval" != "xno" ; then
8117 mon_sd_password=$withval
8123 if test "x$mon_sd_password" = "x" ; then
8124 if test "x$OPENSSL" = "xnone" ; then
8125 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8126 key=`autoconf/randpass 41`
8128 key=`openssl rand -base64 33`
8130 mon_sd_password=$key
8142 # Handle users and groups for each daemon
8146 # Check whether --with-dir_user or --without-dir_user was given.
8147 if test "${with_dir_user+set}" = set; then
8148 withval="$with_dir_user"
8150 if test "x$withval" != "x" ; then
8159 # Check whether --with-dir_group or --without-dir_group was given.
8160 if test "${with_dir_group+set}" = set; then
8161 withval="$with_dir_group"
8163 if test "x$withval" != "x" ; then
8172 # Check whether --with-sd_user or --without-sd_user was given.
8173 if test "${with_sd_user+set}" = set; then
8174 withval="$with_sd_user"
8176 if test "x$withval" != "x" ; then
8185 # Check whether --with-sd_group or --without-sd_group was given.
8186 if test "${with_sd_group+set}" = set; then
8187 withval="$with_sd_group"
8189 if test "x$withval" != "x" ; then
8198 # Check whether --with-fd_user or --without-fd_user was given.
8199 if test "${with_fd_user+set}" = set; then
8200 withval="$with_fd_user"
8202 if test "x$withval" != "x" ; then
8211 # Check whether --with-fd_group or --without-fd_group was given.
8212 if test "${with_fd_group+set}" = set; then
8213 withval="$with_fd_group"
8215 if test "x$withval" != "x" ; then
8233 # allow setting default executable permissions
8237 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8238 if test "${with_sbin_perm+set}" = set; then
8239 withval="$with_sbin_perm"
8241 if test "x$withval" != "x" ; then
8250 # ------------------------------------------------
8251 # Bacula check for various SQL database engines
8252 # ------------------------------------------------
8255 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8256 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8258 # Check whether --with-postgresql or --without-postgresql was given.
8259 if test "${with_postgresql+set}" = set; then
8260 withval="$with_postgresql"
8262 if test "$withval" != "no"; then
8263 if test "$db_found" = "yes"; then
8264 echo "$as_me:$LINENO: result: error" >&5
8265 echo "${ECHO_T}error" >&6
8266 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8267 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8268 { (exit 1); exit 1; }; };
8270 if test "$withval" = "yes"; then
8271 if test -f /usr/local/include/libpq-fe.h; then
8272 POSTGRESQL_INCDIR=/usr/local/include
8273 POSTGRESQL_LIBDIR=/usr/local/lib
8274 POSTGRESQL_BINDIR=/usr/local/bin
8275 elif test -f /usr/include/libpq-fe.h; then
8276 POSTGRESQL_INCDIR=/usr/include
8277 POSTGRESQL_LIBDIR=/usr/lib
8278 POSTGRESQL_BINDIR=/usr/bin
8279 elif test -f /usr/include/pgsql/libpq-fe.h; then
8280 POSTGRESQL_INCDIR=/usr/include/pgsql
8281 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8282 POSTGRESQL_BINDIR=/usr/bin
8283 elif test -f /usr/include/postgresql/libpq-fe.h; then
8284 POSTGRESQL_INCDIR=/usr/include/postgresql
8285 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8286 POSTGRESQL_BINDIR=/usr/bin
8288 echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6
8290 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8291 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8292 { (exit 1); exit 1; }; }
8294 elif test -f $withval/include/libpq-fe.h; then
8295 POSTGRESQL_INCDIR=$withval/include
8296 POSTGRESQL_LIBDIR=$withval/lib
8297 POSTGRESQL_BINDIR=$withval/bin
8298 elif test -f $withval/include/postgresql/libpq-fe.h; then
8299 POSTGRESQL_INCDIR=$withval/include/postgresql
8300 POSTGRESQL_LIBDIR=$withval/lib
8301 POSTGRESQL_BINDIR=$withval/bin
8303 echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8305 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8306 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8307 { (exit 1); exit 1; }; }
8309 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8310 echo "$as_me:$LINENO: checking for crypt" >&5
8311 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8312 if test "${ac_cv_func_crypt+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8323 #define crypt innocuous_crypt
8325 /* System header to define __stub macros and hopefully few prototypes,
8326 which can conflict with char crypt (); below.
8327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8328 <limits.h> exists even on freestanding compilers. */
8331 # include <limits.h>
8333 # include <assert.h>
8338 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8346 /* The GNU C library defines this for functions which it implements
8347 to always fail with ENOSYS. Some functions are actually named
8348 something starting with __ and the normal name is an alias. */
8349 #if defined (__stub_crypt) || defined (__stub___crypt)
8352 char (*f) () = crypt;
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>conftest.er1
8370 grep -v '^ *+' conftest.er1 >conftest.err
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_func_crypt=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8399 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8400 if test $ac_cv_func_crypt = yes; then
8403 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8404 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8405 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lcrypt $LIBS"
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8417 /* Override any gcc2 internal prototype to avoid an error. */
8421 /* We use char because int might match the return type of a gcc2
8422 builtin and then its argument prototype would still apply. */
8432 rm -f conftest.$ac_objext conftest$ac_exeext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434 (eval $ac_link) 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag"
8442 || test ! -s conftest.err'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_cv_lib_crypt_crypt=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_cv_lib_crypt_crypt=no
8461 rm -f conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8465 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8466 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8467 if test $ac_cv_lib_crypt_crypt = yes; then
8468 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8473 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8474 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8475 SQL_BINDIR=$POSTGRESQL_BINDIR
8476 cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_POSTGRESQL 1
8480 echo "$as_me:$LINENO: result: yes" >&5
8481 echo "${ECHO_T}yes" >&6
8483 support_postgresql=yes
8487 echo "$as_me:$LINENO: result: no" >&5
8488 echo "${ECHO_T}no" >&6
8493 echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6
8505 echo "$as_me:$LINENO: checking for MySQL support" >&5
8506 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8508 # Check whether --with-mysql or --without-mysql was given.
8509 if test "${with_mysql+set}" = set; then
8510 withval="$with_mysql"
8512 if test "$withval" != "no"; then
8513 if test "$withval" = "yes"; then
8514 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8515 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8516 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8517 MYSQL_BINDIR=/usr/local/mysql/bin
8518 elif test -f /usr/include/mysql/mysql.h; then
8519 MYSQL_INCDIR=/usr/include/mysql
8520 MYSQL_LIBDIR=/usr/lib/mysql
8521 MYSQL_BINDIR=/usr/bin
8522 elif test -f /usr/include/mysql.h; then
8523 MYSQL_INCDIR=/usr/include
8524 MYSQL_LIBDIR=/usr/lib
8525 MYSQL_BINDIR=/usr/bin
8526 elif test -f /usr/local/include/mysql/mysql.h; then
8527 MYSQL_INCDIR=/usr/local/include/mysql
8528 MYSQL_LIBDIR=/usr/local/lib/mysql
8529 MYSQL_BINDIR=/usr/local/bin
8530 elif test -f /usr/local/include/mysql.h; then
8531 MYSQL_INCDIR=/usr/local/include
8532 MYSQL_LIBDIR=/usr/local/lib
8533 MYSQL_BINDIR=/usr/local/bin
8535 echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8537 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8538 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8539 { (exit 1); exit 1; }; }
8542 if test -f $withval/include/mysql/mysql.h; then
8543 MYSQL_INCDIR=$withval/include/mysql
8544 MYSQL_LIBDIR=$withval/lib/mysql
8545 MYSQL_BINDIR=$withval/bin
8546 elif test -f $withval/include/mysql.h; then
8547 MYSQL_INCDIR=$withval/include
8548 MYSQL_LIBDIR=$withval/lib
8549 MYSQL_BINDIR=$withval/bin
8551 echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8554 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8555 { (exit 1); exit 1; }; }
8558 SQL_INCLUDE=-I$MYSQL_INCDIR
8559 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8560 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8561 cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_THREAD_SAFE_MYSQL 1
8566 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8568 SQL_BINDIR=$MYSQL_BINDIR
8570 cat >>confdefs.h <<\_ACEOF
8571 #define HAVE_MYSQL 1
8574 echo "$as_me:$LINENO: result: yes" >&5
8575 echo "${ECHO_T}yes" >&6
8582 echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6
8590 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8591 if test "${with_embedded_mysql+set}" = set; then
8592 withval="$with_embedded_mysql"
8594 if test "$withval" != "no"; then
8595 if test "$withval" = "yes"; then
8596 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8597 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8598 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8599 MYSQL_BINDIR=/usr/local/mysql/bin
8600 elif test -f /usr/include/mysql/mysql.h; then
8601 MYSQL_INCDIR=/usr/include/mysql
8602 MYSQL_LIBDIR=/usr/lib/mysql
8603 MYSQL_BINDIR=/usr/bin
8604 elif test -f /usr/include/mysql.h; then
8605 MYSQL_INCDIR=/usr/include
8606 MYSQL_LIBDIR=/usr/lib
8607 MYSQL_BINDIR=/usr/bin
8608 elif test -f /usr/local/include/mysql/mysql.h; then
8609 MYSQL_INCDIR=/usr/local/include/mysql
8610 MYSQL_LIBDIR=/usr/local/lib/mysql
8611 MYSQL_BINDIR=/usr/local/bin
8612 elif test -f /usr/local/include/mysql.h; then
8613 MYSQL_INCDIR=/usr/local/include
8614 MYSQL_LIBDIR=/usr/local/lib
8615 MYSQL_BINDIR=/usr/local/bin
8617 echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6
8619 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8620 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8621 { (exit 1); exit 1; }; }
8624 if test -f $withval/include/mysql/mysql.h; then
8625 MYSQL_INCDIR=$withval/include/mysql
8626 MYSQL_LIBDIR=$withval/lib/mysql
8627 MYSQL_BINDIR=$withval/bin
8628 elif test -f $withval/include/mysql.h; then
8629 MYSQL_INCDIR=$withval/include
8630 MYSQL_LIBDIR=$withval/lib
8631 MYSQL_BINDIR=$withval/bin
8633 echo "$as_me:$LINENO: result: no" >&5
8634 echo "${ECHO_T}no" >&6
8635 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8636 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8637 { (exit 1); exit 1; }; }
8640 SQL_INCLUDE=-I$MYSQL_INCDIR
8641 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8642 SQL_BINDIR=$MYSQL_BINDIR
8644 cat >>confdefs.h <<\_ACEOF
8645 #define HAVE_MYSQL 1
8648 cat >>confdefs.h <<\_ACEOF
8649 #define HAVE_EMBEDDED_MYSQL 1
8652 echo "$as_me:$LINENO: result: yes" >&5
8653 echo "${ECHO_T}yes" >&6
8660 echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8676 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8677 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8679 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8680 if test "${with_sqlite3+set}" = set; then
8681 withval="$with_sqlite3"
8683 if test "$withval" != "no"; then
8684 if test "$withval" = "yes"; then
8685 if test -f /usr/local/include/sqlite3.h; then
8686 SQLITE_INCDIR=/usr/local/include
8687 SQLITE_LIBDIR=/usr/local/lib
8688 SQLITE_BINDIR=/usr/local/bin
8689 elif test -f /usr/include/sqlite3.h; then
8690 SQLITE_INCDIR=/usr/include
8691 SQLITE_LIBDIR=/usr/lib
8692 SQLITE_BINDIR=/usr/bin
8693 elif test -f $prefix/include/sqlite3.h; then
8694 SQLITE_INCDIR=$prefix/include
8695 SQLITE_LIBDIR=$prefix/lib
8696 SQLITE_BINDIR=$prefix/bin
8698 echo "$as_me:$LINENO: result: no" >&5
8699 echo "${ECHO_T}no" >&6
8700 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8701 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8702 { (exit 1); exit 1; }; }
8705 if test -f $withval/sqlite3.h; then
8706 SQLITE_INCDIR=$withval
8707 SQLITE_LIBDIR=$withval
8708 SQLITE_BINDIR=$withval
8709 elif test -f $withval/include/sqlite3.h; then
8710 SQLITE_INCDIR=$withval/include
8711 SQLITE_LIBDIR=$withval/lib
8712 SQLITE_BINDIR=$withval/bin
8714 echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6
8716 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8717 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8718 { (exit 1); exit 1; }; }
8721 SQL_INCLUDE=-I$SQLITE_INCDIR
8722 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8723 SQL_BINDIR=$SQLITE_BINDIR
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_SQLITE3 1
8729 echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6
8737 echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8743 echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8755 echo "$as_me:$LINENO: checking for SQLite support" >&5
8756 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8758 # Check whether --with-sqlite or --without-sqlite was given.
8759 if test "${with_sqlite+set}" = set; then
8760 withval="$with_sqlite"
8762 if test "$withval" != "no"; then
8763 if test "$withval" = "yes"; then
8764 if test -f /usr/local/include/sqlite.h; then
8765 SQLITE_INCDIR=/usr/local/include
8766 SQLITE_LIBDIR=/usr/local/lib
8767 SQLITE_BINDIR=/usr/local/bin
8768 elif test -f /usr/include/sqlite.h; then
8769 SQLITE_INCDIR=/usr/include
8770 SQLITE_LIBDIR=/usr/lib
8771 SQLITE_BINDIR=/usr/bin
8772 elif test -f $prefix/include/sqlite.h; then
8773 SQLITE_INCDIR=$prefix/include
8774 SQLITE_LIBDIR=$prefix/lib
8775 SQLITE_BINDIR=$prefix/bin
8777 echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8779 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8780 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8781 { (exit 1); exit 1; }; }
8784 if test -f $withval/sqlite.h; then
8785 SQLITE_INCDIR=$withval
8786 SQLITE_LIBDIR=$withval
8787 SQLITE_BINDIR=$withval
8788 elif test -f $withval/include/sqlite.h; then
8789 SQLITE_INCDIR=$withval/include
8790 SQLITE_LIBDIR=$withval/lib
8791 SQLITE_BINDIR=$withval/bin
8793 echo "$as_me:$LINENO: result: no" >&5
8794 echo "${ECHO_T}no" >&6
8795 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8796 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8797 { (exit 1); exit 1; }; }
8800 SQL_INCLUDE=-I$SQLITE_INCDIR
8801 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8802 SQL_BINDIR=$SQLITE_BINDIR
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_SQLITE 1
8808 echo "$as_me:$LINENO: result: yes" >&5
8809 echo "${ECHO_T}yes" >&6
8816 echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8822 echo "$as_me:$LINENO: result: no" >&5
8823 echo "${ECHO_T}no" >&6
8835 cat >>confdefs.h <<\_ACEOF
8836 #define PROTOTYPES 1
8840 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8841 if test -z "$CCOPTS"; then
8842 CCOPTS='-g -O2 -Wall'
8850 largefile_support="no"
8852 # Check whether --enable-largefile or --disable-largefile was given.
8853 if test "${enable_largefile+set}" = set; then
8854 enableval="$enable_largefile"
8857 if test "$enable_largefile" != no; then
8858 if test -n "$ac_tool_prefix"; then
8859 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8860 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8861 echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863 if test "${ac_cv_prog_GETCONF+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 if test -n "$GETCONF"; then
8867 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 GETCONF=$ac_cv_prog_GETCONF
8886 if test -n "$GETCONF"; then
8887 echo "$as_me:$LINENO: result: $GETCONF" >&5
8888 echo "${ECHO_T}$GETCONF" >&6
8890 echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6
8895 if test -z "$ac_cv_prog_GETCONF"; then
8896 ac_ct_GETCONF=$GETCONF
8897 # Extract the first word of "getconf", so it can be a program name with args.
8898 set dummy getconf; ac_word=$2
8899 echo "$as_me:$LINENO: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 if test -n "$ac_ct_GETCONF"; then
8905 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_ac_ct_GETCONF="getconf"
8915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8924 if test -n "$ac_ct_GETCONF"; then
8925 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8926 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8928 echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6
8932 GETCONF=$ac_ct_GETCONF
8934 GETCONF="$ac_cv_prog_GETCONF"
8937 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8938 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8939 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8943 ac_cv_sys_largefile_CFLAGS=no
8945 # IRIX 6.2 and later require cc -n32.
8946 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8947 if test "$GCC" != yes; then
8948 ac_cv_sys_largefile_CFLAGS=-n32
8951 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8971 grep -v '^ *+' conftest.er1 >conftest.err
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_sys_largefile_CFLAGS=no
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
9002 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9003 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9004 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9005 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9006 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9010 ac_cv_sys_largefile_LDFLAGS=no
9014 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9015 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9016 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9017 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9018 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9022 ac_cv_sys_largefile_LIBS=no
9026 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9027 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9029 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9032 -D_FILE_OFFSET_BITS=*) ;;
9033 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9034 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9040 '') CPPFLAGS="$ac_flag" ;;
9041 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9049 '') CFLAGS="$ac_flag" ;;
9050 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9055 case "$ac_cv_sys_largefile_LDFLAGS" in
9059 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9060 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9063 case "$ac_cv_sys_largefile_LIBS" in
9067 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9068 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9071 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9072 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9073 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 ac_cv_sys_file_offset_bits=no
9077 ac_cv_sys_file_offset_bits=64
9078 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9080 -D_FILE_OFFSET_BITS)
9081 ac_cv_sys_file_offset_bits=1 ;;
9082 -D_FILE_OFFSET_BITS=*)
9083 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9088 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9089 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9090 if test "$ac_cv_sys_file_offset_bits" != no; then
9092 cat >>confdefs.h <<_ACEOF
9093 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9097 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9098 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9099 if test "${ac_cv_sys_largefile_source+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 ac_cv_sys_largefile_source=no
9103 ac_cv_sys_largefile_source=1
9104 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9106 -D_LARGEFILE_SOURCE)
9107 ac_cv_sys_largefile_source=1 ;;
9108 -D_LARGEFILE_SOURCE=*)
9109 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9114 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9115 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9116 if test "$ac_cv_sys_largefile_source" != no; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9123 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9124 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9125 if test "${ac_cv_sys_large_files+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 ac_cv_sys_large_files=no
9129 ac_cv_sys_large_files=1
9130 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9133 ac_cv_sys_large_files=1 ;;
9135 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9140 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9141 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9142 if test "$ac_cv_sys_large_files" != no; then
9144 cat >>confdefs.h <<_ACEOF
9145 #define _LARGE_FILES $ac_cv_sys_large_files
9153 echo "$as_me:$LINENO: checking for X" >&5
9154 echo $ECHO_N "checking for X... $ECHO_C" >&6
9157 # Check whether --with-x or --without-x was given.
9158 if test "${with_x+set}" = set; then
9162 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9163 if test "x$with_x" = xno; then
9164 # The user explicitly disabled X.
9167 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9168 # Both variables are already set.
9171 if test "${ac_cv_have_x+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 # One or both of the vars are not set, and there is no cached value.
9175 ac_x_includes=no ac_x_libraries=no
9177 if mkdir conftest.dir; then
9179 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9180 cat >Imakefile <<'_ACEOF'
9182 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9184 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9186 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9187 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9188 for ac_extension in a so sl; do
9189 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9190 test -f $ac_im_libdir/libX11.$ac_extension; then
9191 ac_im_usrlibdir=$ac_im_libdir; break
9194 # Screen out bogus values from the imake configuration. They are
9195 # bogus both because they are the default anyway, and because
9196 # using them would break gcc on systems where it needs fixed includes.
9197 case $ac_im_incroot in
9199 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9201 case $ac_im_usrlibdir in
9203 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9210 # Standard set of common directories for X headers.
9211 # Check X11 before X11Rn because it is often a symlink to the current release.
9223 /usr/local/X11/include
9224 /usr/local/X11R6/include
9225 /usr/local/X11R5/include
9226 /usr/local/X11R4/include
9228 /usr/local/include/X11
9229 /usr/local/include/X11R6
9230 /usr/local/include/X11R5
9231 /usr/local/include/X11R4
9235 /usr/XFree86/include/X11
9239 /usr/unsupported/include
9241 /usr/local/x11r5/include
9242 /usr/lpp/Xamples/include
9244 /usr/openwin/include
9245 /usr/openwin/share/include'
9247 if test "$ac_x_includes" = no; then
9248 # Guess where to find include files, by looking for Intrinsic.h.
9249 # First, try using that file with no special directory specified.
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <X11/Intrinsic.h>
9258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } >/dev/null; then
9266 if test -s conftest.err; then
9267 ac_cpp_err=$ac_c_preproc_warn_flag
9268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9275 if test -z "$ac_cpp_err"; then
9276 # We can compile using X headers with no special include directory.
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 for ac_dir in $ac_x_header_dirs; do
9283 if test -r "$ac_dir/X11/Intrinsic.h"; then
9284 ac_x_includes=$ac_dir
9289 rm -f conftest.err conftest.$ac_ext
9290 fi # $ac_x_includes = no
9292 if test "$ac_x_libraries" = no; then
9293 # Check for the libraries.
9294 # See if we find them without any special options.
9295 # Don't add to $LIBS permanently.
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #include <X11/Intrinsic.h>
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>conftest.er1
9317 grep -v '^ *+' conftest.er1 >conftest.err
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try='test -z "$ac_c_werror_flag"
9323 || test ! -s conftest.err'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; } &&
9329 { ac_try='test -s conftest$ac_exeext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9336 # We can link X programs with no special library path.
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9343 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9345 # Don't even attempt the hair of trying to link an X program!
9346 for ac_extension in a so sl; do
9347 if test -r $ac_dir/libXt.$ac_extension; then
9348 ac_x_libraries=$ac_dir
9354 rm -f conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 fi # $ac_x_libraries = no
9358 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9359 # Didn't find X anywhere. Cache the known absence of X.
9360 ac_cv_have_x="have_x=no"
9362 # Record where we found X for the cache.
9363 ac_cv_have_x="have_x=yes \
9364 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9369 eval "$ac_cv_have_x"
9372 if test "$have_x" != yes; then
9373 echo "$as_me:$LINENO: result: $have_x" >&5
9374 echo "${ECHO_T}$have_x" >&6
9377 # If each of the values was on the command line, it overrides each guess.
9378 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9379 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9380 # Update the cache value to reflect the command line values.
9381 ac_cv_have_x="have_x=yes \
9382 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9383 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9384 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9387 if test "$no_x" = yes; then
9388 # Not all programs may use this symbol, but it does not hurt to define it.
9390 cat >>confdefs.h <<\_ACEOF
9391 #define X_DISPLAY_MISSING 1
9394 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9396 if test -n "$x_includes"; then
9397 X_CFLAGS="$X_CFLAGS -I$x_includes"
9400 # It would also be nice to do this for all -L options, not just this one.
9401 if test -n "$x_libraries"; then
9402 X_LIBS="$X_LIBS -L$x_libraries"
9403 # For Solaris; some versions of Sun CC require a space after -R and
9404 # others require no space. Words are not sufficient . . . .
9405 case `(uname -sr) 2>/dev/null` in
9407 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9408 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9409 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9410 cat >conftest.$ac_ext <<_ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9429 grep -v '^ *+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_c_werror_flag"
9435 || test ! -s conftest.err'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; } &&
9441 { ac_try='test -s conftest$ac_exeext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9454 rm -f conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 if test $ac_R_nospace = yes; then
9457 echo "$as_me:$LINENO: result: no" >&5
9458 echo "${ECHO_T}no" >&6
9459 X_LIBS="$X_LIBS -R$x_libraries"
9461 LIBS="$ac_xsave_LIBS -R $x_libraries"
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9506 rm -f conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test $ac_R_space = yes; then
9509 echo "$as_me:$LINENO: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6
9511 X_LIBS="$X_LIBS -R $x_libraries"
9513 echo "$as_me:$LINENO: result: neither works" >&5
9514 echo "${ECHO_T}neither works" >&6
9521 # Check for system-dependent libraries X programs must link with.
9522 # Do this before checking for the system-independent R6 libraries
9523 # (-lICE), since we may need -lsocket or whatever for X linking.
9525 if test "$ISC" = yes; then
9526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9528 # Martyn Johnson says this is needed for Ultrix, if the X
9529 # libraries were built with DECnet support. And Karl Berry says
9530 # the Alpha needs dnet_stub (dnet does not exist).
9531 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any gcc2 internal prototype to avoid an error. */
9543 /* We use char because int might match the return type of a gcc2
9544 builtin and then its argument prototype would still apply. */
9545 char XOpenDisplay ();
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9582 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9583 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 ac_check_lib_save_LIBS=$LIBS
9588 cat >conftest.$ac_ext <<_ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any gcc2 internal prototype to avoid an error. */
9599 /* We use char because int might match the return type of a gcc2
9600 builtin and then its argument prototype would still apply. */
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_lib_dnet_dnet_ntoa=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ac_cv_lib_dnet_dnet_ntoa=no
9639 rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9643 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9644 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9645 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9646 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9649 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9650 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9651 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9652 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 ac_check_lib_save_LIBS=$LIBS
9656 LIBS="-ldnet_stub $LIBS"
9657 cat >conftest.$ac_ext <<_ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9664 /* Override any gcc2 internal prototype to avoid an error. */
9668 /* We use char because int might match the return type of a gcc2
9669 builtin and then its argument prototype would still apply. */
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681 (eval $ac_link) 2>conftest.er1
9683 grep -v '^ *+' conftest.er1 >conftest.err
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } &&
9688 { ac_try='test -z "$ac_c_werror_flag"
9689 || test ! -s conftest.err'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_lib_dnet_stub_dnet_ntoa=no
9708 rm -f conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9712 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9713 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9714 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9715 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9720 rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 LIBS="$ac_xsave_LIBS"
9724 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9725 # to get the SysV transport functions.
9726 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9728 # The nsl library prevents programs from opening the X display
9729 # on Irix 5.2, according to T.E. Dickey.
9730 # The functions gethostbyname, getservbyname, and inet_addr are
9731 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9732 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9733 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9734 if test "${ac_cv_func_gethostbyname+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9745 #define gethostbyname innocuous_gethostbyname
9747 /* System header to define __stub macros and hopefully few prototypes,
9748 which can conflict with char gethostbyname (); below.
9749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750 <limits.h> exists even on freestanding compilers. */
9753 # include <limits.h>
9755 # include <assert.h>
9758 #undef gethostbyname
9760 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9767 char gethostbyname ();
9768 /* The GNU C library defines this for functions which it implements
9769 to always fail with ENOSYS. Some functions are actually named
9770 something starting with __ and the normal name is an alias. */
9771 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9774 char (*f) () = gethostbyname;
9783 return f != gethostbyname;
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag"
9798 || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_func_gethostbyname=yes
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_cv_func_gethostbyname=no
9817 rm -f conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9820 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9821 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9823 if test $ac_cv_func_gethostbyname = no; then
9824 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9825 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9826 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 ac_check_lib_save_LIBS=$LIBS
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844 char gethostbyname ();
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_lib_nsl_gethostbyname=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_lib_nsl_gethostbyname=no
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 LIBS=$ac_check_lib_save_LIBS
9886 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9887 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9888 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9892 if test $ac_cv_lib_nsl_gethostbyname = no; then
9893 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9894 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9895 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 ac_check_lib_save_LIBS=$LIBS
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9907 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9913 char gethostbyname ();
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>conftest.er1
9926 grep -v '^ *+' conftest.er1 >conftest.err
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_lib_bsd_gethostbyname=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_cv_lib_bsd_gethostbyname=no
9951 rm -f conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9955 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9956 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9957 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9964 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9965 # socket/setsockopt and other routines are undefined under SCO ODT
9966 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9967 # on later versions), says Simon Leinen: it contains gethostby*
9968 # variants that don't use the name server (or something). -lsocket
9969 # must be given before -lnsl if both are needed. We assume that
9970 # if connect needs -lnsl, so does gethostbyname.
9971 echo "$as_me:$LINENO: checking for connect" >&5
9972 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9973 if test "${ac_cv_func_connect+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define connect innocuous_connect
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char connect (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9992 # include <limits.h>
9994 # include <assert.h>
9999 /* Override any gcc2 internal prototype to avoid an error. */
10004 /* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10007 /* The GNU C library defines this for functions which it implements
10008 to always fail with ENOSYS. Some functions are actually named
10009 something starting with __ and the normal name is an alias. */
10010 #if defined (__stub_connect) || defined (__stub___connect)
10013 char (*f) () = connect;
10022 return f != connect;
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_func_connect=yes
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_func_connect=no
10056 rm -f conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10060 echo "${ECHO_T}$ac_cv_func_connect" >&6
10062 if test $ac_cv_func_connect = no; then
10063 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10064 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10065 if test "${ac_cv_lib_socket_connect+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10077 /* Override any gcc2 internal prototype to avoid an error. */
10081 /* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>conftest.er1
10096 grep -v '^ *+' conftest.er1 >conftest.err
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_c_werror_flag"
10102 || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_lib_socket_connect=yes
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_lib_socket_connect=no
10121 rm -f conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LIBS=$ac_check_lib_save_LIBS
10125 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10126 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10127 if test $ac_cv_lib_socket_connect = yes; then
10128 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10133 # Guillermo Gomez says -lposix is necessary on A/UX.
10134 echo "$as_me:$LINENO: checking for remove" >&5
10135 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10136 if test "${ac_cv_func_remove+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10147 #define remove innocuous_remove
10149 /* System header to define __stub macros and hopefully few prototypes,
10150 which can conflict with char remove (); below.
10151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10152 <limits.h> exists even on freestanding compilers. */
10155 # include <limits.h>
10157 # include <assert.h>
10162 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10170 /* The GNU C library defines this for functions which it implements
10171 to always fail with ENOSYS. Some functions are actually named
10172 something starting with __ and the normal name is an alias. */
10173 #if defined (__stub_remove) || defined (__stub___remove)
10176 char (*f) () = remove;
10185 return f != remove;
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_func_remove=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_func_remove=no
10219 rm -f conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10222 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10223 echo "${ECHO_T}$ac_cv_func_remove" >&6
10225 if test $ac_cv_func_remove = no; then
10226 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10227 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10228 if test "${ac_cv_lib_posix_remove+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-lposix $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10240 /* Override any gcc2 internal prototype to avoid an error. */
10244 /* We use char because int might match the return type of a gcc2
10245 builtin and then its argument prototype would still apply. */
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>conftest.er1
10259 grep -v '^ *+' conftest.er1 >conftest.err
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag"
10265 || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest$ac_exeext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_lib_posix_remove=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_lib_posix_remove=no
10284 rm -f conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10288 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10289 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10290 if test $ac_cv_lib_posix_remove = yes; then
10291 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10297 echo "$as_me:$LINENO: checking for shmat" >&5
10298 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10299 if test "${ac_cv_func_shmat+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10310 #define shmat innocuous_shmat
10312 /* System header to define __stub macros and hopefully few prototypes,
10313 which can conflict with char shmat (); below.
10314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10315 <limits.h> exists even on freestanding compilers. */
10318 # include <limits.h>
10320 # include <assert.h>
10325 /* Override any gcc2 internal prototype to avoid an error. */
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10333 /* The GNU C library defines this for functions which it implements
10334 to always fail with ENOSYS. Some functions are actually named
10335 something starting with __ and the normal name is an alias. */
10336 #if defined (__stub_shmat) || defined (__stub___shmat)
10339 char (*f) () = shmat;
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 (eval $ac_link) 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag"
10363 || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_func_shmat=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_func_shmat=no
10382 rm -f conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10385 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10386 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10388 if test $ac_cv_func_shmat = no; then
10389 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10390 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10391 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 ac_check_lib_save_LIBS=$LIBS
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>conftest.er1
10422 grep -v '^ *+' conftest.er1 >conftest.err
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag"
10428 || test ! -s conftest.err'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_lib_ipc_shmat=yes
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_cv_lib_ipc_shmat=no
10447 rm -f conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$ac_check_lib_save_LIBS
10451 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10452 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10453 if test $ac_cv_lib_ipc_shmat = yes; then
10454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10460 # Check for libraries that X11R6 Xt/Xaw programs need.
10461 ac_save_LDFLAGS=$LDFLAGS
10462 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10463 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10464 # check for ICE first), but we must link in the order -lSM -lICE or
10465 # we get undefined symbols. So assume we have SM if we have ICE.
10466 # These have to be linked with before -lX11, unlike the other
10467 # libraries we check for below, so use a different variable.
10468 # John Interrante, Karl Berry
10469 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10470 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10471 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 ac_check_lib_save_LIBS=$LIBS
10475 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10476 cat >conftest.$ac_ext <<_ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10483 /* Override any gcc2 internal prototype to avoid an error. */
10487 /* We use char because int might match the return type of a gcc2
10488 builtin and then its argument prototype would still apply. */
10489 char IceConnectionNumber ();
10493 IceConnectionNumber ();
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>conftest.er1
10502 grep -v '^ *+' conftest.er1 >conftest.err
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -z "$ac_c_werror_flag"
10508 || test ! -s conftest.err'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; } &&
10514 { ac_try='test -s conftest$ac_exeext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_cv_lib_ICE_IceConnectionNumber=yes
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10525 ac_cv_lib_ICE_IceConnectionNumber=no
10527 rm -f conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10531 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10532 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10533 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10534 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10537 LDFLAGS=$ac_save_LDFLAGS
10599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601 echo "$as_me:$LINENO: checking for $ac_header" >&5
10602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10609 # Is the header compilable?
10610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 $ac_includes_default
10619 #include <$ac_header>
10621 rm -f conftest.$ac_objext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10623 (eval $ac_compile) 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_c_werror_flag"
10631 || test ! -s conftest.err'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest.$ac_objext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_header_compiler=yes
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 ac_header_compiler=no
10650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10652 echo "${ECHO_T}$ac_header_compiler" >&6
10654 # Is the header present?
10655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 #include <$ac_header>
10665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } >/dev/null; then
10673 if test -s conftest.err; then
10674 ac_cpp_err=$ac_c_preproc_warn_flag
10675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10682 if test -z "$ac_cpp_err"; then
10683 ac_header_preproc=yes
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 ac_header_preproc=no
10690 rm -f conftest.err conftest.$ac_ext
10691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10692 echo "${ECHO_T}$ac_header_preproc" >&6
10694 # So? What about this header?
10695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10701 ac_header_preproc=yes
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10718 ## ------------------------------------------ ##
10719 ## Report this to the AC_PACKAGE_NAME lists. ##
10720 ## ------------------------------------------ ##
10723 sed "s/^/$as_me: WARNING: /" >&2
10726 echo "$as_me:$LINENO: checking for $ac_header" >&5
10727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 eval "$as_ac_Header=\$ac_header_preproc"
10733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10746 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10748 if test "${ac_cv_header_stdc+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 #include <stdlib.h>
10758 #include <stdarg.h>
10759 #include <string.h>
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772 (eval $ac_compile) 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_header_stdc=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_header_stdc=no
10799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10801 if test $ac_cv_header_stdc = yes; then
10802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <string.h>
10812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10813 $EGREP "memchr" >/dev/null 2>&1; then
10816 ac_cv_header_stdc=no
10822 if test $ac_cv_header_stdc = yes; then
10823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <stdlib.h>
10833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10834 $EGREP "free" >/dev/null 2>&1; then
10837 ac_cv_header_stdc=no
10843 if test $ac_cv_header_stdc = yes; then
10844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10845 if test "$cross_compiling" = yes; then
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10855 #if ((' ' & 0x0FF) == 0x020)
10856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10859 # define ISLOWER(c) \
10860 (('a' <= (c) && (c) <= 'i') \
10861 || ('j' <= (c) && (c) <= 'r') \
10862 || ('s' <= (c) && (c) <= 'z'))
10863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10871 for (i = 0; i < 256; i++)
10872 if (XOR (islower (i), ISLOWER (i))
10873 || toupper (i) != TOUPPER (i))
10878 rm -f conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880 (eval $ac_link) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10891 echo "$as_me: program exited with status $ac_status" >&5
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ( exit $ac_status )
10896 ac_cv_header_stdc=no
10898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10904 if test $ac_cv_header_stdc = yes; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define STDC_HEADERS 1
10912 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10913 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10914 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 #include <sys/types.h>
10927 return makedev(0, 0);
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_header_sys_types_h_makedev=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_header_sys_types_h_makedev=no
10961 rm -f conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10966 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10968 if test $ac_cv_header_sys_types_h_makedev = no; then
10969 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10970 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10971 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10972 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10976 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10978 # Is the header compilable?
10979 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10980 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10988 #include <sys/mkdev.h>
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992 (eval $ac_compile) 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag"
11000 || test ! -s conftest.err'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; } &&
11006 { ac_try='test -s conftest.$ac_objext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 ac_header_compiler=yes
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ac_header_compiler=no
11019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11021 echo "${ECHO_T}$ac_header_compiler" >&6
11023 # Is the header present?
11024 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11025 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 #include <sys/mkdev.h>
11034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } >/dev/null; then
11042 if test -s conftest.err; then
11043 ac_cpp_err=$ac_c_preproc_warn_flag
11044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11051 if test -z "$ac_cpp_err"; then
11052 ac_header_preproc=yes
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ac_header_preproc=no
11059 rm -f conftest.err conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11061 echo "${ECHO_T}$ac_header_preproc" >&6
11063 # So? What about this header?
11064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11066 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11067 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11069 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11070 ac_header_preproc=yes
11073 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11074 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11076 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11078 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11080 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11082 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11084 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11087 ## ------------------------------------------ ##
11088 ## Report this to the AC_PACKAGE_NAME lists. ##
11089 ## ------------------------------------------ ##
11092 sed "s/^/$as_me: WARNING: /" >&2
11095 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11096 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11102 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11103 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11106 if test $ac_cv_header_sys_mkdev_h = yes; then
11108 cat >>confdefs.h <<\_ACEOF
11109 #define MAJOR_IN_MKDEV 1
11116 if test $ac_cv_header_sys_mkdev_h = no; then
11117 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11118 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11119 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11120 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11124 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11126 # Is the header compilable?
11127 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11128 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 $ac_includes_default
11136 #include <sys/sysmacros.h>
11138 rm -f conftest.$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 ac_header_compiler=yes
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ac_header_compiler=no
11167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11169 echo "${ECHO_T}$ac_header_compiler" >&6
11171 # Is the header present?
11172 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11173 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11174 cat >conftest.$ac_ext <<_ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 #include <sys/sysmacros.h>
11182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } >/dev/null; then
11190 if test -s conftest.err; then
11191 ac_cpp_err=$ac_c_preproc_warn_flag
11192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11199 if test -z "$ac_cpp_err"; then
11200 ac_header_preproc=yes
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ac_header_preproc=no
11207 rm -f conftest.err conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6
11211 # So? What about this header?
11212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11214 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11217 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11218 ac_header_preproc=yes
11221 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11222 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11224 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11226 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11228 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11230 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11232 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11235 ## ------------------------------------------ ##
11236 ## Report this to the AC_PACKAGE_NAME lists. ##
11237 ## ------------------------------------------ ##
11240 sed "s/^/$as_me: WARNING: /" >&2
11243 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11244 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11251 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11254 if test $ac_cv_header_sys_sysmacros_h = yes; then
11256 cat >>confdefs.h <<\_ACEOF
11257 #define MAJOR_IN_SYSMACROS 1
11271 ac_header_dirent=no
11272 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11273 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11274 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11275 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 #include <sys/types.h>
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 eval "$as_ac_Header=yes"
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 eval "$as_ac_Header=no"
11326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11335 ac_header_dirent=$ac_hdr; break
11339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11340 if test $ac_header_dirent = dirent.h; then
11341 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11343 if test "${ac_cv_search_opendir+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 ac_func_search_save_LIBS=$LIBS
11347 ac_cv_search_opendir=no
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11355 /* Override any gcc2 internal prototype to avoid an error. */
11359 /* We use char because int might match the return type of a gcc2
11360 builtin and then its argument prototype would still apply. */
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_search_opendir="none required"
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11398 rm -f conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 if test "$ac_cv_search_opendir" = no; then
11401 for ac_lib in dir; do
11402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11410 /* Override any gcc2 internal prototype to avoid an error. */
11414 /* We use char because int might match the return type of a gcc2
11415 builtin and then its argument prototype would still apply. */
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 (eval $ac_link) 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -z "$ac_c_werror_flag"
11435 || test ! -s conftest.err'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 ac_cv_search_opendir="-l$ac_lib"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11454 rm -f conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_func_search_save_LIBS
11460 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11461 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11462 if test "$ac_cv_search_opendir" != no; then
11463 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11468 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11470 if test "${ac_cv_search_opendir+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 ac_func_search_save_LIBS=$LIBS
11474 ac_cv_search_opendir=no
11475 cat >conftest.$ac_ext <<_ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11482 /* Override any gcc2 internal prototype to avoid an error. */
11486 /* We use char because int might match the return type of a gcc2
11487 builtin and then its argument prototype would still apply. */
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>conftest.er1
11501 grep -v '^ *+' conftest.er1 >conftest.err
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag"
11507 || test ! -s conftest.err'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 ac_cv_search_opendir="none required"
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11525 rm -f conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 if test "$ac_cv_search_opendir" = no; then
11528 for ac_lib in x; do
11529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11537 /* Override any gcc2 internal prototype to avoid an error. */
11541 /* We use char because int might match the return type of a gcc2
11542 builtin and then its argument prototype would still apply. */
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -z "$ac_c_werror_flag"
11562 || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_search_opendir="-l$ac_lib"
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11581 rm -f conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_func_search_save_LIBS
11587 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11588 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11589 if test "$ac_cv_search_opendir" != no; then
11590 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11596 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11597 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11598 if test "${ac_cv_header_stat_broken+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <sys/types.h>
11608 #include <sys/stat.h>
11610 #if defined(S_ISBLK) && defined(S_IFDIR)
11611 # if S_ISBLK (S_IFDIR)
11616 #if defined(S_ISBLK) && defined(S_IFCHR)
11617 # if S_ISBLK (S_IFCHR)
11622 #if defined(S_ISLNK) && defined(S_IFREG)
11623 # if S_ISLNK (S_IFREG)
11628 #if defined(S_ISSOCK) && defined(S_IFREG)
11629 # if S_ISSOCK (S_IFREG)
11635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11636 $EGREP "You lose" >/dev/null 2>&1; then
11637 ac_cv_header_stat_broken=yes
11639 ac_cv_header_stat_broken=no
11644 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11645 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11646 if test $ac_cv_header_stat_broken = yes; then
11648 cat >>confdefs.h <<\_ACEOF
11649 #define STAT_MACROS_BROKEN 1
11654 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11655 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11656 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 #include <sys/types.h>
11666 #include <sys/wait.h>
11667 #ifndef WEXITSTATUS
11668 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11671 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11679 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11684 rm -f conftest.$ac_objext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11686 (eval $ac_compile) 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag"
11694 || test ! -s conftest.err'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_cv_header_sys_wait_h=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_header_sys_wait_h=no
11713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11716 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11717 if test $ac_cv_header_sys_wait_h = yes; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define HAVE_SYS_WAIT_H 1
11725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11727 if test "${ac_cv_header_time+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 #include <sys/types.h>
11737 #include <sys/time.h>
11743 if ((struct tm *) 0)
11749 rm -f conftest.$ac_objext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_header_time=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_header_time=no
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11781 echo "${ECHO_T}$ac_cv_header_time" >&6
11782 if test $ac_cv_header_time = yes; then
11784 cat >>confdefs.h <<\_ACEOF
11785 #define TIME_WITH_SYS_TIME 1
11791 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11792 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11793 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.$ac_ext <<_ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 $ac_includes_default
11806 static struct stat ac_aggr;
11807 if (ac_aggr.st_blksize)
11813 rm -f conftest.$ac_objext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815 (eval $ac_compile) 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag"
11823 || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_member_struct_stat_st_blksize=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 cat >conftest.$ac_ext <<_ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 $ac_includes_default
11850 static struct stat ac_aggr;
11851 if (sizeof ac_aggr.st_blksize)
11857 rm -f conftest.$ac_objext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859 (eval $ac_compile) 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -z "$ac_c_werror_flag"
11867 || test ! -s conftest.err'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_cv_member_struct_stat_st_blksize=yes
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ac_cv_member_struct_stat_st_blksize=no
11886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11891 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11892 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11899 cat >>confdefs.h <<\_ACEOF
11900 #define HAVE_ST_BLKSIZE 1
11906 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11907 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11908 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 $ac_includes_default
11921 static struct stat ac_aggr;
11922 if (ac_aggr.st_blocks)
11928 rm -f conftest.$ac_objext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930 (eval $ac_compile) 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag"
11938 || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest.$ac_objext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_member_struct_stat_st_blocks=yes
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11965 static struct stat ac_aggr;
11966 if (sizeof ac_aggr.st_blocks)
11972 rm -f conftest.$ac_objext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974 (eval $ac_compile) 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_c_werror_flag"
11982 || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest.$ac_objext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_member_struct_stat_st_blocks=yes
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11999 ac_cv_member_struct_stat_st_blocks=no
12001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12005 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12006 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12007 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12014 cat >>confdefs.h <<\_ACEOF
12015 #define HAVE_ST_BLOCKS 1
12020 "fileblocks.$ac_objext" | \
12021 *" fileblocks.$ac_objext" | \
12022 "fileblocks.$ac_objext "* | \
12023 *" fileblocks.$ac_objext "* ) ;;
12024 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12030 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12031 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12032 if test "${ac_cv_struct_tm+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <sys/types.h>
12047 struct tm *tp; tp->tm_sec;
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
12056 grep -v '^ *+' conftest.er1 >conftest.err
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag"
12062 || test ! -s conftest.err'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_cv_struct_tm=time.h
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 ac_cv_struct_tm=sys/time.h
12081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12083 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12084 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12085 if test $ac_cv_struct_tm = sys/time.h; then
12087 cat >>confdefs.h <<\_ACEOF
12088 #define TM_IN_SYS_TIME 1
12093 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12094 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12095 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 #include <sys/types.h>
12105 #include <$ac_cv_struct_tm>
12111 static struct tm ac_aggr;
12112 if (ac_aggr.tm_zone)
12118 rm -f conftest.$ac_objext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120 (eval $ac_compile) 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_member_struct_tm_tm_zone=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 cat >conftest.$ac_ext <<_ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 #include <sys/types.h>
12152 #include <$ac_cv_struct_tm>
12158 static struct tm ac_aggr;
12159 if (sizeof ac_aggr.tm_zone)
12165 rm -f conftest.$ac_objext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167 (eval $ac_compile) 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -z "$ac_c_werror_flag"
12175 || test ! -s conftest.err'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; } &&
12181 { ac_try='test -s conftest.$ac_objext'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_cv_member_struct_tm_tm_zone=yes
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ac_cv_member_struct_tm_tm_zone=no
12194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12199 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12200 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_STRUCT_TM_TM_ZONE 1
12209 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12211 cat >>confdefs.h <<\_ACEOF
12212 #define HAVE_TM_ZONE 1
12216 echo "$as_me:$LINENO: checking for tzname" >&5
12217 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12218 if test "${ac_cv_var_tzname+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12228 #ifndef tzname /* For SGI. */
12229 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12240 rm -f conftest.$ac_objext conftest$ac_exeext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242 (eval $ac_link) 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag"
12250 || test ! -s conftest.err'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; } &&
12256 { ac_try='test -s conftest$ac_exeext'
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12262 ac_cv_var_tzname=yes
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_var_tzname=no
12269 rm -f conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12273 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12274 if test $ac_cv_var_tzname = yes; then
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_TZNAME 1
12284 echo "$as_me:$LINENO: checking for utime.h" >&5
12285 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12286 if test "${ba_cv_header_utime_h+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12296 #include <sys/types.h>
12306 rm -f conftest.$ac_objext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>conftest.er1
12310 grep -v '^ *+' conftest.er1 >conftest.err
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
12315 { ac_try='test -z "$ac_c_werror_flag"
12316 || test ! -s conftest.err'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest.$ac_objext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 ba_cv_header_utime_h=yes
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ba_cv_header_utime_h=no
12335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12338 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12339 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_UTIME_H 1
12344 echo "$as_me:$LINENO: checking for socklen_t" >&5
12345 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12346 if test "${ba_cv_header_socklen_t+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12356 #include <sys/types.h>
12357 #include <sys/socket.h>
12366 rm -f conftest.$ac_objext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368 (eval $ac_compile) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest.$ac_objext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 ba_cv_header_socklen_t=yes
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ba_cv_header_socklen_t=no
12395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12397 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12398 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12399 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_SOCKLEN_T 1
12404 echo "$as_me:$LINENO: checking for bigendian" >&5
12405 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12406 if test "${ba_cv_bigendian+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 if test "$cross_compiling" = yes; then
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12420 rm -f conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 ba_cv_bigendian=yes
12433 echo "$as_me: program exited with status $ac_status" >&5
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ( exit $ac_status )
12440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12443 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12444 echo "${ECHO_T}$ba_cv_bigendian" >&6
12445 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12446 #define HAVE_BIGENDIAN 1
12451 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12452 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12453 if test "${ac_cv_c_const+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12466 /* FIXME: Include the comments suggested by Paul. */
12467 #ifndef __cplusplus
12468 /* Ultrix mips cc rejects this. */
12469 typedef int charset[2];
12471 /* SunOS 4.1.1 cc rejects this. */
12472 char const *const *ccp;
12474 /* NEC SVR4.0.2 mips cc rejects this. */
12475 struct point {int x, y;};
12476 static struct point const zero = {0,0};
12477 /* AIX XL C 1.02.0.0 rejects this.
12478 It does not let you subtract one const X* pointer from another in
12479 an arm of an if-expression whose if-part is not a constant
12481 const char *g = "string";
12482 ccp = &g + (g ? g-g : 0);
12483 /* HPUX 7.0 cc rejects these. */
12486 ccp = (char const *const *) p;
12487 { /* SCO 3.2v4 cc rejects this. */
12489 char const *s = 0 ? (char *) 0 : (char const *) 0;
12493 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12494 int x[] = {25, 17};
12495 const int *foo = &x[0];
12498 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12499 typedef const int *iptr;
12503 { /* AIX XL C 1.02.0.0 rejects this saying
12504 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12505 struct s { int j; const int *ap[3]; };
12506 struct s *b; b->j = 5;
12508 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12509 const int foo = 10;
12517 rm -f conftest.$ac_objext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12519 (eval $ac_compile) 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag"
12527 || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest.$ac_objext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12549 echo "${ECHO_T}$ac_cv_c_const" >&6
12550 if test $ac_cv_c_const = no; then
12552 cat >>confdefs.h <<\_ACEOF
12560 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12561 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12563 # The order of these tests is important.
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include <sys/statvfs.h>
12571 #include <sys/fstyp.h>
12573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12576 grep -v '^ *+' conftest.er1 >conftest.err
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } >/dev/null; then
12581 if test -s conftest.err; then
12582 ac_cpp_err=$ac_c_preproc_warn_flag
12583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12590 if test -z "$ac_cpp_err"; then
12591 cat >>confdefs.h <<\_ACEOF
12592 #define FSTYPE_STATVFS 1
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12601 rm -f conftest.err conftest.$ac_ext
12602 if test $fstype = no; then
12603 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 #include <sys/statfs.h>
12610 #include <sys/fstyp.h>
12612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } >/dev/null; then
12620 if test -s conftest.err; then
12621 ac_cpp_err=$ac_c_preproc_warn_flag
12622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12629 if test -z "$ac_cpp_err"; then
12630 cat >>confdefs.h <<\_ACEOF
12631 #define FSTYPE_USG_STATFS 1
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12640 rm -f conftest.err conftest.$ac_ext
12642 if test $fstype = no; then
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #include <sys/statfs.h>
12650 #include <sys/vmount.h>
12652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } >/dev/null; then
12660 if test -s conftest.err; then
12661 ac_cpp_err=$ac_c_preproc_warn_flag
12662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12669 if test -z "$ac_cpp_err"; then
12670 cat >>confdefs.h <<\_ACEOF
12671 #define FSTYPE_AIX_STATFS 1
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12680 rm -f conftest.err conftest.$ac_ext
12682 if test $fstype = no; then
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 #include <mntent.h>
12691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } >/dev/null; then
12699 if test -s conftest.err; then
12700 ac_cpp_err=$ac_c_preproc_warn_flag
12701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12708 if test -z "$ac_cpp_err"; then
12709 cat >>confdefs.h <<\_ACEOF
12710 #define FSTYPE_MNTENT 1
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12719 rm -f conftest.err conftest.$ac_ext
12721 if test $fstype = no; then
12722 cat >conftest.$ac_ext <<_ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728 #include <sys/mount.h>
12731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12732 $EGREP "f_type;" >/dev/null 2>&1; then
12733 cat >>confdefs.h <<\_ACEOF
12734 #define FSTYPE_STATFS 1
12741 if test $fstype = no; then
12742 cat >conftest.$ac_ext <<_ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12748 #include <sys/mount.h>
12749 #include <sys/fs_types.h>
12751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } >/dev/null; then
12759 if test -s conftest.err; then
12760 ac_cpp_err=$ac_c_preproc_warn_flag
12761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12768 if test -z "$ac_cpp_err"; then
12769 cat >>confdefs.h <<\_ACEOF
12770 #define FSTYPE_GETMNT 1
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12779 rm -f conftest.err conftest.$ac_ext
12781 echo "$as_me:$LINENO: result: $fstype" >&5
12782 echo "${ECHO_T}$fstype" >&6
12784 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12785 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12786 if test "${ac_cv_type_signal+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 #include <sys/types.h>
12796 #include <signal.h>
12801 extern "C" void (*signal (int, void (*)(int)))(int);
12803 void (*signal ()) ();
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>conftest.er1
12818 grep -v '^ *+' conftest.er1 >conftest.err
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -z "$ac_c_werror_flag"
12824 || test ! -s conftest.err'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest.$ac_objext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_type_signal=void
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_cv_type_signal=int
12843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12845 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12846 echo "${ECHO_T}$ac_cv_type_signal" >&6
12848 cat >>confdefs.h <<_ACEOF
12849 #define RETSIGTYPE $ac_cv_type_signal
12854 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12855 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12856 if test "${bash_cv_signal_vintage+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 cat >conftest.$ac_ext <<_ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 #include <signal.h>
12872 struct sigaction sa;
12873 sigemptyset(&ss); sigsuspend(&ss);
12874 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12875 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>conftest.er1
12885 grep -v '^ *+' conftest.er1 >conftest.err
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -z "$ac_c_werror_flag"
12891 || test ! -s conftest.err'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 bash_cv_signal_vintage=posix
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 #include <signal.h>
12920 int mask = sigmask(SIGINT);
12921 sigsetmask(mask); sigblock(mask); sigpause(mask);
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>conftest.er1
12931 grep -v '^ *+' conftest.er1 >conftest.err
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag"
12937 || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest$ac_exeext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 bash_cv_signal_vintage=4.2bsd
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12962 #include <signal.h>
12963 RETSIGTYPE foo() { }
12968 int mask = sigmask(SIGINT);
12969 sigset(SIGINT, foo); sigrelse(SIGINT);
12970 sighold(SIGINT); sigpause(SIGINT);
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1 >conftest.err
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 bash_cv_signal_vintage=svr3
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 bash_cv_signal_vintage=v7
13006 rm -f conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13010 rm -f conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13014 rm -f conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13020 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13021 if test "$bash_cv_signal_vintage" = posix; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_POSIX_SIGNALS 1
13026 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_BSD_SIGNALS 1
13031 elif test "$bash_cv_signal_vintage" = svr3; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_USG_SIGHOLD 1
13038 echo "$as_me:$LINENO: checking for mode_t" >&5
13039 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13040 if test "${ac_cv_type_mode_t+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 cat >conftest.$ac_ext <<_ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 $ac_includes_default
13055 if (sizeof (mode_t))
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest.$ac_objext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_type_mode_t=yes
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 ac_cv_type_mode_t=no
13090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13092 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13093 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13094 if test $ac_cv_type_mode_t = yes; then
13098 cat >>confdefs.h <<_ACEOF
13104 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13105 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13106 if test "${ac_cv_type_uid_t+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <sys/types.h>
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119 $EGREP "uid_t" >/dev/null 2>&1; then
13120 ac_cv_type_uid_t=yes
13122 ac_cv_type_uid_t=no
13127 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13128 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13129 if test $ac_cv_type_uid_t = no; then
13131 cat >>confdefs.h <<\_ACEOF
13136 cat >>confdefs.h <<\_ACEOF
13142 echo "$as_me:$LINENO: checking for size_t" >&5
13143 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13144 if test "${ac_cv_type_size_t+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 $ac_includes_default
13159 if (sizeof (size_t))
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag"
13175 || test ! -s conftest.err'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest.$ac_objext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_type_size_t=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_cv_type_size_t=no
13194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13197 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13198 if test $ac_cv_type_size_t = yes; then
13202 cat >>confdefs.h <<_ACEOF
13203 #define size_t unsigned
13208 echo "$as_me:$LINENO: checking for pid_t" >&5
13209 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13210 if test "${ac_cv_type_pid_t+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 $ac_includes_default
13225 if (sizeof (pid_t))
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag"
13241 || test ! -s conftest.err'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_type_pid_t=yes
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 ac_cv_type_pid_t=no
13260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13263 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13264 if test $ac_cv_type_pid_t = yes; then
13268 cat >>confdefs.h <<_ACEOF
13274 echo "$as_me:$LINENO: checking for off_t" >&5
13275 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13276 if test "${ac_cv_type_off_t+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 $ac_includes_default
13291 if (sizeof (off_t))
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>conftest.er1
13301 grep -v '^ *+' conftest.er1 >conftest.err
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_type_off_t=yes
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 ac_cv_type_off_t=no
13326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13329 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13330 if test $ac_cv_type_off_t = yes; then
13334 cat >>confdefs.h <<_ACEOF
13340 echo "$as_me:$LINENO: checking for ino_t" >&5
13341 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13342 if test "${ac_cv_type_ino_t+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 $ac_includes_default
13357 if (sizeof (ino_t))
13363 rm -f conftest.$ac_objext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13365 (eval $ac_compile) 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag"
13373 || test ! -s conftest.err'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest.$ac_objext'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 ac_cv_type_ino_t=yes
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 ac_cv_type_ino_t=no
13392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13394 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13395 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13396 if test $ac_cv_type_ino_t = yes; then
13400 cat >>confdefs.h <<_ACEOF
13401 #define ino_t unsigned long
13406 echo "$as_me:$LINENO: checking for dev_t" >&5
13407 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13408 if test "${ac_cv_type_dev_t+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 $ac_includes_default
13423 if (sizeof (dev_t))
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag"
13439 || test ! -s conftest.err'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } &&
13445 { ac_try='test -s conftest.$ac_objext'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 ac_cv_type_dev_t=yes
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_cv_type_dev_t=no
13458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13460 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13461 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13462 if test $ac_cv_type_dev_t = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define dev_t unsigned long
13472 echo "$as_me:$LINENO: checking for daddr_t" >&5
13473 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13474 if test "${ac_cv_type_daddr_t+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13489 if (sizeof (daddr_t))
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497 (eval $ac_compile) 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_type_daddr_t=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_type_daddr_t=no
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13527 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13528 if test $ac_cv_type_daddr_t = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define daddr_t long
13538 echo "$as_me:$LINENO: checking for major_t" >&5
13539 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13540 if test "${ac_cv_type_major_t+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 $ac_includes_default
13555 if (sizeof (major_t))
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563 (eval $ac_compile) 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_type_major_t=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_cv_type_major_t=no
13590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13592 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13593 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13594 if test $ac_cv_type_major_t = yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define major_t int
13604 echo "$as_me:$LINENO: checking for minor_t" >&5
13605 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13606 if test "${ac_cv_type_minor_t+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13621 if (sizeof (minor_t))
13627 rm -f conftest.$ac_objext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>conftest.er1
13631 grep -v '^ *+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_type_minor_t=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_type_minor_t=no
13656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13658 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13659 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13660 if test $ac_cv_type_minor_t = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 #define minor_t int
13670 echo "$as_me:$LINENO: checking for ssize_t" >&5
13671 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13672 if test "${ac_cv_type_ssize_t+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 cat >conftest.$ac_ext <<_ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13687 if (sizeof (ssize_t))
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695 (eval $ac_compile) 2>conftest.er1
13697 grep -v '^ *+' conftest.er1 >conftest.err
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_c_werror_flag"
13703 || test ! -s conftest.err'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest.$ac_objext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_cv_type_ssize_t=yes
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_cv_type_ssize_t=no
13722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13724 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13725 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13726 if test $ac_cv_type_ssize_t = yes; then
13730 cat >>confdefs.h <<_ACEOF
13731 #define ssize_t int
13736 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13737 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13738 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 $ac_includes_default
13751 static struct stat ac_aggr;
13752 if (ac_aggr.st_blocks)
13758 rm -f conftest.$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>conftest.er1
13762 grep -v '^ *+' conftest.er1 >conftest.err
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_member_struct_stat_st_blocks=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13795 static struct stat ac_aggr;
13796 if (sizeof ac_aggr.st_blocks)
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag"
13812 || test ! -s conftest.err'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_member_struct_stat_st_blocks=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_member_struct_stat_st_blocks=no
13831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13836 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13837 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13844 cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_ST_BLOCKS 1
13850 "fileblocks.$ac_objext" | \
13851 *" fileblocks.$ac_objext" | \
13852 "fileblocks.$ac_objext "* | \
13853 *" fileblocks.$ac_objext "* ) ;;
13854 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13861 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13862 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13863 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13876 static struct stat ac_aggr;
13877 if (ac_aggr.st_rdev)
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885 (eval $ac_compile) 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag"
13893 || test ! -s conftest.err'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest.$ac_objext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_cv_member_struct_stat_st_rdev=yes
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13910 cat >conftest.$ac_ext <<_ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13916 $ac_includes_default
13920 static struct stat ac_aggr;
13921 if (sizeof ac_aggr.st_rdev)
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag"
13937 || test ! -s conftest.err'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest.$ac_objext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_cv_member_struct_stat_st_rdev=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_cv_member_struct_stat_st_rdev=no
13956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13961 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13962 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13964 cat >>confdefs.h <<_ACEOF
13965 #define HAVE_STRUCT_STAT_ST_RDEV 1
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_ST_RDEV 1
13976 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13977 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13978 if test "${ac_cv_struct_tm+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 #include <sys/types.h>
13993 struct tm *tp; tp->tm_sec;
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>conftest.er1
14002 grep -v '^ *+' conftest.er1 >conftest.err
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag"
14008 || test ! -s conftest.err'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_cv_struct_tm=time.h
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_cv_struct_tm=sys/time.h
14027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14029 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14030 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14031 if test $ac_cv_struct_tm = sys/time.h; then
14033 cat >>confdefs.h <<\_ACEOF
14034 #define TM_IN_SYS_TIME 1
14039 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14040 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14041 if test "${ac_cv_c_const+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14054 /* FIXME: Include the comments suggested by Paul. */
14055 #ifndef __cplusplus
14056 /* Ultrix mips cc rejects this. */
14057 typedef int charset[2];
14059 /* SunOS 4.1.1 cc rejects this. */
14060 char const *const *ccp;
14062 /* NEC SVR4.0.2 mips cc rejects this. */
14063 struct point {int x, y;};
14064 static struct point const zero = {0,0};
14065 /* AIX XL C 1.02.0.0 rejects this.
14066 It does not let you subtract one const X* pointer from another in
14067 an arm of an if-expression whose if-part is not a constant
14069 const char *g = "string";
14070 ccp = &g + (g ? g-g : 0);
14071 /* HPUX 7.0 cc rejects these. */
14074 ccp = (char const *const *) p;
14075 { /* SCO 3.2v4 cc rejects this. */
14077 char const *s = 0 ? (char *) 0 : (char const *) 0;
14081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14082 int x[] = {25, 17};
14083 const int *foo = &x[0];
14086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14087 typedef const int *iptr;
14091 { /* AIX XL C 1.02.0.0 rejects this saying
14092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14093 struct s { int j; const int *ap[3]; };
14094 struct s *b; b->j = 5;
14096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14097 const int foo = 10;
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>conftest.er1
14109 grep -v '^ *+' conftest.er1 >conftest.err
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag"
14115 || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14136 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14137 echo "${ECHO_T}$ac_cv_c_const" >&6
14138 if test $ac_cv_c_const = no; then
14140 cat >>confdefs.h <<\_ACEOF
14148 echo "$as_me:$LINENO: checking for char" >&5
14149 echo $ECHO_N "checking for char... $ECHO_C" >&6
14150 if test "${ac_cv_type_char+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 cat >conftest.$ac_ext <<_ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 $ac_includes_default
14171 rm -f conftest.$ac_objext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14173 (eval $ac_compile) 2>conftest.er1
14175 grep -v '^ *+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest.$ac_objext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_cv_type_char=yes
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14202 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14203 echo "${ECHO_T}$ac_cv_type_char" >&6
14205 echo "$as_me:$LINENO: checking size of char" >&5
14206 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14207 if test "${ac_cv_sizeof_char+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 if test "$ac_cv_type_char" = yes; then
14211 # The cast to unsigned long works around a bug in the HP C Compiler
14212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14214 # This bug is HP SR number 8606223364.
14215 if test "$cross_compiling" = yes; then
14216 # Depending upon the size, compute the lo and hi bounds.
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 $ac_includes_default
14227 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14234 rm -f conftest.$ac_objext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14236 (eval $ac_compile) 2>conftest.er1
14238 grep -v '^ *+' conftest.er1 >conftest.err
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } &&
14243 { ac_try='test -z "$ac_c_werror_flag"
14244 || test ! -s conftest.err'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest.$ac_objext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14258 cat >conftest.$ac_ext <<_ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 $ac_includes_default
14268 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_hi=$ac_mid; break
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 ac_lo=`expr $ac_mid + 1`
14303 if test $ac_lo -le $ac_mid; then
14307 ac_mid=`expr 2 '*' $ac_mid + 1`
14309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 $ac_includes_default
14325 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>conftest.er1
14336 grep -v '^ *+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag"
14342 || test ! -s conftest.err'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14366 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag"
14383 || test ! -s conftest.err'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 ac_lo=$ac_mid; break
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_hi=`expr '(' $ac_mid ')' - 1`
14401 if test $ac_mid -le $ac_hi; then
14405 ac_mid=`expr 2 '*' $ac_mid`
14407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 # Binary search between lo and hi bounds.
14419 while test "x$ac_lo" != "x$ac_hi"; do
14420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 $ac_includes_default
14431 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_lo=`expr '(' $ac_mid ')' + 1`
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 ?*) ac_cv_sizeof_char=$ac_lo;;
14471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14472 See \`config.log' for more details." >&5
14473 echo "$as_me: error: cannot compute sizeof (char), 77
14474 See \`config.log' for more details." >&2;}
14475 { (exit 1); exit 1; }; } ;;
14478 if test "$cross_compiling" = yes; then
14479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14480 See \`config.log' for more details." >&5
14481 echo "$as_me: error: cannot run test program while cross compiling
14482 See \`config.log' for more details." >&2;}
14483 { (exit 1); exit 1; }; }
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 $ac_includes_default
14492 long longval () { return (long) (sizeof (char)); }
14493 unsigned long ulongval () { return (long) (sizeof (char)); }
14495 #include <stdlib.h>
14500 FILE *f = fopen ("conftest.val", "w");
14503 if (((long) (sizeof (char))) < 0)
14505 long i = longval ();
14506 if (i != ((long) (sizeof (char))))
14508 fprintf (f, "%ld\n", i);
14512 unsigned long i = ulongval ();
14513 if (i != ((long) (sizeof (char))))
14515 fprintf (f, "%lu\n", i);
14517 exit (ferror (f) || fclose (f) != 0);
14523 rm -f conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_sizeof_char=`cat conftest.val`
14536 echo "$as_me: program exited with status $ac_status" >&5
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ( exit $ac_status )
14541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14542 See \`config.log' for more details." >&5
14543 echo "$as_me: error: cannot compute sizeof (char), 77
14544 See \`config.log' for more details." >&2;}
14545 { (exit 1); exit 1; }; }
14547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14552 ac_cv_sizeof_char=0
14555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14556 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14557 cat >>confdefs.h <<_ACEOF
14558 #define SIZEOF_CHAR $ac_cv_sizeof_char
14562 echo "$as_me:$LINENO: checking for short int" >&5
14563 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14564 if test "${ac_cv_type_short_int+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 $ac_includes_default
14577 if ((short int *) 0)
14579 if (sizeof (short int))
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587 (eval $ac_compile) 2>conftest.er1
14589 grep -v '^ *+' conftest.er1 >conftest.err
14591 cat conftest.err >&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
14594 { ac_try='test -z "$ac_c_werror_flag"
14595 || test ! -s conftest.err'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest.$ac_objext'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_cv_type_short_int=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_type_short_int=no
14614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14617 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14619 echo "$as_me:$LINENO: checking size of short int" >&5
14620 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14621 if test "${ac_cv_sizeof_short_int+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 if test "$ac_cv_type_short_int" = yes; then
14625 # The cast to unsigned long works around a bug in the HP C Compiler
14626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14628 # This bug is HP SR number 8606223364.
14629 if test "$cross_compiling" = yes; then
14630 # Depending upon the size, compute the lo and hi bounds.
14631 cat >conftest.$ac_ext <<_ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 $ac_includes_default
14641 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14652 grep -v '^ *+' conftest.er1 >conftest.err
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 $ac_includes_default
14682 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -z "$ac_c_werror_flag"
14699 || test ! -s conftest.err'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_hi=$ac_mid; break
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_lo=`expr $ac_mid + 1`
14717 if test $ac_lo -le $ac_mid; then
14721 ac_mid=`expr 2 '*' $ac_mid + 1`
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 $ac_includes_default
14739 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>conftest.er1
14750 grep -v '^ *+' conftest.er1 >conftest.err
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -z "$ac_c_werror_flag"
14756 || test ! -s conftest.err'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest.$ac_objext'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14780 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>conftest.er1
14791 grep -v '^ *+' conftest.er1 >conftest.err
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -z "$ac_c_werror_flag"
14797 || test ! -s conftest.err'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_lo=$ac_mid; break
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14814 ac_hi=`expr '(' $ac_mid ')' - 1`
14815 if test $ac_mid -le $ac_hi; then
14819 ac_mid=`expr 2 '*' $ac_mid`
14821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14832 # Binary search between lo and hi bounds.
14833 while test "x$ac_lo" != "x$ac_hi"; do
14834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14835 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $ac_includes_default
14845 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_lo=`expr '(' $ac_mid ')' + 1`
14881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14884 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14885 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14886 See \`config.log' for more details." >&5
14887 echo "$as_me: error: cannot compute sizeof (short int), 77
14888 See \`config.log' for more details." >&2;}
14889 { (exit 1); exit 1; }; } ;;
14892 if test "$cross_compiling" = yes; then
14893 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14894 See \`config.log' for more details." >&5
14895 echo "$as_me: error: cannot run test program while cross compiling
14896 See \`config.log' for more details." >&2;}
14897 { (exit 1); exit 1; }; }
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 $ac_includes_default
14906 long longval () { return (long) (sizeof (short int)); }
14907 unsigned long ulongval () { return (long) (sizeof (short int)); }
14909 #include <stdlib.h>
14914 FILE *f = fopen ("conftest.val", "w");
14917 if (((long) (sizeof (short int))) < 0)
14919 long i = longval ();
14920 if (i != ((long) (sizeof (short int))))
14922 fprintf (f, "%ld\n", i);
14926 unsigned long i = ulongval ();
14927 if (i != ((long) (sizeof (short int))))
14929 fprintf (f, "%lu\n", i);
14931 exit (ferror (f) || fclose (f) != 0);
14937 rm -f conftest$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_cv_sizeof_short_int=`cat conftest.val`
14950 echo "$as_me: program exited with status $ac_status" >&5
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ( exit $ac_status )
14955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14956 See \`config.log' for more details." >&5
14957 echo "$as_me: error: cannot compute sizeof (short int), 77
14958 See \`config.log' for more details." >&2;}
14959 { (exit 1); exit 1; }; }
14961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14966 ac_cv_sizeof_short_int=0
14969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14970 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14971 cat >>confdefs.h <<_ACEOF
14972 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14976 echo "$as_me:$LINENO: checking for int" >&5
14977 echo $ECHO_N "checking for int... $ECHO_C" >&6
14978 if test "${ac_cv_type_int+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 cat >conftest.$ac_ext <<_ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 $ac_includes_default
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15030 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15031 echo "${ECHO_T}$ac_cv_type_int" >&6
15033 echo "$as_me:$LINENO: checking size of int" >&5
15034 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15035 if test "${ac_cv_sizeof_int+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 if test "$ac_cv_type_int" = yes; then
15039 # The cast to unsigned long works around a bug in the HP C Compiler
15040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15042 # This bug is HP SR number 8606223364.
15043 if test "$cross_compiling" = yes; then
15044 # Depending upon the size, compute the lo and hi bounds.
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 $ac_includes_default
15055 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15062 rm -f conftest.$ac_objext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064 (eval $ac_compile) 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
15071 { ac_try='test -z "$ac_c_werror_flag"
15072 || test ! -s conftest.err'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest.$ac_objext'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 $ac_includes_default
15096 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15103 rm -f conftest.$ac_objext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15105 (eval $ac_compile) 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag"
15113 || test ! -s conftest.err'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest.$ac_objext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_hi=$ac_mid; break
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 ac_lo=`expr $ac_mid + 1`
15131 if test $ac_lo -le $ac_mid; then
15135 ac_mid=`expr 2 '*' $ac_mid + 1`
15137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 $ac_includes_default
15153 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag"
15170 || test ! -s conftest.err'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest.$ac_objext'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 $ac_includes_default
15194 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203 (eval $ac_compile) 2>conftest.er1
15205 grep -v '^ *+' conftest.er1 >conftest.err
15207 cat conftest.err >&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } &&
15210 { ac_try='test -z "$ac_c_werror_flag"
15211 || test ! -s conftest.err'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; } &&
15217 { ac_try='test -s conftest.$ac_objext'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15223 ac_lo=$ac_mid; break
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_hi=`expr '(' $ac_mid ')' - 1`
15229 if test $ac_mid -le $ac_hi; then
15233 ac_mid=`expr 2 '*' $ac_mid`
15235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 # Binary search between lo and hi bounds.
15247 while test "x$ac_lo" != "x$ac_hi"; do
15248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 $ac_includes_default
15259 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15266 rm -f conftest.$ac_objext
15267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15268 (eval $ac_compile) 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -z "$ac_c_werror_flag"
15276 || test ! -s conftest.err'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; } &&
15282 { ac_try='test -s conftest.$ac_objext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_lo=`expr '(' $ac_mid ')' + 1`
15295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15298 ?*) ac_cv_sizeof_int=$ac_lo;;
15299 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15300 See \`config.log' for more details." >&5
15301 echo "$as_me: error: cannot compute sizeof (int), 77
15302 See \`config.log' for more details." >&2;}
15303 { (exit 1); exit 1; }; } ;;
15306 if test "$cross_compiling" = yes; then
15307 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15308 See \`config.log' for more details." >&5
15309 echo "$as_me: error: cannot run test program while cross compiling
15310 See \`config.log' for more details." >&2;}
15311 { (exit 1); exit 1; }; }
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 $ac_includes_default
15320 long longval () { return (long) (sizeof (int)); }
15321 unsigned long ulongval () { return (long) (sizeof (int)); }
15323 #include <stdlib.h>
15328 FILE *f = fopen ("conftest.val", "w");
15331 if (((long) (sizeof (int))) < 0)
15333 long i = longval ();
15334 if (i != ((long) (sizeof (int))))
15336 fprintf (f, "%ld\n", i);
15340 unsigned long i = ulongval ();
15341 if (i != ((long) (sizeof (int))))
15343 fprintf (f, "%lu\n", i);
15345 exit (ferror (f) || fclose (f) != 0);
15351 rm -f conftest$ac_exeext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_cv_sizeof_int=`cat conftest.val`
15364 echo "$as_me: program exited with status $ac_status" >&5
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ( exit $ac_status )
15369 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15370 See \`config.log' for more details." >&5
15371 echo "$as_me: error: cannot compute sizeof (int), 77
15372 See \`config.log' for more details." >&2;}
15373 { (exit 1); exit 1; }; }
15375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15383 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15384 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15385 cat >>confdefs.h <<_ACEOF
15386 #define SIZEOF_INT $ac_cv_sizeof_int
15390 echo "$as_me:$LINENO: checking for long int" >&5
15391 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15392 if test "${ac_cv_type_long_int+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 $ac_includes_default
15405 if ((long int *) 0)
15407 if (sizeof (long int))
15413 rm -f conftest.$ac_objext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415 (eval $ac_compile) 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest.$ac_objext'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_type_long_int=yes
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_type_long_int=no
15442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15444 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15445 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15447 echo "$as_me:$LINENO: checking size of long int" >&5
15448 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15449 if test "${ac_cv_sizeof_long_int+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 if test "$ac_cv_type_long_int" = yes; then
15453 # The cast to unsigned long works around a bug in the HP C Compiler
15454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15456 # This bug is HP SR number 8606223364.
15457 if test "$cross_compiling" = yes; then
15458 # Depending upon the size, compute the lo and hi bounds.
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15469 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15476 rm -f conftest.$ac_objext
15477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478 (eval $ac_compile) 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag"
15486 || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 $ac_includes_default
15510 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15517 rm -f conftest.$ac_objext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15519 (eval $ac_compile) 2>conftest.er1
15521 grep -v '^ *+' conftest.er1 >conftest.err
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag"
15527 || test ! -s conftest.err'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest.$ac_objext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_hi=$ac_mid; break
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_lo=`expr $ac_mid + 1`
15545 if test $ac_lo -le $ac_mid; then
15549 ac_mid=`expr 2 '*' $ac_mid + 1`
15551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 cat >conftest.$ac_ext <<_ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15563 $ac_includes_default
15567 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15574 rm -f conftest.$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag"
15584 || test ! -s conftest.err'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try='test -s conftest.$ac_objext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 $ac_includes_default
15608 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617 (eval $ac_compile) 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag"
15625 || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_lo=$ac_mid; break
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_hi=`expr '(' $ac_mid ')' - 1`
15643 if test $ac_mid -le $ac_hi; then
15647 ac_mid=`expr 2 '*' $ac_mid`
15649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 # Binary search between lo and hi bounds.
15661 while test "x$ac_lo" != "x$ac_hi"; do
15662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 $ac_includes_default
15673 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15680 rm -f conftest.$ac_objext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_c_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest.$ac_objext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_lo=`expr '(' $ac_mid ')' + 1`
15709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15712 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15713 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15714 See \`config.log' for more details." >&5
15715 echo "$as_me: error: cannot compute sizeof (long int), 77
15716 See \`config.log' for more details." >&2;}
15717 { (exit 1); exit 1; }; } ;;
15720 if test "$cross_compiling" = yes; then
15721 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15722 See \`config.log' for more details." >&5
15723 echo "$as_me: error: cannot run test program while cross compiling
15724 See \`config.log' for more details." >&2;}
15725 { (exit 1); exit 1; }; }
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 $ac_includes_default
15734 long longval () { return (long) (sizeof (long int)); }
15735 unsigned long ulongval () { return (long) (sizeof (long int)); }
15737 #include <stdlib.h>
15742 FILE *f = fopen ("conftest.val", "w");
15745 if (((long) (sizeof (long int))) < 0)
15747 long i = longval ();
15748 if (i != ((long) (sizeof (long int))))
15750 fprintf (f, "%ld\n", i);
15754 unsigned long i = ulongval ();
15755 if (i != ((long) (sizeof (long int))))
15757 fprintf (f, "%lu\n", i);
15759 exit (ferror (f) || fclose (f) != 0);
15765 rm -f conftest$ac_exeext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767 (eval $ac_link) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_sizeof_long_int=`cat conftest.val`
15778 echo "$as_me: program exited with status $ac_status" >&5
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ( exit $ac_status )
15783 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15784 See \`config.log' for more details." >&5
15785 echo "$as_me: error: cannot compute sizeof (long int), 77
15786 See \`config.log' for more details." >&2;}
15787 { (exit 1); exit 1; }; }
15789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15794 ac_cv_sizeof_long_int=0
15797 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15798 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15799 cat >>confdefs.h <<_ACEOF
15800 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15804 echo "$as_me:$LINENO: checking for long long int" >&5
15805 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15806 if test "${ac_cv_type_long_long_int+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 $ac_includes_default
15819 if ((long long int *) 0)
15821 if (sizeof (long long int))
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_type_long_long_int=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_cv_type_long_long_int=no
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15858 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15859 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15861 echo "$as_me:$LINENO: checking size of long long int" >&5
15862 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15863 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 if test "$ac_cv_type_long_long_int" = yes; then
15867 # The cast to unsigned long works around a bug in the HP C Compiler
15868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15870 # This bug is HP SR number 8606223364.
15871 if test "$cross_compiling" = yes; then
15872 # Depending upon the size, compute the lo and hi bounds.
15873 cat >conftest.$ac_ext <<_ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 $ac_includes_default
15883 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15890 rm -f conftest.$ac_objext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892 (eval $ac_compile) 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag"
15900 || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 $ac_includes_default
15924 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_hi=$ac_mid; break
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_lo=`expr $ac_mid + 1`
15959 if test $ac_lo -le $ac_mid; then
15963 ac_mid=`expr 2 '*' $ac_mid + 1`
15965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 $ac_includes_default
15981 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15988 rm -f conftest.$ac_objext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15990 (eval $ac_compile) 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -z "$ac_c_werror_flag"
15998 || test ! -s conftest.err'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16022 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031 (eval $ac_compile) 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag"
16039 || test ! -s conftest.err'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_lo=$ac_mid; break
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_hi=`expr '(' $ac_mid ')' - 1`
16057 if test $ac_mid -le $ac_hi; then
16061 ac_mid=`expr 2 '*' $ac_mid`
16063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16074 # Binary search between lo and hi bounds.
16075 while test "x$ac_lo" != "x$ac_hi"; do
16076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 $ac_includes_default
16087 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_lo=`expr '(' $ac_mid ')' + 1`
16123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16127 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16128 See \`config.log' for more details." >&5
16129 echo "$as_me: error: cannot compute sizeof (long long int), 77
16130 See \`config.log' for more details." >&2;}
16131 { (exit 1); exit 1; }; } ;;
16134 if test "$cross_compiling" = yes; then
16135 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16136 See \`config.log' for more details." >&5
16137 echo "$as_me: error: cannot run test program while cross compiling
16138 See \`config.log' for more details." >&2;}
16139 { (exit 1); exit 1; }; }
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 $ac_includes_default
16148 long longval () { return (long) (sizeof (long long int)); }
16149 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16151 #include <stdlib.h>
16156 FILE *f = fopen ("conftest.val", "w");
16159 if (((long) (sizeof (long long int))) < 0)
16161 long i = longval ();
16162 if (i != ((long) (sizeof (long long int))))
16164 fprintf (f, "%ld\n", i);
16168 unsigned long i = ulongval ();
16169 if (i != ((long) (sizeof (long long int))))
16171 fprintf (f, "%lu\n", i);
16173 exit (ferror (f) || fclose (f) != 0);
16179 rm -f conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_sizeof_long_long_int=`cat conftest.val`
16192 echo "$as_me: program exited with status $ac_status" >&5
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ( exit $ac_status )
16197 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16198 See \`config.log' for more details." >&5
16199 echo "$as_me: error: cannot compute sizeof (long long int), 77
16200 See \`config.log' for more details." >&2;}
16201 { (exit 1); exit 1; }; }
16203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16208 ac_cv_sizeof_long_long_int=0
16211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16212 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16213 cat >>confdefs.h <<_ACEOF
16214 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16218 echo "$as_me:$LINENO: checking for int *" >&5
16219 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16220 if test "${ac_cv_type_int_p+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 cat >conftest.$ac_ext <<_ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 $ac_includes_default
16235 if (sizeof (int *))
16241 rm -f conftest.$ac_objext
16242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16243 (eval $ac_compile) 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag"
16251 || test ! -s conftest.err'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ac_cv_type_int_p=yes
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16268 ac_cv_type_int_p=no
16270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16272 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16273 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16275 echo "$as_me:$LINENO: checking size of int *" >&5
16276 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16277 if test "${ac_cv_sizeof_int_p+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 if test "$ac_cv_type_int_p" = yes; then
16281 # The cast to unsigned long works around a bug in the HP C Compiler
16282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16284 # This bug is HP SR number 8606223364.
16285 if test "$cross_compiling" = yes; then
16286 # Depending upon the size, compute the lo and hi bounds.
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16297 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>conftest.er1
16308 grep -v '^ *+' conftest.er1 >conftest.err
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -z "$ac_c_werror_flag"
16314 || test ! -s conftest.err'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 $ac_includes_default
16338 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16345 rm -f conftest.$ac_objext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16347 (eval $ac_compile) 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest.$ac_objext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_hi=$ac_mid; break
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_lo=`expr $ac_mid + 1`
16373 if test $ac_lo -le $ac_mid; then
16377 ac_mid=`expr 2 '*' $ac_mid + 1`
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 cat >conftest.$ac_ext <<_ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 $ac_includes_default
16395 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>conftest.er1
16406 grep -v '^ *+' conftest.er1 >conftest.err
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag"
16412 || test ! -s conftest.err'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; } &&
16418 { ac_try='test -s conftest.$ac_objext'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 $ac_includes_default
16436 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16447 grep -v '^ *+' conftest.er1 >conftest.err
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 ac_lo=$ac_mid; break
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 ac_hi=`expr '(' $ac_mid ')' - 1`
16471 if test $ac_mid -le $ac_hi; then
16475 ac_mid=`expr 2 '*' $ac_mid`
16477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16488 # Binary search between lo and hi bounds.
16489 while test "x$ac_lo" != "x$ac_hi"; do
16490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16491 cat >conftest.$ac_ext <<_ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 $ac_includes_default
16501 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16508 rm -f conftest.$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510 (eval $ac_compile) 2>conftest.er1
16512 grep -v '^ *+' conftest.er1 >conftest.err
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag"
16518 || test ! -s conftest.err'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_lo=`expr '(' $ac_mid ')' + 1`
16537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16540 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16541 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16542 See \`config.log' for more details." >&5
16543 echo "$as_me: error: cannot compute sizeof (int *), 77
16544 See \`config.log' for more details." >&2;}
16545 { (exit 1); exit 1; }; } ;;
16548 if test "$cross_compiling" = yes; then
16549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16550 See \`config.log' for more details." >&5
16551 echo "$as_me: error: cannot run test program while cross compiling
16552 See \`config.log' for more details." >&2;}
16553 { (exit 1); exit 1; }; }
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 $ac_includes_default
16562 long longval () { return (long) (sizeof (int *)); }
16563 unsigned long ulongval () { return (long) (sizeof (int *)); }
16565 #include <stdlib.h>
16570 FILE *f = fopen ("conftest.val", "w");
16573 if (((long) (sizeof (int *))) < 0)
16575 long i = longval ();
16576 if (i != ((long) (sizeof (int *))))
16578 fprintf (f, "%ld\n", i);
16582 unsigned long i = ulongval ();
16583 if (i != ((long) (sizeof (int *))))
16585 fprintf (f, "%lu\n", i);
16587 exit (ferror (f) || fclose (f) != 0);
16593 rm -f conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595 (eval $ac_link) 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_cv_sizeof_int_p=`cat conftest.val`
16606 echo "$as_me: program exited with status $ac_status" >&5
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ( exit $ac_status )
16611 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16612 See \`config.log' for more details." >&5
16613 echo "$as_me: error: cannot compute sizeof (int *), 77
16614 See \`config.log' for more details." >&2;}
16615 { (exit 1); exit 1; }; }
16617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16622 ac_cv_sizeof_int_p=0
16625 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16626 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16627 cat >>confdefs.h <<_ACEOF
16628 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16633 # Check for sys/types.h types
16634 echo "$as_me:$LINENO: checking for u_int type" >&5
16635 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16636 if test "${ac_cv_have_u_int+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <sys/types.h>
16655 rm -f conftest.$ac_objext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16657 (eval $ac_compile) 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag"
16665 || test ! -s conftest.err'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; } &&
16671 { ac_try='test -s conftest.$ac_objext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_cv_have_u_int="yes"
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_cv_have_u_int="no"
16685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16689 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16690 if test "x$ac_cv_have_u_int" = "xyes" ; then
16691 cat >>confdefs.h <<\_ACEOF
16692 #define HAVE_U_INT 1
16698 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16699 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16700 if test "${ac_cv_have_intmax_t+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 #include <sys/types.h>
16719 rm -f conftest.$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16723 grep -v '^ *+' conftest.er1 >conftest.err
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_have_intmax_t="yes"
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16747 cat >conftest.$ac_ext <<_ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753 #include <stdint.h>
16762 rm -f conftest.$ac_objext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_c_werror_flag"
16772 || test ! -s conftest.err'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest.$ac_objext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_have_intmax_t="yes"
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_cv_have_intmax_t="no"
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16800 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16801 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16802 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_INTMAX_T 1
16811 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16812 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16813 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 cat >conftest.$ac_ext <<_ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 #include <sys/types.h>
16827 u_intmax_t a; a = 1;
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>conftest.er1
16836 grep -v '^ *+' conftest.er1 >conftest.err
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag"
16842 || test ! -s conftest.err'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; } &&
16848 { ac_try='test -s conftest.$ac_objext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 ac_cv_have_u_intmax_t="yes"
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 #include <stdint.h>
16870 u_intmax_t a; a = 1;
16875 rm -f conftest.$ac_objext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16877 (eval $ac_compile) 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -z "$ac_c_werror_flag"
16885 || test ! -s conftest.err'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest.$ac_objext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_have_u_intmax_t="yes"
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_cv_have_u_intmax_t="no"
16905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16912 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16913 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16914 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE_U_INTMAX_T 1
16923 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16924 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16925 if test "${ac_cv_have_intxx_t+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 cat >conftest.$ac_ext <<_ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 #include <sys/types.h>
16939 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16944 rm -f conftest.$ac_objext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
16948 grep -v '^ *+' conftest.er1 >conftest.err
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_have_intxx_t="yes"
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_cv_have_intxx_t="no"
16974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16977 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16978 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16979 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16980 cat >>confdefs.h <<\_ACEOF
16981 #define HAVE_INTXX_T 1
16987 echo "$as_me:$LINENO: checking for int64_t type" >&5
16988 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16989 if test "${ac_cv_have_int64_t+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <sys/types.h>
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010 (eval $ac_compile) 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_cv_have_int64_t="yes"
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 ac_cv_have_int64_t="no"
17038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17041 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17042 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17043 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17044 cat >>confdefs.h <<\_ACEOF
17045 #define HAVE_INT64_T 1
17051 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17052 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17053 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <sys/types.h>
17067 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074 (eval $ac_compile) 2>conftest.er1
17076 grep -v '^ *+' conftest.er1 >conftest.err
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag"
17082 || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest.$ac_objext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_have_u_intxx_t="yes"
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_cv_have_u_intxx_t="no"
17102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17105 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17106 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17107 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_U_INTXX_T 1
17115 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17116 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17117 if test "${ac_cv_have_u_int64_t+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 #include <sys/types.h>
17131 u_int64_t a; a = 1;
17136 rm -f conftest.$ac_objext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138 (eval $ac_compile) 2>conftest.er1
17140 grep -v '^ *+' conftest.er1 >conftest.err
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_cv_have_u_int64_t="yes"
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 ac_cv_have_u_int64_t="no"
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17169 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17170 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17171 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17172 cat >>confdefs.h <<\_ACEOF
17173 #define HAVE_U_INT64_T 1
17179 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17180 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17182 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17183 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 #include <sys/bitypes.h>
17194 int8_t a; int16_t b; int32_t c;
17195 u_int8_t e; u_int16_t f; u_int32_t g;
17196 a = b = c = e = f = g = 1;
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest.$ac_objext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 cat >>confdefs.h <<\_ACEOF
17224 #define HAVE_U_INTXX_T 1
17227 cat >>confdefs.h <<\_ACEOF
17228 #define HAVE_INTXX_T 1
17231 cat >>confdefs.h <<\_ACEOF
17232 #define HAVE_SYS_BITYPES_H 1
17235 echo "$as_me:$LINENO: result: yes" >&5
17236 echo "${ECHO_T}yes" >&6
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17248 if test -z "$have_u_intxx_t" ; then
17249 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17250 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17251 if test "${ac_cv_have_uintxx_t+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 #include <sys/types.h>
17265 uint8_t a; uint16_t b;
17266 uint32_t c; a = b = c = 1;
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag"
17281 || test ! -s conftest.err'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest.$ac_objext'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_have_uintxx_t="yes"
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_cv_have_uintxx_t="no"
17301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17304 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17305 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17306 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_UINTXX_T 1
17314 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17315 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17317 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17318 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 #include <sys/bitypes.h>
17329 int64_t a; u_int64_t b;
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag"
17345 || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest.$ac_objext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_U_INT64_T 1
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_INT64_T 1
17365 echo "$as_me:$LINENO: result: yes" >&5
17366 echo "${ECHO_T}yes" >&6
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 echo "$as_me:$LINENO: result: no" >&5
17372 echo "${ECHO_T}no" >&6
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 if (test -z "$have_uintxx_t" && \
17379 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17381 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17382 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 #include <sys/bitypes.h>
17393 uint8_t a; uint16_t b;
17394 uint32_t c; a = b = c = 1;
17399 rm -f conftest.$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1 >conftest.err
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 cat >>confdefs.h <<\_ACEOF
17422 #define HAVE_UINTXX_T 1
17425 echo "$as_me:$LINENO: result: yes" >&5
17426 echo "${ECHO_T}yes" >&6
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6
17435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17474 if eval "test \"\${$as_ac_var+set}\" = set"; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485 #define $ac_func innocuous_$ac_func
17487 /* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17493 # include <limits.h>
17495 # include <assert.h>
17500 /* Override any gcc2 internal prototype to avoid an error. */
17505 /* We use char because int might match the return type of a gcc2
17506 builtin and then its argument prototype would still apply. */
17508 /* The GNU C library defines this for functions which it implements
17509 to always fail with ENOSYS. Some functions are actually named
17510 something starting with __ and the normal name is an alias. */
17511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17514 char (*f) () = $ac_func;
17523 return f != $ac_func;
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
17537 { ac_try='test -z "$ac_c_werror_flag"
17538 || test ! -s conftest.err'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; } &&
17544 { ac_try='test -s conftest$ac_exeext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 eval "$as_ac_var=yes"
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 eval "$as_ac_var=no"
17557 rm -f conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17562 if test `eval echo '${'$as_ac_var'}'` = yes; then
17563 cat >>confdefs.h <<_ACEOF
17564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17568 echo 'configure: cannot find needed function.'; exit 1
17575 for ac_func in fchdir
17577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 echo "$as_me:$LINENO: checking for $ac_func" >&5
17579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17580 if eval "test \"\${$as_ac_var+set}\" = set"; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17591 #define $ac_func innocuous_$ac_func
17593 /* System header to define __stub macros and hopefully few prototypes,
17594 which can conflict with char $ac_func (); below.
17595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17596 <limits.h> exists even on freestanding compilers. */
17599 # include <limits.h>
17601 # include <assert.h>
17606 /* Override any gcc2 internal prototype to avoid an error. */
17611 /* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17614 /* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17620 char (*f) () = $ac_func;
17629 return f != $ac_func;
17634 rm -f conftest.$ac_objext conftest$ac_exeext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17636 (eval $ac_link) 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest$ac_exeext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 eval "$as_ac_var=yes"
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 eval "$as_ac_var=no"
17663 rm -f conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17668 if test `eval echo '${'$as_ac_var'}'` = yes; then
17669 cat >>confdefs.h <<_ACEOF
17670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17672 cat >>confdefs.h <<\_ACEOF
17673 #define HAVE_FCHDIR 1
17680 for ac_func in strtoll
17682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17683 echo "$as_me:$LINENO: checking for $ac_func" >&5
17684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17685 if eval "test \"\${$as_ac_var+set}\" = set"; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 cat >conftest.$ac_ext <<_ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17696 #define $ac_func innocuous_$ac_func
17698 /* System header to define __stub macros and hopefully few prototypes,
17699 which can conflict with char $ac_func (); below.
17700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17701 <limits.h> exists even on freestanding compilers. */
17704 # include <limits.h>
17706 # include <assert.h>
17711 /* Override any gcc2 internal prototype to avoid an error. */
17716 /* We use char because int might match the return type of a gcc2
17717 builtin and then its argument prototype would still apply. */
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17725 char (*f) () = $ac_func;
17734 return f != $ac_func;
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741 (eval $ac_link) 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest$ac_exeext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 eval "$as_ac_var=yes"
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 eval "$as_ac_var=no"
17768 rm -f conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
17771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17773 if test `eval echo '${'$as_ac_var'}'` = yes; then
17774 cat >>confdefs.h <<_ACEOF
17775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17777 cat >>confdefs.h <<\_ACEOF
17778 #define HAVE_STRTOLL 1
17786 for ac_func in chflags
17788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17789 echo "$as_me:$LINENO: checking for $ac_func" >&5
17790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17791 if eval "test \"\${$as_ac_var+set}\" = set"; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17802 #define $ac_func innocuous_$ac_func
17804 /* System header to define __stub macros and hopefully few prototypes,
17805 which can conflict with char $ac_func (); below.
17806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17807 <limits.h> exists even on freestanding compilers. */
17810 # include <limits.h>
17812 # include <assert.h>
17817 /* Override any gcc2 internal prototype to avoid an error. */
17822 /* We use char because int might match the return type of a gcc2
17823 builtin and then its argument prototype would still apply. */
17825 /* The GNU C library defines this for functions which it implements
17826 to always fail with ENOSYS. Some functions are actually named
17827 something starting with __ and the normal name is an alias. */
17828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17831 char (*f) () = $ac_func;
17840 return f != $ac_func;
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest$ac_exeext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 eval "$as_ac_var=yes"
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 eval "$as_ac_var=no"
17874 rm -f conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
17877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17892 for ac_func in snprintf vsnprintf gethostid fseeko
17894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17897 if eval "test \"\${$as_ac_var+set}\" = set"; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908 #define $ac_func innocuous_$ac_func
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17916 # include <limits.h>
17918 # include <assert.h>
17923 /* Override any gcc2 internal prototype to avoid an error. */
17928 /* We use char because int might match the return type of a gcc2
17929 builtin and then its argument prototype would still apply. */
17931 /* The GNU C library defines this for functions which it implements
17932 to always fail with ENOSYS. Some functions are actually named
17933 something starting with __ and the normal name is an alias. */
17934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17937 char (*f) () = $ac_func;
17946 return f != $ac_func;
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953 (eval $ac_link) 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 eval "$as_ac_var=yes"
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 eval "$as_ac_var=no"
17980 rm -f conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17985 if test `eval echo '${'$as_ac_var'}'` = yes; then
17986 cat >>confdefs.h <<_ACEOF
17987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17998 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18003 if eval "test \"\${$as_ac_var+set}\" = set"; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014 #define $ac_func innocuous_$ac_func
18016 /* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18022 # include <limits.h>
18024 # include <assert.h>
18029 /* Override any gcc2 internal prototype to avoid an error. */
18034 /* We use char because int might match the return type of a gcc2
18035 builtin and then its argument prototype would still apply. */
18037 /* The GNU C library defines this for functions which it implements
18038 to always fail with ENOSYS. Some functions are actually named
18039 something starting with __ and the normal name is an alias. */
18040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18043 char (*f) () = $ac_func;
18052 return f != $ac_func;
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059 (eval $ac_link) 2>conftest.er1
18061 grep -v '^ *+' conftest.er1 >conftest.err
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag"
18067 || test ! -s conftest.err'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest$ac_exeext'
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 eval "$as_ac_var=yes"
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 eval "$as_ac_var=no"
18086 rm -f conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18091 if test `eval echo '${'$as_ac_var'}'` = yes; then
18092 cat >>confdefs.h <<_ACEOF
18093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18100 # If resolver functions are not in libc check for -lnsl or -lresolv.
18101 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18102 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18103 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114 #define gethostbyname_r innocuous_gethostbyname_r
18116 /* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char gethostbyname_r (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18122 # include <limits.h>
18124 # include <assert.h>
18127 #undef gethostbyname_r
18129 /* Override any gcc2 internal prototype to avoid an error. */
18134 /* We use char because int might match the return type of a gcc2
18135 builtin and then its argument prototype would still apply. */
18136 char gethostbyname_r ();
18137 /* The GNU C library defines this for functions which it implements
18138 to always fail with ENOSYS. Some functions are actually named
18139 something starting with __ and the normal name is an alias. */
18140 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18143 char (*f) () = gethostbyname_r;
18152 return f != gethostbyname_r;
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159 (eval $ac_link) 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest$ac_exeext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_func_gethostbyname_r=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_func_gethostbyname_r=no
18186 rm -f conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18189 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18190 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18191 if test $ac_cv_func_gethostbyname_r = yes; then
18192 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18193 echo "${ECHO_T}using libc's resolver" >&6
18196 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18197 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18198 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_check_lib_save_LIBS=$LIBS
18203 cat >conftest.$ac_ext <<_ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18210 /* Override any gcc2 internal prototype to avoid an error. */
18214 /* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216 char gethostbyname_r ();
18220 gethostbyname_r ();
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_cv_lib_nsl_gethostbyname_r=yes
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_cv_lib_nsl_gethostbyname_r=no
18254 rm -f conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18259 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18260 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18261 cat >>confdefs.h <<_ACEOF
18262 #define HAVE_LIBNSL 1
18270 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18271 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18272 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-lresolv $LIBS"
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18284 /* Override any gcc2 internal prototype to avoid an error. */
18288 /* We use char because int might match the return type of a gcc2
18289 builtin and then its argument prototype would still apply. */
18290 char gethostbyname_r ();
18294 gethostbyname_r ();
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301 (eval $ac_link) 2>conftest.er1
18303 grep -v '^ *+' conftest.er1 >conftest.err
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_resolv_gethostbyname_r=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_cv_lib_resolv_gethostbyname_r=no
18328 rm -f conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18333 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18334 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18335 cat >>confdefs.h <<_ACEOF
18336 #define HAVE_LIBRESOLV 1
18339 LIBS="-lresolv $LIBS"
18349 for ac_func in inet_pton
18351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352 echo "$as_me:$LINENO: checking for $ac_func" >&5
18353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18354 if eval "test \"\${$as_ac_var+set}\" = set"; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 cat >conftest.$ac_ext <<_ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h. */
18363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18365 #define $ac_func innocuous_$ac_func
18367 /* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func (); below.
18369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370 <limits.h> exists even on freestanding compilers. */
18373 # include <limits.h>
18375 # include <assert.h>
18380 /* Override any gcc2 internal prototype to avoid an error. */
18385 /* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18388 /* The GNU C library defines this for functions which it implements
18389 to always fail with ENOSYS. Some functions are actually named
18390 something starting with __ and the normal name is an alias. */
18391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18394 char (*f) () = $ac_func;
18403 return f != $ac_func;
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410 (eval $ac_link) 2>conftest.er1
18412 grep -v '^ *+' conftest.er1 >conftest.err
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -z "$ac_c_werror_flag"
18418 || test ! -s conftest.err'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest$ac_exeext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 eval "$as_ac_var=no"
18437 rm -f conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18442 if test `eval echo '${'$as_ac_var'}'` = yes; then
18443 cat >>confdefs.h <<_ACEOF
18444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE_INET_PTON 1
18454 for ac_func in inet_ntop
18456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457 echo "$as_me:$LINENO: checking for $ac_func" >&5
18458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18459 if eval "test \"\${$as_ac_var+set}\" = set"; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 cat >conftest.$ac_ext <<_ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18470 #define $ac_func innocuous_$ac_func
18472 /* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func (); below.
18474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 <limits.h> exists even on freestanding compilers. */
18478 # include <limits.h>
18480 # include <assert.h>
18485 /* Override any gcc2 internal prototype to avoid an error. */
18490 /* We use char because int might match the return type of a gcc2
18491 builtin and then its argument prototype would still apply. */
18493 /* The GNU C library defines this for functions which it implements
18494 to always fail with ENOSYS. Some functions are actually named
18495 something starting with __ and the normal name is an alias. */
18496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18499 char (*f) () = $ac_func;
18508 return f != $ac_func;
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515 (eval $ac_link) 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest$ac_exeext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 eval "$as_ac_var=yes"
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18540 eval "$as_ac_var=no"
18542 rm -f conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18547 if test `eval echo '${'$as_ac_var'}'` = yes; then
18548 cat >>confdefs.h <<_ACEOF
18549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18551 cat >>confdefs.h <<\_ACEOF
18552 #define HAVE_INET_NTOP 1
18559 for ac_func in gethostbyname2
18561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18562 echo "$as_me:$LINENO: checking for $ac_func" >&5
18563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18564 if eval "test \"\${$as_ac_var+set}\" = set"; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18575 #define $ac_func innocuous_$ac_func
18577 /* System header to define __stub macros and hopefully few prototypes,
18578 which can conflict with char $ac_func (); below.
18579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18580 <limits.h> exists even on freestanding compilers. */
18583 # include <limits.h>
18585 # include <assert.h>
18590 /* Override any gcc2 internal prototype to avoid an error. */
18595 /* We use char because int might match the return type of a gcc2
18596 builtin and then its argument prototype would still apply. */
18598 /* The GNU C library defines this for functions which it implements
18599 to always fail with ENOSYS. Some functions are actually named
18600 something starting with __ and the normal name is an alias. */
18601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18604 char (*f) () = $ac_func;
18613 return f != $ac_func;
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620 (eval $ac_link) 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag"
18628 || test ! -s conftest.err'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 eval "$as_ac_var=yes"
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 eval "$as_ac_var=no"
18647 rm -f conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18652 if test `eval echo '${'$as_ac_var'}'` = yes; then
18653 cat >>confdefs.h <<_ACEOF
18654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18656 cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_GETHOSTBYNAME2 1
18664 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18665 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18666 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 cat >conftest.$ac_ext <<_ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include <sys/socket.h>
18679 struct sockaddr s; s.sa_len;
18684 rm -f conftest.$ac_objext
18685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18686 (eval $ac_compile) 2>conftest.er1
18688 grep -v '^ *+' conftest.er1 >conftest.err
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } &&
18693 { ac_try='test -z "$ac_c_werror_flag"
18694 || test ! -s conftest.err'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest.$ac_objext'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_cv_struct_sockaddr_sa_len=yes
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_struct_sockaddr_sa_len=no
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18716 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18718 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18720 cat >>confdefs.h <<\_ACEOF
18721 #define HAVE_SA_LEN 1
18727 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18728 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18729 if test "${ac_cv_ipv6_support+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 #include <sys/types.h>
18739 #include <sys/socket.h>
18740 #include <netinet/in.h>
18744 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752 (eval $ac_link) 2>conftest.er1
18754 grep -v '^ *+' conftest.er1 >conftest.err
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_ipv6_support=yes
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_cv_ipv6_support=no
18779 rm -f conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18782 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18783 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18785 if test "$ac_cv_ipv6_support" = yes; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_IPV6 1
18796 for ac_func in strftime
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_var+set}\" = set"; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812 #define $ac_func innocuous_$ac_func
18814 /* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18820 # include <limits.h>
18822 # include <assert.h>
18827 /* Override any gcc2 internal prototype to avoid an error. */
18832 /* We use char because int might match the return type of a gcc2
18833 builtin and then its argument prototype would still apply. */
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18841 char (*f) () = $ac_func;
18850 return f != $ac_func;
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857 (eval $ac_link) 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag"
18865 || test ! -s conftest.err'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 eval "$as_ac_var=yes"
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18882 eval "$as_ac_var=no"
18884 rm -f conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18889 if test `eval echo '${'$as_ac_var'}'` = yes; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18895 # strftime is in -lintl on SCO UNIX.
18896 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18897 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18898 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 ac_check_lib_save_LIBS=$LIBS
18902 LIBS="-lintl $LIBS"
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18910 /* Override any gcc2 internal prototype to avoid an error. */
18914 /* We use char because int might match the return type of a gcc2
18915 builtin and then its argument prototype would still apply. */
18925 rm -f conftest.$ac_objext conftest$ac_exeext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18927 (eval $ac_link) 2>conftest.er1
18929 grep -v '^ *+' conftest.er1 >conftest.err
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest$ac_exeext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_lib_intl_strftime=yes
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ac_cv_lib_intl_strftime=no
18954 rm -f conftest.err conftest.$ac_objext \
18955 conftest$ac_exeext conftest.$ac_ext
18956 LIBS=$ac_check_lib_save_LIBS
18958 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18959 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18960 if test $ac_cv_lib_intl_strftime = yes; then
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE_STRFTIME 1
18965 LIBS="-lintl $LIBS"
18972 for ac_func in vprintf
18974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18975 echo "$as_me:$LINENO: checking for $ac_func" >&5
18976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18977 if eval "test \"\${$as_ac_var+set}\" = set"; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18988 #define $ac_func innocuous_$ac_func
18990 /* System header to define __stub macros and hopefully few prototypes,
18991 which can conflict with char $ac_func (); below.
18992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18993 <limits.h> exists even on freestanding compilers. */
18996 # include <limits.h>
18998 # include <assert.h>
19003 /* Override any gcc2 internal prototype to avoid an error. */
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19011 /* The GNU C library defines this for functions which it implements
19012 to always fail with ENOSYS. Some functions are actually named
19013 something starting with __ and the normal name is an alias. */
19014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19017 char (*f) () = $ac_func;
19026 return f != $ac_func;
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033 (eval $ac_link) 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag"
19041 || test ! -s conftest.err'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 eval "$as_ac_var=yes"
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no"
19060 rm -f conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19065 if test `eval echo '${'$as_ac_var'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19070 echo "$as_me:$LINENO: checking for _doprnt" >&5
19071 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19072 if test "${ac_cv_func__doprnt+set}" = set; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 cat >conftest.$ac_ext <<_ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19083 #define _doprnt innocuous__doprnt
19085 /* System header to define __stub macros and hopefully few prototypes,
19086 which can conflict with char _doprnt (); below.
19087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19088 <limits.h> exists even on freestanding compilers. */
19091 # include <limits.h>
19093 # include <assert.h>
19098 /* Override any gcc2 internal prototype to avoid an error. */
19103 /* We use char because int might match the return type of a gcc2
19104 builtin and then its argument prototype would still apply. */
19106 /* The GNU C library defines this for functions which it implements
19107 to always fail with ENOSYS. Some functions are actually named
19108 something starting with __ and the normal name is an alias. */
19109 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19112 char (*f) () = _doprnt;
19121 return f != _doprnt;
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128 (eval $ac_link) 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_func__doprnt=yes
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 ac_cv_func__doprnt=no
19155 rm -f conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19158 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19159 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19160 if test $ac_cv_func__doprnt = yes; then
19162 cat >>confdefs.h <<\_ACEOF
19163 #define HAVE_DOPRNT 1
19172 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19173 # for constant arguments. Useless!
19174 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19175 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19176 if test "${ac_cv_working_alloca_h+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <alloca.h>
19189 char *p = (char *) alloca (2 * sizeof (int));
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196 (eval $ac_link) 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
19203 { ac_try='test -z "$ac_c_werror_flag"
19204 || test ! -s conftest.err'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest$ac_exeext'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 ac_cv_working_alloca_h=yes
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 ac_cv_working_alloca_h=no
19223 rm -f conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
19226 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19227 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19228 if test $ac_cv_working_alloca_h = yes; then
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_ALLOCA_H 1
19236 echo "$as_me:$LINENO: checking for alloca" >&5
19237 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19238 if test "${ac_cv_func_alloca_works+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19248 # define alloca __builtin_alloca
19251 # include <malloc.h>
19252 # define alloca _alloca
19255 # include <alloca.h>
19260 # ifndef alloca /* predefined by HP cc +Olibcalls */
19271 char *p = (char *) alloca (1);
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19278 (eval $ac_link) 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest$ac_exeext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_func_alloca_works=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_func_alloca_works=no
19305 rm -f conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
19308 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19309 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19311 if test $ac_cv_func_alloca_works = yes; then
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_ALLOCA 1
19318 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19319 # that cause trouble. Some versions do not even contain alloca or
19320 # contain a buggy version. If you still want to use their alloca,
19321 # use ar to extract alloca.o from them instead of compiling alloca.c.
19323 ALLOCA=alloca.$ac_objext
19325 cat >>confdefs.h <<\_ACEOF
19330 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19331 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19332 if test "${ac_cv_os_cray+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 #if defined(CRAY) && ! defined(CRAY2)
19348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19349 $EGREP "webecray" >/dev/null 2>&1; then
19357 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19358 echo "${ECHO_T}$ac_cv_os_cray" >&6
19359 if test $ac_cv_os_cray = yes; then
19360 for ac_func in _getb67 GETB67 getb67; do
19361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19362 echo "$as_me:$LINENO: checking for $ac_func" >&5
19363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_var+set}\" = set"; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19375 #define $ac_func innocuous_$ac_func
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char $ac_func (); below.
19379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380 <limits.h> exists even on freestanding compilers. */
19383 # include <limits.h>
19385 # include <assert.h>
19390 /* Override any gcc2 internal prototype to avoid an error. */
19395 /* We use char because int might match the return type of a gcc2
19396 builtin and then its argument prototype would still apply. */
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19404 char (*f) () = $ac_func;
19413 return f != $ac_func;
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420 (eval $ac_link) 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest$ac_exeext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 eval "$as_ac_var=yes"
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 eval "$as_ac_var=no"
19447 rm -f conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19452 if test `eval echo '${'$as_ac_var'}'` = yes; then
19454 cat >>confdefs.h <<_ACEOF
19455 #define CRAY_STACKSEG_END $ac_func
19464 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19465 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19466 if test "${ac_cv_c_stack_direction+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 if test "$cross_compiling" = yes; then
19470 ac_cv_c_stack_direction=0
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 find_stack_direction ()
19481 static char *addr = 0;
19486 return find_stack_direction ();
19489 return (&dummy > addr) ? 1 : -1;
19495 exit (find_stack_direction () < 0);
19498 rm -f conftest$ac_exeext
19499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19500 (eval $ac_link) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 ac_cv_c_stack_direction=1
19511 echo "$as_me: program exited with status $ac_status" >&5
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19515 ( exit $ac_status )
19516 ac_cv_c_stack_direction=-1
19518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19521 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19522 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19524 cat >>confdefs.h <<_ACEOF
19525 #define STACK_DIRECTION $ac_cv_c_stack_direction
19531 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19532 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19533 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19534 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 ac_check_lib_save_LIBS=$LIBS
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19546 /* Override any gcc2 internal prototype to avoid an error. */
19550 /* We use char because int might match the return type of a gcc2
19551 builtin and then its argument prototype would still apply. */
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563 (eval $ac_link) 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag"
19571 || test ! -s conftest.err'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest$ac_exeext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 ac_cv_lib_sun_getmntent=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_cv_lib_sun_getmntent=no
19590 rm -f conftest.err conftest.$ac_objext \
19591 conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19594 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19595 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19596 if test $ac_cv_lib_sun_getmntent = yes; then
19599 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19600 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19601 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 ac_check_lib_save_LIBS=$LIBS
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19613 /* Override any gcc2 internal prototype to avoid an error. */
19617 /* We use char because int might match the return type of a gcc2
19618 builtin and then its argument prototype would still apply. */
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag"
19638 || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest$ac_exeext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_lib_seq_getmntent=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_lib_seq_getmntent=no
19657 rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19661 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19662 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19663 if test $ac_cv_lib_seq_getmntent = yes; then
19666 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19667 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19668 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 ac_check_lib_save_LIBS=$LIBS
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19680 /* Override any gcc2 internal prototype to avoid an error. */
19684 /* We use char because int might match the return type of a gcc2
19685 builtin and then its argument prototype would still apply. */
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697 (eval $ac_link) 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -z "$ac_c_werror_flag"
19705 || test ! -s conftest.err'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest$ac_exeext'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_cv_lib_gen_getmntent=yes
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ac_cv_lib_gen_getmntent=no
19724 rm -f conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19729 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19730 if test $ac_cv_lib_gen_getmntent = yes; then
19739 for ac_func in getmntent
19741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19742 echo "$as_me:$LINENO: checking for $ac_func" >&5
19743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19744 if eval "test \"\${$as_ac_var+set}\" = set"; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19755 #define $ac_func innocuous_$ac_func
19757 /* System header to define __stub macros and hopefully few prototypes,
19758 which can conflict with char $ac_func (); below.
19759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19760 <limits.h> exists even on freestanding compilers. */
19763 # include <limits.h>
19765 # include <assert.h>
19770 /* Override any gcc2 internal prototype to avoid an error. */
19775 /* We use char because int might match the return type of a gcc2
19776 builtin and then its argument prototype would still apply. */
19778 /* The GNU C library defines this for functions which it implements
19779 to always fail with ENOSYS. Some functions are actually named
19780 something starting with __ and the normal name is an alias. */
19781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19784 char (*f) () = $ac_func;
19793 return f != $ac_func;
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19800 (eval $ac_link) 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag"
19808 || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest$ac_exeext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 eval "$as_ac_var=yes"
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 eval "$as_ac_var=no"
19827 rm -f conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19832 if test `eval echo '${'$as_ac_var'}'` = yes; then
19833 cat >>confdefs.h <<_ACEOF
19834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19841 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19842 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19843 if test "${ac_cv_func_closedir_void+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 if test "$cross_compiling" = yes; then
19847 ac_cv_func_closedir_void=yes
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 $ac_includes_default
19856 #include <$ac_header_dirent>
19857 #ifndef __cplusplus
19864 exit (closedir (opendir (".")) != 0);
19869 rm -f conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871 (eval $ac_link) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_func_closedir_void=no
19882 echo "$as_me: program exited with status $ac_status" >&5
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 ( exit $ac_status )
19887 ac_cv_func_closedir_void=yes
19889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19893 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19894 if test $ac_cv_func_closedir_void = yes; then
19896 cat >>confdefs.h <<\_ACEOF
19897 #define CLOSEDIR_VOID 1
19902 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19903 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19904 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 if test "$cross_compiling" = yes; then
19908 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19909 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19910 { (exit 1); exit 1; }; }
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19919 # include <unistd.h>
19925 /* If this system has a BSD-style setpgrp which takes arguments,
19926 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19927 exit successfully. */
19928 exit (setpgrp (1,1) == -1 ? 0 : 1);
19933 rm -f conftest$ac_exeext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19935 (eval $ac_link) 2>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_cv_func_setpgrp_void=no
19946 echo "$as_me: program exited with status $ac_status" >&5
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ( exit $ac_status )
19951 ac_cv_func_setpgrp_void=yes
19953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19956 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19957 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19958 if test $ac_cv_func_setpgrp_void = yes; then
19960 cat >>confdefs.h <<\_ACEOF
19961 #define SETPGRP_VOID 1
19965 # AC_FUNC_FNMATCH dnl use local version
19968 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19969 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19970 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-lxpg4 $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any gcc2 internal prototype to avoid an error. */
19986 /* We use char because int might match the return type of a gcc2
19987 builtin and then its argument prototype would still apply. */
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999 (eval $ac_link) 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -z "$ac_c_werror_flag"
20007 || test ! -s conftest.err'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest$ac_exeext'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_cv_lib_xpg4_setlocale=yes
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_cv_lib_xpg4_setlocale=no
20026 rm -f conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20030 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20031 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20032 if test $ac_cv_lib_xpg4_setlocale = yes; then
20033 LIBS="$LIBS -lxpg4"
20039 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20040 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20041 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 ac_check_lib_save_LIBS=$LIBS
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20053 /* Override any gcc2 internal prototype to avoid an error. */
20057 /* We use char because int might match the return type of a gcc2
20058 builtin and then its argument prototype would still apply. */
20068 rm -f conftest.$ac_objext conftest$ac_exeext
20069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20070 (eval $ac_link) 2>conftest.er1
20072 grep -v '^ *+' conftest.er1 >conftest.err
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -z "$ac_c_werror_flag"
20078 || test ! -s conftest.err'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest$ac_exeext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_lib_sun_getpwnam=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_cv_lib_sun_getpwnam=no
20097 rm -f conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20101 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20102 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20103 if test $ac_cv_lib_sun_getpwnam = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_LIBSUN 1
20114 for ac_header in zlib.h
20116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20118 echo "$as_me:$LINENO: checking for $ac_header" >&5
20119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20126 # Is the header compilable?
20127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 $ac_includes_default
20136 #include <$ac_header>
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140 (eval $ac_compile) 2>conftest.er1
20142 grep -v '^ *+' conftest.er1 >conftest.err
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
20147 { ac_try='test -z "$ac_c_werror_flag"
20148 || test ! -s conftest.err'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; } &&
20154 { ac_try='test -s conftest.$ac_objext'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_header_compiler=yes
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_header_compiler=no
20167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20169 echo "${ECHO_T}$ac_header_compiler" >&6
20171 # Is the header present?
20172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 #include <$ac_header>
20182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20185 grep -v '^ *+' conftest.er1 >conftest.err
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } >/dev/null; then
20190 if test -s conftest.err; then
20191 ac_cpp_err=$ac_c_preproc_warn_flag
20192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20199 if test -z "$ac_cpp_err"; then
20200 ac_header_preproc=yes
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ac_header_preproc=no
20207 rm -f conftest.err conftest.$ac_ext
20208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20209 echo "${ECHO_T}$ac_header_preproc" >&6
20211 # So? What about this header?
20212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20218 ac_header_preproc=yes
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20235 ## ------------------------------------------ ##
20236 ## Report this to the AC_PACKAGE_NAME lists. ##
20237 ## ------------------------------------------ ##
20240 sed "s/^/$as_me: WARNING: /" >&2
20243 echo "$as_me:$LINENO: checking for $ac_header" >&5
20244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 eval "$as_ac_Header=\$ac_header_preproc"
20250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20255 cat >>confdefs.h <<_ACEOF
20256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20263 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20264 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20265 if test "${ac_cv_lib_z_deflate+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 ac_check_lib_save_LIBS=$LIBS
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20277 /* Override any gcc2 internal prototype to avoid an error. */
20281 /* We use char because int might match the return type of a gcc2
20282 builtin and then its argument prototype would still apply. */
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294 (eval $ac_link) 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag"
20302 || test ! -s conftest.err'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest$ac_exeext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_lib_z_deflate=yes
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ac_cv_lib_z_deflate=no
20321 rm -f conftest.err conftest.$ac_objext \
20322 conftest$ac_exeext conftest.$ac_ext
20323 LIBS=$ac_check_lib_save_LIBS
20325 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20326 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20327 if test $ac_cv_lib_z_deflate = yes; then
20332 if test x$FDLIBS = x-lz; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_LIBZ 1
20340 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20341 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20342 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20343 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20347 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20349 # Is the header compilable?
20350 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20351 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 $ac_includes_default
20359 #include <sys/acl.h>
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_header_compiler=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_header_compiler=no
20390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20392 echo "${ECHO_T}$ac_header_compiler" >&6
20394 # Is the header present?
20395 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20396 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 #include <sys/acl.h>
20405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } >/dev/null; then
20413 if test -s conftest.err; then
20414 ac_cpp_err=$ac_c_preproc_warn_flag
20415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20422 if test -z "$ac_cpp_err"; then
20423 ac_header_preproc=yes
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_header_preproc=no
20430 rm -f conftest.err conftest.$ac_ext
20431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 echo "${ECHO_T}$ac_header_preproc" >&6
20434 # So? What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20437 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20438 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20440 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20441 ac_header_preproc=yes
20444 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20445 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20447 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20449 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20451 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20453 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20455 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20458 ## ------------------------------------------ ##
20459 ## Report this to the AC_PACKAGE_NAME lists. ##
20460 ## ------------------------------------------ ##
20463 sed "s/^/$as_me: WARNING: /" >&2
20466 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20467 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20468 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 ac_cv_header_sys_acl_h=$ac_header_preproc
20473 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20474 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20479 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20480 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20481 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 ac_check_lib_save_LIBS=$LIBS
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20493 /* Override any gcc2 internal prototype to avoid an error. */
20497 /* We use char because int might match the return type of a gcc2
20498 builtin and then its argument prototype would still apply. */
20499 char acl_get_file ();
20508 rm -f conftest.$ac_objext conftest$ac_exeext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20510 (eval $ac_link) 2>conftest.er1
20512 grep -v '^ *+' conftest.er1 >conftest.err
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } &&
20517 { ac_try='test -z "$ac_c_werror_flag"
20518 || test ! -s conftest.err'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest$ac_exeext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_lib_acl_acl_get_file=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_cv_lib_acl_acl_get_file=no
20537 rm -f conftest.err conftest.$ac_objext \
20538 conftest$ac_exeext conftest.$ac_ext
20539 LIBS=$ac_check_lib_save_LIBS
20541 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20542 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20543 if test $ac_cv_lib_acl_acl_get_file = yes; then
20544 FDLIBS="-lacl $FDLIBS"
20548 if test $ac_cv_lib_acl_acl_get_file = yes; then
20549 cat >>confdefs.h <<\_ACEOF
20557 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20558 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20559 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-lpthread $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any gcc2 internal prototype to avoid an error. */
20575 /* We use char because int might match the return type of a gcc2
20576 builtin and then its argument prototype would still apply. */
20577 char pthread_create ();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag"
20596 || test ! -s conftest.err'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; }; then
20608 ac_cv_lib_pthread_pthread_create=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ac_cv_lib_pthread_pthread_create=no
20615 rm -f conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20617 LIBS=$ac_check_lib_save_LIBS
20619 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20620 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20621 if test $ac_cv_lib_pthread_pthread_create = yes; then
20622 PTHREAD_LIB="-lpthread"
20624 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20625 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20626 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 ac_check_lib_save_LIBS=$LIBS
20630 LIBS="-lpthreads $LIBS"
20631 cat >conftest.$ac_ext <<_ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20638 /* Override any gcc2 internal prototype to avoid an error. */
20642 /* We use char because int might match the return type of a gcc2
20643 builtin and then its argument prototype would still apply. */
20644 char pthread_create ();
20653 rm -f conftest.$ac_objext conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655 (eval $ac_link) 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest$ac_exeext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_cv_lib_pthreads_pthread_create=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_lib_pthreads_pthread_create=no
20682 rm -f conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20687 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20688 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20689 PTHREAD_LIB="-lpthreads"
20691 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20692 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20693 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 ac_check_lib_save_LIBS=$LIBS
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any gcc2 internal prototype to avoid an error. */
20709 /* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20711 char pthread_create ();
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest$ac_exeext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_lib_c_r_pthread_create=yes
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_cv_lib_c_r_pthread_create=no
20749 rm -f conftest.err conftest.$ac_objext \
20750 conftest$ac_exeext conftest.$ac_ext
20751 LIBS=$ac_check_lib_save_LIBS
20753 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20754 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20755 if test $ac_cv_lib_c_r_pthread_create = yes; then
20756 PTHREAD_LIB="-lc_r"
20758 echo "$as_me:$LINENO: checking for pthread_create" >&5
20759 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20760 if test "${ac_cv_func_pthread_create+set}" = set; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20771 #define pthread_create innocuous_pthread_create
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char pthread_create (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20779 # include <limits.h>
20781 # include <assert.h>
20784 #undef pthread_create
20786 /* Override any gcc2 internal prototype to avoid an error. */
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20793 char pthread_create ();
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20800 char (*f) () = pthread_create;
20809 return f != pthread_create;
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest$ac_exeext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_func_pthread_create=yes
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_cv_func_pthread_create=no
20843 rm -f conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20846 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20847 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20860 cat >>confdefs.h <<\_ACEOF
20866 CFLAGS=${CFLAGS--O}
20867 LDFLAGS=${LDFLAGS--O}
20868 DB_LIBS="${SQL_LFLAGS}"
20870 CPPFLAGS="$CPPFLAGS"
20895 # Finally we set appropriate distribution specific
20896 # variables and defaults
20898 # PFILES are platform specific files
20899 PFILES="platforms/Makefile"
20903 hostname=`uname -n | cut -d '.' -f 1`
20904 case "$DISTNAME" in
20907 PSCMD="ps -e -o pid,comm"
20908 PFILES="${PFILES} \
20909 platforms/aix/Makefile"
20910 TAPEDRIVE="/dev/rmt0.1"
20914 PTHREAD_LIB="-lpthread -lexc"
20915 if test "${CC}" = "gcc" ; then
20922 TAPEDRIVE="/dev/nrmt0"
20925 DISTVER=`uname -a |awk '{print $3}'`
20926 TAPEDRIVE="/dev/nrmt0"
20927 PTHREAD_LIB="-pthread"
20928 CFLAGS="${CFLAGS} -pthread"
20929 PSCMD="ps -ax -o pid,command"
20932 PFILES="${PFILES} \
20933 platforms/bsdi/Makefile \
20934 platforms/bsdi/bacula-fd \
20935 platforms/bsdi/bacula-sd \
20936 platforms/bsdi/bacula-dir"
20937 largefile_support="yes"
20940 DISTVER=`uname -a |awk '{print $3}'`
20941 TAPEDRIVE="/dev/nrst0"
20943 WCFLAGS="-mwindows"
20944 WLDFLAGS="-mwindows"
20948 TAPEDRIVE="/dev/nst0"
20949 PSCMD="ps -e -o pid,command"
20951 PFILES="${PFILES} \
20952 platforms/darwin/Makefile"
20955 DISTVER=`cat /etc/debian_version`
20956 TAPEDRIVE="/dev/nrst0"
20957 PSCMD="ps -e -o pid,command"
20960 DISTVER=`uname -a |awk '{print $3}'`
20961 VER=`echo $DISTVER | cut -c 1`
20962 if test x$VER = x4 ; then
20963 PTHREAD_LIB="-pthread"
20964 CFLAGS="${CFLAGS} -pthread"
20968 TAPEDRIVE="/dev/nrsa0"
20969 PSCMD="ps -ax -o pid,command"
20970 PFILES="${PFILES} \
20971 platforms/freebsd/Makefile \
20972 platforms/freebsd/bacula-fd \
20973 platforms/freebsd/bacula-sd \
20974 platforms/freebsd/bacula-dir"
20975 largefile_support="yes"
20978 PSCMD="UNIX95=1 ps -e -o pid,comm"
20979 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20981 TAPEDRIVE="/dev/rmt/0hnb"
20982 PTHREAD_LIB="-lpthread"
20983 cat >>confdefs.h <<\_ACEOF
20984 #define _INCLUDE_LONGLONG 1
20990 TAPEDRIVE="/dev/rmt/0cbn"
20991 PSCMD="ps -e -o pid,comm"
20992 PFILES="${PFILES} \
20993 platforms/irix/Makefile \
20994 platforms/irix/bacula-fd \
20995 platforms/irix/bacula-sd \
20996 platforms/irix/bacula-dir"
20999 DISTVER=`uname -a |awk '{print $3}'`
21002 TAPEDRIVE="/dev/nrst0"
21003 PSCMD="ps -ax -o pid,command"
21004 PTHREAD_LIB="-pthread"
21005 CFLAGS="${CFLAGS} -pthread"
21008 DISTVER=`uname -a |awk '{print $3}'`
21011 TAPEDRIVE="/dev/nrst0"
21012 PSCMD="ps -ax -o pid,command"
21013 PTHREAD_LIB="-pthread"
21014 CFLAGS="${CFLAGS} -pthread"
21015 PFILES="${PFILES} \
21016 platforms/openbsd/Makefile \
21017 platforms/openbsd/bacula-fd \
21018 platforms/openbsd/bacula-sd \
21019 platforms/openbsd/bacula-dir"
21022 if test -f /etc/whitebox-release ; then
21023 f=/etc/whitebox-release
21025 f=/etc/redhat-release
21027 if test `cat $f | grep release |\
21028 cut -f 3 -d ' '`x = "Enterprise"x ; then
21029 DISTVER="Enterprise "`cat $f | grep release |\
21032 DISTVER=`cat /etc/redhat-release | grep release |\
21035 TAPEDRIVE="/dev/nst0"
21036 PSCMD="ps -e -o pid,command"
21037 PFILES="${PFILES} \
21038 platforms/redhat/Makefile \
21039 platforms/redhat/bacula-fd \
21040 platforms/redhat/bacula-sd \
21041 platforms/redhat/bacula-dir \
21042 platforms/redhat/bacula.spec \
21044 hostname=`hostname -s`
21047 DISTVER=`cat /etc/mandrake-release | grep release |\
21049 TAPEDRIVE="/dev/nst0"
21050 PSCMD="ps -e -o pid,command"
21051 PFILES="${PFILES} \
21052 platforms/mandrake/Makefile \
21053 platforms/mandrake/bacula-fd \
21054 platforms/mandrake/bacula-sd \
21055 platforms/mandrake/bacula-dir \
21056 platforms/mandrake/bacula.spec \
21060 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21061 TAPEDRIVE="/dev/nst0"
21062 PSCMD="ps -e -o pid,command"
21063 PFILES="${PFILES} \
21064 platforms/gentoo/Makefile \
21065 platforms/gentoo/bacula-init \
21066 platforms/gentoo/bacula-fd \
21067 platforms/gentoo/bacula-sd \
21068 platforms/gentoo/bacula-dir"
21071 DISTVER=`cat /etc/slackware-version`
21072 TAPEDRIVE="/dev/nst0"
21073 PSCMD="ps -e -o pid,command"
21074 PFILES="${PFILES} \
21075 platforms/slackware/Makefile \
21076 platforms/slackware/rc.bacula-fd \
21077 platforms/slackware/rc.bacula-sd \
21078 platforms/slackware/rc.bacula-dir\
21079 platforms/slackware/functions.bacula"
21083 TAPEDRIVE="/dev/rmt/0cbn"
21084 PSCMD="ps -e -o pid,comm"
21085 PFILES="${PFILES} \
21086 platforms/solaris/Makefile \
21087 platforms/solaris/bacula-fd \
21088 platforms/solaris/bacula-sd \
21089 platforms/solaris/bacula-dir"
21090 if test x$DISTVER = x5.6 ; then
21091 cat >>confdefs.h <<\_ACEOF
21092 #define HAVE_OLD_SOCKOPT 1
21096 LIBS="$LIBS -lresolv"
21099 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21101 TAPEDRIVE="/dev/nst0"
21102 PSCMD="ps -e -o pid,command"
21103 PFILES="${PFILES} \
21104 platforms/suse/Makefile \
21105 platforms/suse/bacula-fd \
21106 platforms/suse/bacula-sd \
21107 platforms/suse/bacula-dir \
21108 platforms/suse/bacula \
21109 platforms/suse/bacula.spec"
21114 TAPEDRIVE="/dev/nst0"
21115 PSCMD="ps -e -o pid,command"
21116 PFILES="${PFILES} \
21117 platforms/suse/Makefile \
21118 platforms/suse/bacula-fd \
21119 platforms/suse/bacula-sd \
21120 platforms/suse/bacula-dir"
21124 TAPEDRIVE="/dev/nst0"
21127 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21133 LIBS="$PTHREAD_LIB $LIBS"
21135 cat >>confdefs.h <<_ACEOF
21139 cat >>confdefs.h <<_ACEOF
21150 MCOMMON=./autoconf/Make.common
21153 if test "x${subsysdir}" = "x${sbindir}" ; then
21156 echo "You have set both --sbindir and --with-subsys-dir"
21157 echo " equal to: ${subsysdir} "
21158 echo "This is not permitted. Please reconfigure."
21160 echo "Aborting configuration ..."
21166 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"
21167 ac_config_commands="$ac_config_commands default"
21168 cat >confcache <<\_ACEOF
21169 # This file is a shell script that caches the results of configure
21170 # tests run on this system so they can be shared between configure
21171 # scripts and configure runs, see configure's option --config-cache.
21172 # It is not useful on other systems. If it contains results you don't
21173 # want to keep, you may remove or edit it.
21175 # config.status only pays attention to the cache file if you give it
21176 # the --recheck option to rerun configure.
21178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21180 # following values.
21184 # The following way of writing the cache mishandles newlines in values,
21185 # but we know of no workaround that is simple, portable, and efficient.
21186 # So, don't put newlines in cache variables' values.
21187 # Ultrix sh set writes to stderr and can't be redirected directly,
21188 # and sets the high bit in the cache file unless we assign to the vars.
21191 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21193 # `set' does not quote correctly, so add quotes (double-quote
21194 # substitution turns \\\\ into \\, and sed turns \\ into \).
21197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21200 # `set' quotes correctly as required by POSIX, so do not add quotes.
21202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21211 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21213 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21214 if test -w $cache_file; then
21215 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21216 cat confcache >$cache_file
21218 echo "not updating unwritable cache $cache_file"
21223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21224 # Let make expand exec_prefix.
21225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21229 # trailing colons and then remove the whole line if VPATH becomes empty
21230 # (actually we leave an empty line to preserve line numbers).
21231 if test "x$srcdir" = x.; then
21232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21233 s/:*\$(srcdir):*/:/;
21234 s/:*\${srcdir}:*/:/;
21236 s/^\([^=]*=[ ]*\):*/\1/;
21242 DEFS=-DHAVE_CONFIG_H
21246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21247 # 1. Remove the extension, and $U if already installed.
21248 ac_i=`echo "$ac_i" |
21249 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21251 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21252 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21254 LIBOBJS=$ac_libobjs
21256 LTLIBOBJS=$ac_ltlibobjs
21260 : ${CONFIG_STATUS=./config.status}
21261 ac_clean_files_save=$ac_clean_files
21262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21263 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21264 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21265 cat >$CONFIG_STATUS <<_ACEOF
21267 # Generated by $as_me.
21268 # Run this file to recreate the current configuration.
21269 # Compiler output produced by configure, useful for debugging
21270 # configure, is in config.log if it exists.
21273 ac_cs_recheck=false
21275 SHELL=\${CONFIG_SHELL-$SHELL}
21278 cat >>$CONFIG_STATUS <<\_ACEOF
21279 ## --------------------- ##
21280 ## M4sh Initialization. ##
21281 ## --------------------- ##
21283 # Be Bourne compatible
21284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21288 # is contrary to our usage. Disable this feature.
21289 alias -g '${1+"$@"}'='"$@"'
21290 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21293 DUALCASE=1; export DUALCASE # for MKS sh
21295 # Support unset when possible.
21296 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21303 # Work around bugs in pre-3.0 UWIN ksh.
21304 $as_unset ENV MAIL MAILPATH
21311 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21312 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21313 LC_TELEPHONE LC_TIME
21315 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21316 eval $as_var=C; export $as_var
21322 # Required to use basename.
21323 if expr a : '\(a\)' >/dev/null 2>&1; then
21329 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21330 as_basename=basename
21336 # Name of the executable.
21337 as_me=`$as_basename "$0" ||
21338 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21339 X"$0" : 'X\(//\)$' \| \
21340 X"$0" : 'X\(/\)$' \| \
21341 . : '\(.\)' 2>/dev/null ||
21343 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21344 /^X\/\(\/\/\)$/{ s//\1/; q; }
21345 /^X\/\(\/\).*/{ s//\1/; q; }
21349 # PATH needs CR, and LINENO needs CR and PATH.
21350 # Avoid depending upon Character Ranges.
21351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21354 as_cr_digits='0123456789'
21355 as_cr_alnum=$as_cr_Letters$as_cr_digits
21357 # The user is always right.
21358 if test "${PATH_SEPARATOR+set}" != set; then
21359 echo "#! /bin/sh" >conf$$.sh
21360 echo "exit 0" >>conf$$.sh
21362 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21371 as_lineno_1=$LINENO
21372 as_lineno_2=$LINENO
21373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21374 test "x$as_lineno_1" != "x$as_lineno_2" &&
21375 test "x$as_lineno_3" = "x$as_lineno_2" || {
21376 # Find who we are. Look in the path if we contain no path at all
21379 *[\\/]* ) as_myself=$0 ;;
21380 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21381 for as_dir in $PATH
21384 test -z "$as_dir" && as_dir=.
21385 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21390 # We did not find ourselves, most probably we were run as `sh COMMAND'
21391 # in which case we are not to be found in the path.
21392 if test "x$as_myself" = x; then
21395 if test ! -f "$as_myself"; then
21396 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21397 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21398 { (exit 1); exit 1; }; }
21400 case $CONFIG_SHELL in
21402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21403 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21406 test -z "$as_dir" && as_dir=.
21407 for as_base in sh bash ksh sh5; do
21410 if ("$as_dir/$as_base" -c '
21411 as_lineno_1=$LINENO
21412 as_lineno_2=$LINENO
21413 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21414 test "x$as_lineno_1" != "x$as_lineno_2" &&
21415 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21416 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21417 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21418 CONFIG_SHELL=$as_dir/$as_base
21419 export CONFIG_SHELL
21420 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21429 # uniformly replaced by the line number. The first 'sed' inserts a
21430 # line-number line before each line; the second 'sed' does the real
21431 # work. The second script uses 'N' to pair each line-number line
21432 # with the numbered line, and appends trailing '-' during
21433 # substitution so that $LINENO is not a special case at line end.
21434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21435 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21436 sed '=' <$as_myself |
21441 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21444 s,^['$as_cr_digits']*\n,,
21445 ' >$as_me.lineno &&
21446 chmod +x $as_me.lineno ||
21447 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21448 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21449 { (exit 1); exit 1; }; }
21451 # Don't try to exec as it changes $[0], causing all sort of problems
21452 # (the dirname of $[0] is not the place where we might find the
21453 # original and so on. Autoconf is especially sensible to this).
21455 # Exit status is that of the last command.
21460 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21461 *c*,-n*) ECHO_N= ECHO_C='
21463 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21464 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21467 if expr a : '\(a\)' >/dev/null 2>&1; then
21473 rm -f conf$$ conf$$.exe conf$$.file
21475 if ln -s conf$$.file conf$$ 2>/dev/null; then
21476 # We could just check for DJGPP; but this test a) works b) is more generic
21477 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21478 if test -f conf$$.exe; then
21479 # Don't use ln at all; we don't have any links
21484 elif ln conf$$.file conf$$ 2>/dev/null; then
21489 rm -f conf$$ conf$$.exe conf$$.file
21491 if mkdir -p . 2>/dev/null; then
21494 test -d ./-p && rmdir ./-p
21498 as_executable_p="test -f"
21500 # Sed expression to map a string onto a valid CPP name.
21501 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21503 # Sed expression to map a string onto a valid variable name.
21504 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21508 # We need space, tab and new line, in precisely that order.
21518 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21519 # report actual input values of CONFIG_FILES etc. instead of their
21520 # values after options handling. Logging --version etc. is OK.
21524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21525 ## Running $as_me. ##
21530 This file was extended by $as_me, which was
21531 generated by GNU Autoconf 2.59. Invocation command line was
21533 CONFIG_FILES = $CONFIG_FILES
21534 CONFIG_HEADERS = $CONFIG_HEADERS
21535 CONFIG_LINKS = $CONFIG_LINKS
21536 CONFIG_COMMANDS = $CONFIG_COMMANDS
21540 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21544 # Files that config.status was made for.
21545 if test -n "$ac_config_files"; then
21546 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21549 if test -n "$ac_config_headers"; then
21550 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21553 if test -n "$ac_config_links"; then
21554 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21557 if test -n "$ac_config_commands"; then
21558 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21561 cat >>$CONFIG_STATUS <<\_ACEOF
21564 \`$as_me' instantiates files from templates according to the
21565 current configuration.
21567 Usage: $0 [OPTIONS] [FILE]...
21569 -h, --help print this help, then exit
21570 -V, --version print version number, then exit
21571 -q, --quiet do not print progress messages
21572 -d, --debug don't remove temporary files
21573 --recheck update $as_me by reconfiguring in the same conditions
21574 --file=FILE[:TEMPLATE]
21575 instantiate the configuration file FILE
21576 --header=FILE[:TEMPLATE]
21577 instantiate the configuration header FILE
21579 Configuration files:
21582 Configuration headers:
21585 Configuration commands:
21588 Report bugs to <bug-autoconf@gnu.org>."
21591 cat >>$CONFIG_STATUS <<_ACEOF
21594 configured by $0, generated by GNU Autoconf 2.59,
21595 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21597 Copyright (C) 2003 Free Software Foundation, Inc.
21598 This config.status script is free software; the Free Software Foundation
21599 gives unlimited permission to copy, distribute and modify it."
21604 cat >>$CONFIG_STATUS <<\_ACEOF
21605 # If no file are specified by the user, then we need to provide default
21606 # value. By we need to know if files were specified by the user.
21612 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21613 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21621 *) # This is not an option, so the user has probably given explicit
21624 ac_need_defaults=false;;
21628 # Handling of the options.
21630 cat >>$CONFIG_STATUS <<\_ACEOF
21631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21633 --version | --vers* | -V )
21634 echo "$ac_cs_version"; exit 0 ;;
21636 # Conflict between --help and --header
21637 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21638 Try \`$0 --help' for more information." >&5
21639 echo "$as_me: error: ambiguous option: $1
21640 Try \`$0 --help' for more information." >&2;}
21641 { (exit 1); exit 1; }; };;
21642 --help | --hel | -h )
21643 echo "$ac_cs_usage"; exit 0 ;;
21644 --debug | --d* | -d )
21646 --file | --fil | --fi | --f )
21648 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21649 ac_need_defaults=false;;
21650 --header | --heade | --head | --hea )
21652 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21653 ac_need_defaults=false;;
21654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21658 # This is an error.
21659 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21660 Try \`$0 --help' for more information." >&5
21661 echo "$as_me: error: unrecognized option: $1
21662 Try \`$0 --help' for more information." >&2;}
21663 { (exit 1); exit 1; }; } ;;
21665 *) ac_config_targets="$ac_config_targets $1" ;;
21671 ac_configure_extra_args=
21673 if $ac_cs_silent; then
21675 ac_configure_extra_args="$ac_configure_extra_args --silent"
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 if \$ac_cs_recheck; then
21681 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21682 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21691 cat >>$CONFIG_STATUS <<\_ACEOF
21692 for ac_config_target in $ac_config_targets
21694 case "$ac_config_target" in
21695 # Handling of arguments.
21696 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21697 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21698 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21699 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21700 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21701 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21702 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21703 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21704 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21705 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21706 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21707 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21708 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21709 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21710 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21711 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21712 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21713 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21714 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21715 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21716 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21717 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21718 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21719 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21720 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21721 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21722 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21723 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21724 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21725 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21726 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21727 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21728 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21729 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21730 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21731 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21732 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21733 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21734 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21735 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21736 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21737 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21738 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21739 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21740 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21741 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21742 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21743 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21744 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21745 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21746 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21747 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21748 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21749 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21750 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21751 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21752 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21753 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21754 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21755 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21756 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21757 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21758 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21759 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21760 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21761 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
21762 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
21763 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
21764 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
21765 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
21766 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
21767 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21768 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21769 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21770 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21771 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21772 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21773 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21774 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21775 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21776 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21777 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21778 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21779 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21780 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21781 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21782 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21783 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21784 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21785 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21786 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21787 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21788 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21789 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21790 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21791 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21793 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21794 { (exit 1); exit 1; }; };;
21798 # If the user did not use the arguments to specify the items to instantiate,
21799 # then the envvar interface is used. Set only those that are not.
21800 # We use the long form for the default assignment because of an extremely
21801 # bizarre bug on SunOS 4.1.3.
21802 if $ac_need_defaults; then
21803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21808 # Have a temporary directory for convenience. Make it in the build tree
21809 # simply because there is no reason to put it here, and in addition,
21810 # creating and moving files from /tmp can sometimes cause problems.
21811 # Create a temporary directory, and hook for its removal unless debugging.
21814 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21815 trap '{ (exit 1); exit 1; }' 1 2 13 15
21818 # Create a (secure) tmp directory for tmp files.
21821 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21822 test -n "$tmp" && test -d "$tmp"
21825 tmp=./confstat$$-$RANDOM
21826 (umask 077 && mkdir $tmp)
21829 echo "$me: cannot create a temporary directory in ." >&2
21830 { (exit 1); exit 1; }
21835 cat >>$CONFIG_STATUS <<_ACEOF
21838 # CONFIG_FILES section.
21841 # No need to generate the scripts if there are no CONFIG_FILES.
21842 # This happens for instance when ./config.status config.h
21843 if test -n "\$CONFIG_FILES"; then
21844 # Protect against being on the right side of a sed subst in config.status.
21845 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21846 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21847 s,@SHELL@,$SHELL,;t t
21848 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21849 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21850 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21851 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21852 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21853 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21854 s,@exec_prefix@,$exec_prefix,;t t
21855 s,@prefix@,$prefix,;t t
21856 s,@program_transform_name@,$program_transform_name,;t t
21857 s,@bindir@,$bindir,;t t
21858 s,@sbindir@,$sbindir,;t t
21859 s,@libexecdir@,$libexecdir,;t t
21860 s,@datadir@,$datadir,;t t
21861 s,@sysconfdir@,$sysconfdir,;t t
21862 s,@sharedstatedir@,$sharedstatedir,;t t
21863 s,@localstatedir@,$localstatedir,;t t
21864 s,@libdir@,$libdir,;t t
21865 s,@includedir@,$includedir,;t t
21866 s,@oldincludedir@,$oldincludedir,;t t
21867 s,@infodir@,$infodir,;t t
21868 s,@mandir@,$mandir,;t t
21869 s,@build_alias@,$build_alias,;t t
21870 s,@host_alias@,$host_alias,;t t
21871 s,@target_alias@,$target_alias,;t t
21872 s,@DEFS@,$DEFS,;t t
21873 s,@ECHO_C@,$ECHO_C,;t t
21874 s,@ECHO_N@,$ECHO_N,;t t
21875 s,@ECHO_T@,$ECHO_T,;t t
21876 s,@LIBS@,$LIBS,;t t
21877 s,@BUILD_DIR@,$BUILD_DIR,;t t
21878 s,@TRUEPRG@,$TRUEPRG,;t t
21879 s,@FALSEPRG@,$FALSEPRG,;t t
21880 s,@VERSION@,$VERSION,;t t
21881 s,@DATE@,$DATE,;t t
21882 s,@LSMDATE@,$LSMDATE,;t t
21884 s,@CFLAGS@,$CFLAGS,;t t
21885 s,@LDFLAGS@,$LDFLAGS,;t t
21886 s,@CPPFLAGS@,$CPPFLAGS,;t t
21887 s,@ac_ct_CC@,$ac_ct_CC,;t t
21888 s,@EXEEXT@,$EXEEXT,;t t
21889 s,@OBJEXT@,$OBJEXT,;t t
21891 s,@CXXFLAGS@,$CXXFLAGS,;t t
21892 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21894 s,@EGREP@,$EGREP,;t t
21895 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21896 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21897 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21898 s,@RANLIB@,$RANLIB,;t t
21899 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21904 s,@ECHO@,$ECHO,;t t
21908 s,@OPENSSL@,$OPENSSL,;t t
21910 s,@MKISOFS@,$MKISOFS,;t t
21911 s,@PYTHON@,$PYTHON,;t t
21912 s,@GROWISOFS@,$GROWISOFS,;t t
21913 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
21914 s,@PKGCONFIG@,$PKGCONFIG,;t t
21915 s,@WXCONFIG@,$WXCONFIG,;t t
21916 s,@WXFLAGS@,$WXFLAGS,;t t
21917 s,@CDRECORD@,$CDRECORD,;t t
21918 s,@PIDOF@,$PIDOF,;t t
21920 s,@ARFLAGS@,$ARFLAGS,;t t
21921 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21922 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21923 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21924 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21925 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21926 s,@build@,$build,;t t
21927 s,@build_cpu@,$build_cpu,;t t
21928 s,@build_vendor@,$build_vendor,;t t
21929 s,@build_os@,$build_os,;t t
21930 s,@host@,$host,;t t
21931 s,@host_cpu@,$host_cpu,;t t
21932 s,@host_vendor@,$host_vendor,;t t
21933 s,@host_os@,$host_os,;t t
21934 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21935 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21936 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21937 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21938 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21939 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21940 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21941 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21942 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21943 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21944 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21945 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21946 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21947 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21948 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21949 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21950 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21951 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21952 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21953 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21954 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21955 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21956 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21957 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21958 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21959 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21960 s,@MSGFMT@,$MSGFMT,;t t
21961 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21962 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21963 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21964 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21965 s,@GNOME_DIR@,$GNOME_DIR,;t t
21966 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21967 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21968 s,@WX_DIR@,$WX_DIR,;t t
21969 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
21970 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
21971 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
21972 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21973 s,@STATIC_FD@,$STATIC_FD,;t t
21974 s,@STATIC_SD@,$STATIC_SD,;t t
21975 s,@STATIC_DIR@,$STATIC_DIR,;t t
21976 s,@STATIC_CONS@,$STATIC_CONS,;t t
21977 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21978 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21979 s,@ALL_DIRS@,$ALL_DIRS,;t t
21980 s,@CONS_INC@,$CONS_INC,;t t
21981 s,@CONS_OBJ@,$CONS_OBJ,;t t
21982 s,@CONS_SRC@,$CONS_SRC,;t t
21983 s,@CONS_LIBS@,$CONS_LIBS,;t t
21984 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21985 s,@READLINE_SRC@,$READLINE_SRC,;t t
21986 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
21987 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
21988 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
21989 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
21990 s,@working_dir@,$working_dir,;t t
21991 s,@scriptdir@,$scriptdir,;t t
21992 s,@dump_email@,$dump_email,;t t
21993 s,@job_email@,$job_email,;t t
21994 s,@smtp_host@,$smtp_host,;t t
21995 s,@piddir@,$piddir,;t t
21996 s,@subsysdir@,$subsysdir,;t t
21997 s,@baseport@,$baseport,;t t
21998 s,@dir_port@,$dir_port,;t t
21999 s,@fd_port@,$fd_port,;t t
22000 s,@sd_port@,$sd_port,;t t
22001 s,@dir_password@,$dir_password,;t t
22002 s,@fd_password@,$fd_password,;t t
22003 s,@sd_password@,$sd_password,;t t
22004 s,@mon_dir_password@,$mon_dir_password,;t t
22005 s,@mon_fd_password@,$mon_fd_password,;t t
22006 s,@mon_sd_password@,$mon_sd_password,;t t
22007 s,@dir_user@,$dir_user,;t t
22008 s,@dir_group@,$dir_group,;t t
22009 s,@sd_user@,$sd_user,;t t
22010 s,@sd_group@,$sd_group,;t t
22011 s,@fd_user@,$fd_user,;t t
22012 s,@fd_group@,$fd_group,;t t
22013 s,@SBINPERM@,$SBINPERM,;t t
22014 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22015 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22016 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22017 s,@cats@,$cats,;t t
22018 s,@DB_NAME@,$DB_NAME,;t t
22019 s,@GETCONF@,$GETCONF,;t t
22020 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22021 s,@X_CFLAGS@,$X_CFLAGS,;t t
22022 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22023 s,@X_LIBS@,$X_LIBS,;t t
22024 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22025 s,@LIBOBJS@,$LIBOBJS,;t t
22026 s,@ALLOCA@,$ALLOCA,;t t
22027 s,@FDLIBS@,$FDLIBS,;t t
22028 s,@DEBUG@,$DEBUG,;t t
22029 s,@DINCLUDE@,$DINCLUDE,;t t
22030 s,@DLIB@,$DLIB,;t t
22031 s,@DB_LIBS@,$DB_LIBS,;t t
22032 s,@WCFLAGS@,$WCFLAGS,;t t
22033 s,@WLDFLAGS@,$WLDFLAGS,;t t
22034 s,@OBJLIST@,$OBJLIST,;t t
22035 s,@hostname@,$hostname,;t t
22036 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22037 s,@PSCMD@,$PSCMD,;t t
22038 s,@WIN32@,$WIN32,;t t
22039 s,@MACOSX@,$MACOSX,;t t
22040 s,@DISTNAME@,$DISTNAME,;t t
22041 s,@DISTVER@,$DISTVER,;t t
22042 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22043 /@MCOMMON@/r $MCOMMON
22049 cat >>$CONFIG_STATUS <<\_ACEOF
22050 # Split the substitutions into bite-sized pieces for seds with
22051 # small command number limits, like on Digital OSF/1 and HP-UX.
22052 ac_max_sed_lines=48
22053 ac_sed_frag=1 # Number of current file.
22054 ac_beg=1 # First line for current file.
22055 ac_end=$ac_max_sed_lines # Line after last line for current file.
22058 while $ac_more_lines; do
22059 if test $ac_beg -gt 1; then
22060 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22062 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22064 if test ! -s $tmp/subs.frag; then
22065 ac_more_lines=false
22067 # The purpose of the label and of the branching condition is to
22068 # speed up the sed processing (if there are no `@' at all, there
22069 # is no need to browse any of the substitutions).
22070 # These are the two extra sed commands mentioned above.
22072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22073 if test -z "$ac_sed_cmds"; then
22074 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22076 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22078 ac_sed_frag=`expr $ac_sed_frag + 1`
22080 ac_end=`expr $ac_end + $ac_max_sed_lines`
22083 if test -z "$ac_sed_cmds"; then
22086 fi # test -n "$CONFIG_FILES"
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22093 - | *:- | *:-:* ) # input from stdin
22095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22099 * ) ac_file_in=$ac_file.in ;;
22102 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22105 X"$ac_file" : 'X\(//\)[^/]' \| \
22106 X"$ac_file" : 'X\(//\)$' \| \
22107 X"$ac_file" : 'X\(/\)' \| \
22108 . : '\(.\)' 2>/dev/null ||
22110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22112 /^X\(\/\/\)$/{ s//\1/; q; }
22113 /^X\(\/\).*/{ s//\1/; q; }
22115 { if $as_mkdir_p; then
22120 while test ! -d "$as_dir"; do
22121 as_dirs="$as_dir $as_dirs"
22122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22124 X"$as_dir" : 'X\(//\)[^/]' \| \
22125 X"$as_dir" : 'X\(//\)$' \| \
22126 X"$as_dir" : 'X\(/\)' \| \
22127 . : '\(.\)' 2>/dev/null ||
22129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22131 /^X\(\/\/\)$/{ s//\1/; q; }
22132 /^X\(\/\).*/{ s//\1/; q; }
22135 test ! -n "$as_dirs" || mkdir $as_dirs
22136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22138 { (exit 1); exit 1; }; }; }
22142 if test "$ac_dir" != .; then
22143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22144 # A "../" for each directory in $ac_dir_suffix.
22145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22147 ac_dir_suffix= ac_top_builddir=
22151 .) # No --srcdir option. We are building in place.
22153 if test -z "$ac_top_builddir"; then
22156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22158 [\\/]* | ?:[\\/]* ) # Absolute path.
22159 ac_srcdir=$srcdir$ac_dir_suffix;
22160 ac_top_srcdir=$srcdir ;;
22161 *) # Relative path.
22162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22166 # Do not use `cd foo && pwd` to compute absolute paths, because
22167 # the directories may not exist.
22169 .) ac_abs_builddir="$ac_dir";;
22172 .) ac_abs_builddir=`pwd`;;
22173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22174 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22177 case $ac_abs_builddir in
22178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22180 case ${ac_top_builddir}. in
22181 .) ac_abs_top_builddir=$ac_abs_builddir;;
22182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22186 case $ac_abs_builddir in
22187 .) ac_abs_srcdir=$ac_srcdir;;
22190 .) ac_abs_srcdir=$ac_abs_builddir;;
22191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22195 case $ac_abs_builddir in
22196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22198 case $ac_top_srcdir in
22199 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22208 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22211 if test x"$ac_file" != x-; then
22212 { echo "$as_me:$LINENO: creating $ac_file" >&5
22213 echo "$as_me: creating $ac_file" >&6;}
22216 # Let's still pretend it is `configure' which instantiates (i.e., don't
22217 # use $as_me), people would be surprised to read:
22218 # /* config.h. Generated by config.status. */
22219 if test x"$ac_file" = x-; then
22222 configure_input="$ac_file. "
22224 configure_input=$configure_input"Generated from `echo $ac_file_in |
22225 sed 's,.*/,,'` by configure."
22227 # First look for the input files in the build tree, otherwise in the
22229 ac_file_inputs=`IFS=:
22230 for f in $ac_file_in; do
22232 -) echo $tmp/stdin ;;
22234 # Absolute (can't be DOS-style, as IFS=:)
22235 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22236 echo "$as_me: error: cannot find input file: $f" >&2;}
22237 { (exit 1); exit 1; }; }
22240 if test -f "$f"; then
22243 elif test -f "$srcdir/$f"; then
22248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22249 echo "$as_me: error: cannot find input file: $f" >&2;}
22250 { (exit 1); exit 1; }; }
22253 done` || { (exit 1); exit 1; }
22255 cat >>$CONFIG_STATUS <<_ACEOF
22259 cat >>$CONFIG_STATUS <<\_ACEOF
22261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22262 s,@configure_input@,$configure_input,;t t
22263 s,@srcdir@,$ac_srcdir,;t t
22264 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22265 s,@top_srcdir@,$ac_top_srcdir,;t t
22266 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22267 s,@builddir@,$ac_builddir,;t t
22268 s,@abs_builddir@,$ac_abs_builddir,;t t
22269 s,@top_builddir@,$ac_top_builddir,;t t
22270 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22271 s,@INSTALL@,$ac_INSTALL,;t t
22272 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22274 if test x"$ac_file" != x-; then
22275 mv $tmp/out $ac_file
22283 cat >>$CONFIG_STATUS <<\_ACEOF
22286 # CONFIG_HEADER section.
22289 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22290 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22292 # ac_d sets the value in "#define NAME VALUE" lines.
22293 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22294 ac_dB='[ ].*$,\1#\2'
22297 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22298 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22299 ac_uB='$,\1#\2define\3'
22303 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22306 - | *:- | *:-:* ) # input from stdin
22308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22312 * ) ac_file_in=$ac_file.in ;;
22315 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22316 echo "$as_me: creating $ac_file" >&6;}
22318 # First look for the input files in the build tree, otherwise in the
22320 ac_file_inputs=`IFS=:
22321 for f in $ac_file_in; do
22323 -) echo $tmp/stdin ;;
22325 # Absolute (can't be DOS-style, as IFS=:)
22326 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22327 echo "$as_me: error: cannot find input file: $f" >&2;}
22328 { (exit 1); exit 1; }; }
22329 # Do quote $f, to prevent DOS paths from being IFS'd.
22332 if test -f "$f"; then
22335 elif test -f "$srcdir/$f"; then
22340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22341 echo "$as_me: error: cannot find input file: $f" >&2;}
22342 { (exit 1); exit 1; }; }
22345 done` || { (exit 1); exit 1; }
22346 # Remove the trailing spaces.
22347 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22351 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22352 # `conftest.undefs', that substitutes the proper values into
22353 # config.h.in to produce config.h. The first handles `#define'
22354 # templates, and the second `#undef' templates.
22355 # And first: Protect against being on the right side of a sed subst in
22356 # config.status. Protect against being in an unquoted here document
22357 # in config.status.
22358 rm -f conftest.defines conftest.undefs
22359 # Using a here document instead of a string reduces the quoting nightmare.
22360 # Putting comments in sed scripts is not portable.
22362 # `end' is used to avoid that the second main sed command (meant for
22363 # 0-ary CPP macros) applies to n-ary macro definitions.
22364 # See the Autoconf documentation for `clear'.
22365 cat >confdef2sed.sed <<\_ACEOF
22370 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22372 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22375 # If some macros were called several times there might be several times
22376 # the same #defines, which is useless. Nevertheless, we may not want to
22377 # sort them, since we want the *last* AC-DEFINE to be honored.
22378 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22379 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22380 rm -f confdef2sed.sed
22382 # This sed command replaces #undef with comments. This is necessary, for
22383 # example, in the case of _POSIX_SOURCE, which is predefined and required
22384 # on some systems where configure will not decide to define it.
22385 cat >>conftest.undefs <<\_ACEOF
22386 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22389 # Break up conftest.defines because some shells have a limit on the size
22390 # of here documents, and old seds have small limits too (100 cmds).
22391 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22392 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22393 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22394 echo ' :' >>$CONFIG_STATUS
22395 rm -f conftest.tail
22396 while grep . conftest.defines >/dev/null
22398 # Write a limited-size here document to $tmp/defines.sed.
22399 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22400 # Speed up: don't consider the non `#define' lines.
22401 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22402 # Work around the forget-to-reset-the-flag bug.
22403 echo 't clr' >>$CONFIG_STATUS
22404 echo ': clr' >>$CONFIG_STATUS
22405 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22407 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22409 mv $tmp/out $tmp/in
22411 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22412 rm -f conftest.defines
22413 mv conftest.tail conftest.defines
22415 rm -f conftest.defines
22416 echo ' fi # grep' >>$CONFIG_STATUS
22417 echo >>$CONFIG_STATUS
22419 # Break up conftest.undefs because some shells have a limit on the size
22420 # of here documents, and old seds have small limits too (100 cmds).
22421 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22422 rm -f conftest.tail
22423 while grep . conftest.undefs >/dev/null
22425 # Write a limited-size here document to $tmp/undefs.sed.
22426 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22427 # Speed up: don't consider the non `#undef'
22428 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22429 # Work around the forget-to-reset-the-flag bug.
22430 echo 't clr' >>$CONFIG_STATUS
22431 echo ': clr' >>$CONFIG_STATUS
22432 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22434 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22436 mv $tmp/out $tmp/in
22438 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22439 rm -f conftest.undefs
22440 mv conftest.tail conftest.undefs
22442 rm -f conftest.undefs
22444 cat >>$CONFIG_STATUS <<\_ACEOF
22445 # Let's still pretend it is `configure' which instantiates (i.e., don't
22446 # use $as_me), people would be surprised to read:
22447 # /* config.h. Generated by config.status. */
22448 if test x"$ac_file" = x-; then
22449 echo "/* Generated by configure. */" >$tmp/config.h
22451 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22453 cat $tmp/in >>$tmp/config.h
22455 if test x"$ac_file" != x-; then
22456 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22457 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22458 echo "$as_me: $ac_file is unchanged" >&6;}
22460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22462 X"$ac_file" : 'X\(//\)[^/]' \| \
22463 X"$ac_file" : 'X\(//\)$' \| \
22464 X"$ac_file" : 'X\(/\)' \| \
22465 . : '\(.\)' 2>/dev/null ||
22467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22469 /^X\(\/\/\)$/{ s//\1/; q; }
22470 /^X\(\/\).*/{ s//\1/; q; }
22472 { if $as_mkdir_p; then
22477 while test ! -d "$as_dir"; do
22478 as_dirs="$as_dir $as_dirs"
22479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22481 X"$as_dir" : 'X\(//\)[^/]' \| \
22482 X"$as_dir" : 'X\(//\)$' \| \
22483 X"$as_dir" : 'X\(/\)' \| \
22484 . : '\(.\)' 2>/dev/null ||
22486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22488 /^X\(\/\/\)$/{ s//\1/; q; }
22489 /^X\(\/\).*/{ s//\1/; q; }
22492 test ! -n "$as_dirs" || mkdir $as_dirs
22493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22495 { (exit 1); exit 1; }; }; }
22498 mv $tmp/config.h $ac_file
22502 rm -f $tmp/config.h
22506 cat >>$CONFIG_STATUS <<\_ACEOF
22509 # CONFIG_COMMANDS section.
22511 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22512 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22513 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22514 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22515 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22516 X"$ac_dest" : 'X\(//\)[^/]' \| \
22517 X"$ac_dest" : 'X\(//\)$' \| \
22518 X"$ac_dest" : 'X\(/\)' \| \
22519 . : '\(.\)' 2>/dev/null ||
22521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22523 /^X\(\/\/\)$/{ s//\1/; q; }
22524 /^X\(\/\).*/{ s//\1/; q; }
22526 { if $as_mkdir_p; then
22531 while test ! -d "$as_dir"; do
22532 as_dirs="$as_dir $as_dirs"
22533 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22535 X"$as_dir" : 'X\(//\)[^/]' \| \
22536 X"$as_dir" : 'X\(//\)$' \| \
22537 X"$as_dir" : 'X\(/\)' \| \
22538 . : '\(.\)' 2>/dev/null ||
22540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22542 /^X\(\/\/\)$/{ s//\1/; q; }
22543 /^X\(\/\).*/{ s//\1/; q; }
22546 test ! -n "$as_dirs" || mkdir $as_dirs
22547 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22548 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22549 { (exit 1); exit 1; }; }; }
22553 if test "$ac_dir" != .; then
22554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22555 # A "../" for each directory in $ac_dir_suffix.
22556 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22558 ac_dir_suffix= ac_top_builddir=
22562 .) # No --srcdir option. We are building in place.
22564 if test -z "$ac_top_builddir"; then
22567 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22569 [\\/]* | ?:[\\/]* ) # Absolute path.
22570 ac_srcdir=$srcdir$ac_dir_suffix;
22571 ac_top_srcdir=$srcdir ;;
22572 *) # Relative path.
22573 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22574 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22577 # Do not use `cd foo && pwd` to compute absolute paths, because
22578 # the directories may not exist.
22580 .) ac_abs_builddir="$ac_dir";;
22583 .) ac_abs_builddir=`pwd`;;
22584 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22585 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22588 case $ac_abs_builddir in
22589 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22591 case ${ac_top_builddir}. in
22592 .) ac_abs_top_builddir=$ac_abs_builddir;;
22593 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22594 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22597 case $ac_abs_builddir in
22598 .) ac_abs_srcdir=$ac_srcdir;;
22601 .) ac_abs_srcdir=$ac_abs_builddir;;
22602 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22603 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22606 case $ac_abs_builddir in
22607 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22609 case $ac_top_srcdir in
22610 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22611 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22612 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22617 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22618 echo "$as_me: executing $ac_dest commands" >&6;}
22620 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22628 { (exit 0); exit 0; }
22630 chmod +x $CONFIG_STATUS
22631 ac_clean_files=$ac_clean_files_save
22634 # configure is writing to config.log, and then calls config.status.
22635 # config.status does its own redirection, appending to config.log.
22636 # Unfortunately, on DOS this fails, as config.log is still kept open
22637 # by configure, so config.status won't be able to write to it; its
22638 # output is simply discarded. So we exec the FD to /dev/null,
22639 # effectively closing config.log, so it can be properly (re)opened and
22640 # appended to by config.status. When coming back to configure, we
22641 # need to make the FD available again.
22642 if test "$no_create" != yes; then
22644 ac_config_status_args=
22645 test "$silent" = yes &&
22646 ac_config_status_args="$ac_config_status_args --quiet"
22648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22651 # would make configure fail if this is the last instruction.
22652 $ac_cs_success || { (exit 1); exit 1; }
22657 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22658 chmod 755 dvd-writepart dvd-freespace
22659 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22664 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22665 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22667 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22668 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22670 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22671 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22673 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22674 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22676 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22677 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22679 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22680 chmod 755 $c/sqlite
22683 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22684 largefile_support="yes"
22688 # A whole lot of hand springs to get the compiler version.
22689 # This is because gcc changed the output in version 3.0
22691 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22692 if test "x${CCVERSION}" = "x" ; then
22693 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22695 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22696 if test x"${CXXVERSION}" = x ; then
22697 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22700 if test "x${subsysdir}" = "x${sbindir}" ; then
22703 echo "You have set --sbindir and --with-subsys-dir"
22704 echo " both equal to: ${subsysdir} "
22705 echo " This is not permitted. Please reconfigure."
22707 echo "Aborting configuration ..."
22713 if test "x${db_name}" = "xInternal" ; then
22716 echo "You have not specified either --enable-client-only or one of the"
22717 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
22718 echo " This is not permitted. Please reconfigure."
22720 echo "Aborting the configuration ..."
22727 Configuration on `date`:
22729 Host: $host -- ${DISTNAME} ${DISTVER}
22730 Bacula version: ${VERSION} (${DATE})
22731 Source code location: ${srcdir}
22732 Install binaries: ${sbindir}
22733 Install config files: ${sysconfdir}
22734 Scripts directory: ${scriptdir}
22735 Working directory: ${working_dir}
22736 PID directory: ${piddir}
22737 Subsys directory: ${subsysdir}
22738 Man directory: ${mandir}
22739 C Compiler: ${CC} ${CCVERSION}
22740 C++ Compiler: ${CXX} ${CXXVERSION}
22741 Compiler flags: ${WCFLAGS} ${CFLAGS}
22742 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22744 Statically Linked Tools: ${support_static_tools}
22745 Statically Linked FD: ${support_static_fd}
22746 Statically Linked SD: ${support_static_sd}
22747 Statically Linked DIR: ${support_static_dir}
22748 Statically Linked CONS: ${support_static_cons}
22749 Database type: ${db_name}
22750 Database lib: ${DB_LIBS}
22752 Job Output Email: ${job_email}
22753 Traceback Email: ${dump_email}
22754 SMTP Host Address: ${smtp_host}
22756 Director Port: ${dir_port}
22757 File daemon Port: ${fd_port}
22758 Storage daemon Port: ${sd_port}
22760 Director User: ${dir_user}
22761 Director Group: ${dir_group}
22762 Storage Daemon User: ${sd_user}
22763 Storage DaemonGroup: ${sd_group}
22764 File Daemon User: ${fd_user}
22765 File Daemon Group: ${fd_group}
22767 SQL binaries Directory ${SQL_BINDIR}
22769 Large file support: $largefile_support
22770 Bacula conio support: ${got_conio} ${CONS_LIBS}
22771 readline support: ${got_readline} ${PRTREADLINE_SRC}
22772 TCP Wrappers support: ${TCPW_MSG}
22773 TLS support: ${support_tls}
22774 ZLIB support: ${have_zlib}
22775 enable-smartalloc: ${support_smartalloc}
22776 enable-gnome: ${support_gnome} ${gnome_version}
22777 enable-wx-console: ${support_wx_console} ${wx_version}
22778 enable-tray-monitor: ${support_tray_monitor}
22779 client-only: ${build_client_only}
22780 ACL support: ${have_acl}
22781 Python support: ${support_python} ${PYTHON_LIBS}